| 1 |
.\" Copyright 1994-1995, Daniel Quinlan <[email protected]> |
| 2 |
.\" Copyright 2002-2017, Michael Kerrisk <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: GPL-3.0-or-later |
| 6 |
.\" |
| 7 |
.TH proc_pid_statm 5 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
/proc/pid/statm \- memory usage information |
| 10 |
.SH DESCRIPTION |
| 11 |
.TP |
| 12 |
.IR /proc/ pid /statm |
| 13 |
Provides information about memory usage, measured in pages. |
| 14 |
The columns are: |
| 15 |
.IP |
| 16 |
.in +4n |
| 17 |
.EX |
| 18 |
size (1) total program size |
| 19 |
(same as VmSize in \f[I]/proc/\f[]pid\f[I]/status\f[]) |
| 20 |
resident (2) resident set size |
| 21 |
(inaccurate; same as VmRSS in \f[I]/proc/\f[]pid\f[I]/status\f[]) |
| 22 |
shared (3) number of resident shared pages |
| 23 |
(i.e., backed by a file) |
| 24 |
(inaccurate; same as RssFile+RssShmem in |
| 25 |
\f[I]/proc/\f[]pid\f[I]/status\f[]) |
| 26 |
text (4) text (code) |
| 27 |
.\" (not including libs; broken, includes data segment) |
| 28 |
lib (5) library (unused since Linux 2.6; always 0) |
| 29 |
data (6) data + stack |
| 30 |
.\" (including libs; broken, includes library text) |
| 31 |
dt (7) dirty pages (unused since Linux 2.6; always 0) |
| 32 |
.EE |
| 33 |
.in |
| 34 |
.IP |
| 35 |
.\" See SPLIT_RSS_COUNTING in the kernel. |
| 36 |
.\" Inaccuracy is bounded by TASK_RSS_EVENTS_THRESH. |
| 37 |
Some of these values are inaccurate because |
| 38 |
of a kernel-internal scalability optimization. |
| 39 |
If accurate values are required, use |
| 40 |
.IR /proc/ pid /smaps |
| 41 |
or |
| 42 |
.IR /proc/ pid /smaps_rollup |
| 43 |
instead, which are much slower but provide accurate, detailed information. |
| 44 |
.SH SEE ALSO |
| 45 |
.BR proc (5), |
| 46 |
.BR proc_pid_status (5) |