proc_pid_statm(5)
๐ proc_pid_statm(5) โ the /proc/pid/statm glow-up ๐
okay bestie, quick vibe check: this page lives in the File Formats Manual section, and it's all about peeking at how much memory a process is using. no cap, it's short, it's iconic, let's go ๐ฆ
โจ NAME โจ
/proc/pid/statm โ memory usage information, aka the receipts on how many pages your process is holding ๐
๐ธ DESCRIPTION ๐ธ
/proc/pid/statm
So you open this file and it gives you the tea about memory usage, and the tea is measured in pages. ๐ซโจ It's one line, seven columns, and here's the decoder ring:
size(1) โ total program size. literally the same thing asVmSizein/proc/pid/status๐resident(2) โ resident set size. and bestie, it's inaccurate. same asVmRSSin/proc/pid/statusshared(3) โ the number of resident shared pages (i.e., backed by a file). also inaccurate. same asRssFile+RssShmemin/proc/pid/statustext(4) โ text (code) ๐lib(5) โ library. unused since Linux 2.6; always0๐data(6) โ data + stack ๐dt(7) โ dirty pages. unused since Linux 2.6; always0๐
ngl, some of these values are inaccurate because of a kernel-internal scalability optimization. that's just how it is, no shade to the kernel ๐ญ
If you genuinely need accurate values, use /proc/pid/smaps or /proc/pid/smaps_rollup instead. the catch? they're much slower ๐ but they give you accurate, detailed information, so it's giving quality over speed, fr fr โจ
๐ SEE ALSO ๐
and that's the whole page, bestie, you ate it ๐ซถ if you're curious where this came from: it's from Linux man-pages 6.20, dated 2026-02-08. mwah, go read your memory stats responsibly ๐๐โญ
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-3.0-or-later
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms