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/kpagecountonly shows up if theCONFIG_PROC_PAGE_MONITORkernel 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
- 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