proc_kpagecgroup(5)

๐Ÿ’– proc_kpagecgroup โ€” bestie's guide to memory cgroups ๐Ÿ’–

okay so you found your way to proc_kpagecgroup(5)?? the manual page, section 5?? iconic of you honestly, section 5 is where the file format girlies live ๐Ÿ’… let's get into it


โœจ NAME โœจ

/proc/kpagecgroup โ€” memory cgroups (yes queen, that's the whole name, it's short and it's serving)


๐ŸŒธ DESCRIPTION ๐ŸŒธ

๐ŸŽ€ /proc/kpagecgroup (since Linux 4.3)

so this file?? it's a whole mood board of memory cgroup inode numbers. literally, every single page in your system gets matched up to the 64-bit inode number of the memory cgroup that page is charged to โ€” as in, which cgroup gets the โœจbillโœจ for it ๐Ÿ’ธ

and how do you find a page's entry in here? by page frame number obviously, aka it's indexed by PFN. if you're like "bestie what is a page frame number" โ€” go read the discussion of /proc/pid/pagemap, it's all explained there, i'm not repeating the lore, it's giving required reading ๐Ÿ“š

๐Ÿซถ real talk though: /proc/kpagecgroup only exists if the CONFIG_MEMCG kernel configuration option is enabled. if your kernel wasn't built with it?? this file is simply not there. no file, no vibes, no inode numbers. gone. periodt ๐Ÿ’€

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

  • proc(5) โ€” go read it bestie, it's the mothership

that's the whole page, you ate that fr fr ๐Ÿ’œ this lil guide came to you from the Linux man-pages 6.20, dated 2026-02-08 โ€” mwah, sending you a forehead kiss and a man 5 proc_kpagecgroup whenever you need me ๐Ÿ“๐Ÿงšโœจ

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