PAGESIZE(1)

πŸ“¦
version 2.24.0.g1322884 Β· 5 versions
, in debian bookworm, debian trixie, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 by gethugepagesizes(). 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 πŸ”₯


πŸ’– 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 πŸ¦‹πŸŽ€