PAGESIZE(1)
β¨ PAGESIZE β¨ (section 1 of the manuals, bestie)
okay so you know how every command has a vibe? this one's vibe is tiny but mighty π it lives in the General Commands Manual and it's called pagesize, and it's here to spill the tea on page sizes. no cap.
πΈ NAME πΈ
pagesize β prints out the page sizes your system supports π
π¦ SYNOPSIS π¦
pagesize [options]
π DESCRIPTION π
so the pagesize utility prints the page sizes of a page of memory, in bytes, exactly as they come back from getpagesizes(3). literally just hands you the numbers.
and why do we care?? because it's so useful when you're:
- writing portable shell scripts (the dream π«Ά)
- configuring huge page pools with
hugeadm - launching apps that should use huge pages with
hugectl
if you run it with no parameters at all, pagesize prints the system base page size, as returned by getpagesize(). iconic, simple, no notes.
the following parameters change up which other pagesizes get displayed π
--huge-only,-Hβ display all the huge pages supported by the system, as returned bygethugepagesizes(). only the huge ones, bestie, we're being picky π--all,-aβ display all page sizes supported by the system. the whole menu, no filter, main character energy β
π₯ SEE ALSO π₯
oprofile(1)getpagesize(2)getpagesizes(3)gethugepagesizes(3)hugectl(7)hugeadm(7)libhugetlbfs(7)
π AUTHORS π
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list. a whole group chat of legends, fr fr π«Ά
tiny reminder from your girl: no options = base page size,-H= huge only,-a= everything. that's the whole plot ππ
okay that's the page!! π this one comes to you from the General Commands Manual, dated October 10, 2008 β yeah she's an older queen but she still ate πβ¨ bye bestie, go print some page sizes π¦π
π¦ where this page comes from
- debian bookworm: libhugetlbfs-bin 2.23-5 Β· LGPL-2.1-only
- debian trixie: libhugetlbfs-bin 2.24-1+b1 Β· LGPL-2.1-only
- nixpkgs unstable: libhugetlbfs 2.24
- opensuse-leap 16.0: libhugetlbfs 2.24.0.g1322884-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libhugetlbfs 2.24.0.g1322884-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libhugetlbfs 2.24.0.g1322884-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libhugetlbfs 2.24.0.g1322884-160000.3.2 Β· LGPL-2.1-or-later
- ubuntu jammy: libhugetlbfs-bin 2.23-4 Β· LGPL-2.1-only
- ubuntu noble: libhugetlbfs-bin 2.23-5build1 Β· LGPL-2.1-only
- ubuntu questing: libhugetlbfs-bin 2.24-1
- ubuntu resolute: libhugetlbfs-bin 2.24-1build1 Β· LGPL-2.1-only
- ubuntu stonking: libhugetlbfs-bin 2.24-1build1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms