---
name: "pagesize"
section: "1"
platform: "linux"
package: "libhugetlbfs-bin"
version: "2.24-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux", "freebsd", "openbsd", "macos"]
url: "https://new.carta.tech/pagesize"
---

# pagesize(1)

Print supported system page sizes

## NAME

pagesize - Print supported system page sizes

## SYNOPSIS

**pagesize \[options\]**

## DESCRIPTION

The pagesize utility prints the page sizes of a page of memory in bytes, as returned by [getpagesizes(3)](/getpagesizes/3.md). This is useful when creating portable shell scripts, configuring huge page pools with hugeadm or launching applications to use huge pages with hugectl.

If no parameters are specified, **pagesize** prints the system base page size as returned by **getpagesize()**. The following parameters affect what other pagesizes are displayed.

- **--huge-only, -H**

  Display all huge pages supported by the system as returned by **gethugepagesizes()**.

- **--all, -a**

  Display all page sizes supported by the system.

## SEE ALSO

*[oprofile(1)](/oprofile/1.md),* *[getpagesize(2)](/getpagesize/2.md),* *[getpagesizes(3)](/getpagesizes/3.md),* *[gethugepagesizes(3)](/gethugepagesizes/3.md),* *hugectl(7),* *hugeadm(7),* *[libhugetlbfs(7)](/libhugetlbfs/7.md)*

## AUTHORS

libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list.
