diff options
author | Hugh Dickins <hughd@google.com> | 2015-11-05 21:50:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-05 22:34:48 -0500 |
commit | a5be35632cf3048d3922e2e2fb05a4c6f0889ff0 (patch) | |
tree | 89b7974c9cce0cb8ecae47441c7be534e5b3ab53 /Documentation/filesystems | |
parent | d0424c429f8e0555a337d71e0a13f2289c636ec9 (diff) |
Documentation/filesystems/proc.txt: a little tidying
There's an odd line about "Locked" at the head of the description of
/proc/meminfo: it seems to have strayed from /proc/PID/smaps, so lead it
back there. Move "Swap" and "SwapPss" descriptions down above it, to
match the order in the file (though "PageSize"s still undescribed).
The example of "Locked: 374 kB" (the same as Pss, neither Rss nor Size) is
so unlikely as to be misleading: just make it 0, this is /bin/bash text;
which would be "dw" (disabled write) not "de" (do not expand).
Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r-- | Documentation/filesystems/proc.txt | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index 9781b977edcb..1e4a6cc1b6ea 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt | |||
@@ -433,8 +433,8 @@ Swap: 0 kB | |||
433 | SwapPss: 0 kB | 433 | SwapPss: 0 kB |
434 | KernelPageSize: 4 kB | 434 | KernelPageSize: 4 kB |
435 | MMUPageSize: 4 kB | 435 | MMUPageSize: 4 kB |
436 | Locked: 374 kB | 436 | Locked: 0 kB |
437 | VmFlags: rd ex mr mw me de | 437 | VmFlags: rd ex mr mw me dw |
438 | 438 | ||
439 | the first of these lines shows the same information as is displayed for the | 439 | the first of these lines shows the same information as is displayed for the |
440 | mapping in /proc/PID/maps. The remaining lines show the size of the mapping | 440 | mapping in /proc/PID/maps. The remaining lines show the size of the mapping |
@@ -454,13 +454,13 @@ accessed. | |||
454 | "Anonymous" shows the amount of memory that does not belong to any file. Even | 454 | "Anonymous" shows the amount of memory that does not belong to any file. Even |
455 | a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE | 455 | a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE |
456 | and a page is modified, the file page is replaced by a private anonymous copy. | 456 | and a page is modified, the file page is replaced by a private anonymous copy. |
457 | "Swap" shows how much would-be-anonymous memory is also used, but out on | ||
458 | swap. | ||
459 | "SwapPss" shows proportional swap share of this mapping. | ||
460 | "AnonHugePages" shows the ammount of memory backed by transparent hugepage. | 457 | "AnonHugePages" shows the ammount of memory backed by transparent hugepage. |
461 | "Shared_Hugetlb" and "Private_Hugetlb" show the ammounts of memory backed by | 458 | "Shared_Hugetlb" and "Private_Hugetlb" show the ammounts of memory backed by |
462 | hugetlbfs page which is *not* counted in "RSS" or "PSS" field for historical | 459 | hugetlbfs page which is *not* counted in "RSS" or "PSS" field for historical |
463 | reasons. And these are not included in {Shared,Private}_{Clean,Dirty} field. | 460 | reasons. And these are not included in {Shared,Private}_{Clean,Dirty} field. |
461 | "Swap" shows how much would-be-anonymous memory is also used, but out on swap. | ||
462 | "SwapPss" shows proportional swap share of this mapping. | ||
463 | "Locked" indicates whether the mapping is locked in memory or not. | ||
464 | 464 | ||
465 | "VmFlags" field deserves a separate description. This member represents the kernel | 465 | "VmFlags" field deserves a separate description. This member represents the kernel |
466 | flags associated with the particular virtual memory area in two letter encoded | 466 | flags associated with the particular virtual memory area in two letter encoded |
@@ -824,9 +824,6 @@ varies by architecture and compile options. The following is from a | |||
824 | 824 | ||
825 | > cat /proc/meminfo | 825 | > cat /proc/meminfo |
826 | 826 | ||
827 | The "Locked" indicates whether the mapping is locked in memory or not. | ||
828 | |||
829 | |||
830 | MemTotal: 16344972 kB | 827 | MemTotal: 16344972 kB |
831 | MemFree: 13634064 kB | 828 | MemFree: 13634064 kB |
832 | MemAvailable: 14836172 kB | 829 | MemAvailable: 14836172 kB |