Commit 52ad51e6 authored by Roger Luethi's avatar Roger Luethi Committed by Linus Torvalds

[PATCH] Fix /proc/pid/statm documentation

I really wanted /proc/pid/statm to die and I still believe the
reasoning is valid.  As it doesn't look like that is going to happen,
though, I offer this fix for the respective documentation.  Note: lrs/drs
fields are switched.
Signed-off-by: default avatarRoger Luethi <rl@hellgate.ch>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c178f392
...@@ -169,16 +169,18 @@ information. The statm file contains more detailed information about the ...@@ -169,16 +169,18 @@ information. The statm file contains more detailed information about the
process memory usage. Its seven fields are explained in Table 1-2. process memory usage. Its seven fields are explained in Table 1-2.
Table 1-2: Contents of the statm files Table 1-2: Contents of the statm files (as of 2.6.8-rc3)
.............................................................................. ..............................................................................
File Content Field Content
size total program size size total program size (pages) (same as VmSize in status)
resident size of memory portions resident size of memory portions (pages) (same as VmRSS in status)
shared number of pages that are shared shared number of pages that are shared (i.e. backed by a file)
trs number of pages that are 'code' trs number of pages that are 'code' (not including libs; broken,
drs number of pages of data/stack includes data segment)
lrs number of pages of library lrs number of pages of library (always 0 on 2.6)
dt number of dirty pages drs number of pages of data/stack (including libs; broken,
includes library text)
dt number of dirty pages (always 0 on 2.6)
.............................................................................. ..............................................................................
1.2 Kernel data 1.2 Kernel data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment