proc_kpagecount(5)

โœจ NAME โœจ

/proc/kpagecount โ€” the count of mappings of physical pages, bestie ๐Ÿ’–

(also FYI this whole page lives in section 5, the File Formats Manual, so you already know it's giving "kernel filesystem tea" energy ๐Ÿซ–)


๐ŸŒธ DESCRIPTION ๐ŸŒธ

๐Ÿ’… /proc/kpagecount (since Linux 2.6.25)

Okay so picture this: this file is literally a big array, and it holds a 64-bit count of how many times each physical page frame is mapped. That's it. That's the whole vibe. One count per physical page frame, and you find the one you want by indexing with the page frame number ๐Ÿ”ฅ

If you're like "wait, page frame number? what is she talking about", go read the discussion of /proc/pid/pagemap โ€” it's all explained there, iykyk โœจ

๐Ÿซถ Heads up bestie: /proc/kpagecount only shows up if the CONFIG_PROC_PAGE_MONITOR kernel configuration option is enabled. If it's not enabled, the file is justโ€ฆ not there. No file, no counts, no drama, just an empty seat at the table ๐Ÿ˜ญ

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

  • proc(5) โ€” the mothership, go read her too ๐Ÿ’œ

and that's the whole page, periodt ๐Ÿ’…โœจ

this little love letter was brought to you by Linux man-pages 6.20, dated 2026-02-08 โ€” she's iconic, she's timeless, and she ate ๐ŸŒˆโญ๐ŸŽ€

๐Ÿ“ฆ 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