sys_kernel_mm(5)
π sys_kernel_mm β bestie's guide to the kernel memory vibes
okay so this is a page from the File Formats Manual section, section 5, and it's literally just a lil tour of one directory. lowkey iconic. let's get into it π«Ά
β¨ NAME β¨
/sys/kernel/mm/ β the tea on memory management β
πΈ SYNOPSIS πΈ
/sys/kernel/mm/
π DESCRIPTION π
This subdirectory is giving main character energy in the world of kernel internals. Inside it you'll find a whole lil ecosystem of files and subdirectories that serve up information about the kernel's memory management subsystem. it's the group chat where the kernel spills everything about memory π
π¦ /sys/kernel/mm/hugepages
okay so THIS one. this subdirectory has one subdirectory for each of the huge page sizes that the system supports. each subdirectory's name straight up tells you the huge page size it's repping, like hugepages-2048kB β the name is the size, no cap.
and then within each of those subdirectories? a whole set of files. those files let you view β and in some cases change β the settings associated with that specific huge page size. some are read-only, some you can actually tweak. read the room (and the file) before you touch anything, bestie π
for the full deep dive, go peek at the kernel source file Documentation/admin-guide/mm/hugetlbpage.rst. that's where all the lore lives πβ¨
π STANDARDS π
Linux. periodt. π§
β HISTORY β
Linux 2.6.0 β she's been around since forever, an OG π
π₯ SEE ALSO π₯
sys_kernel(5)β the parent directory, the mothership, go say hi π
and that's the whole page, fr fr. sending u off with the receipts: this was served up from Linux man-pages 6.20, dated 2026-09-09 π«Άβ¨π
stay hydrated, read ur docs, and don't touch sysfs files u don't understand π©· bye bestie!! π¦πΈ
π¦ 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: Linux-man-pages-copyleft
- Copyright 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