Document /proc/PID/smaps, new in kernel 2.6.14.

using information from ChangeLog-2.6.14.
This commit is contained in:
Michael Kerrisk 2006-03-23 08:02:02 +00:00
parent f3cbdba966
commit b07b19c4b2
1 changed files with 31 additions and 7 deletions

View File

@ -42,13 +42,10 @@
.\" 2005-03-01, mtk, moved /proc/sys/fs/mqueue/* material to
.\" mq_overview.7.
.\"
.\" FIXME 2.6.14 has added /proc/PID/smaps (if CONFIG_MMU
.\" is enabled) and /proc/PID/numa_maps (if CONFIG_NUMA is
.\" enabled); they need to be documented.
.\" Info on smaps can be found in the patch-2.6.14-rc1 Changelog
.\" and in Documentation/filesystems/proc.txt
.\" Info on numa_maps can be found in the patch-2.6.14-rc1
.\" Changelog
.\" FIXME 2.6.14 has /proc/PID/numa_maps (if CONFIG_NUMA is
.\" enabled); this needs to be documented.
.\" Info on numa_maps can be found in the patch-2.6.14
.\" Changelog, but this is possibly not up to date.
.\"
.\" FIXME 2.6.13 seems to have /proc/vmcore implemented
.\" in the source code, but there is no option available under
@ -263,6 +260,33 @@ are not available if the main thread has already terminated
.\" FIXME Describe /proc/[number]/seccomp
.\" Added in 2.6.12
.TP
.IR /proc/[number]/smaps " (since Linux 2.6.14)"
This file shows memory consumption for each of the process's mappings.
For each of mappings there is a series of lines as follows:
.in +0.25i
.nf
08048000-080bc000 r-xp 00000000 03:02 13130 /bin/bash
Size: 464 kB
Rss: 424 kB
Shared_Clean: 424 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 0 kB
.fi
.in -0.25i
The first of these lines shows the same information as is displayed
for the mapping in
.IR /proc/[number]/maps .
The remaining lines show the size of the mapping,
the amount of the mapping that is currently resident in RAM,
the number clean and dirty shared pages in the mapping,
and the number clean and dirty private pages in the mapping.
This file is only present if the CONFIG_MMU kernel configuration
option is enabled.
.TP
.I /proc/[number]/stat
Status information about the process. This is used by
.BR ps (1).