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 as VmSize in /proc/pid/status ๐Ÿ’…
  • resident (2) โ€” resident set size. and bestie, it's inaccurate. same as VmRSS in /proc/pid/status
  • shared (3) โ€” the number of resident shared pages (i.e., backed by a file). also inaccurate. same as RssFile+RssShmem in /proc/pid/status
  • text (4) โ€” text (code) ๐Ÿ‘‘
  • lib (5) โ€” library. unused since Linux 2.6; always 0 ๐Ÿ’€
  • data (6) โ€” data + stack ๐Ÿ“
  • dt (7) โ€” dirty pages. unused since Linux 2.6; always 0 ๐Ÿ™ˆ
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
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms