Skip to main content

Inspect and manage Linux hugepages

Project description

hugepages: inspect and manage Linux hugepages

hugepages

PyPI Python Test

Inspect and manage Linux hugepages.

Install

pipx install hugepages

Or standalone (single-file, stdlib only, no pip needed):

curl -fsSL https://raw.githubusercontent.com/xnvme/hugepages/main/src/hugepages/hugepages.py \
  -o ~/.local/bin/hugepages && chmod +x ~/.local/bin/hugepages

Shell completion

hugepages --print-completion bash > ~/.local/share/bash-completion/completions/hugepages

Open a new shell (or source the file) and tab-completion is live: hugepages <TAB> lists info setup mount.

Usage

hugepages info                                  # current pool state + supported sizes
sudo hugepages setup --count 512                # reserve 512 pages at the smallest supported size
sudo hugepages setup --size 1048576 --count 4   # reserve 4 x 1 GiB pages
sudo hugepages mount                            # mount hugetlbfs at /dev/hugepages

hugepages info sample output (pool not yet reserved):

Hugepage Support:
  Size: 2048kB  Total: 0  Free: 0  Reserved: 0
  Size: 1048576kB  Total: 0  Free: 0  Reserved: 0

Related

  • devbind: inspect and control PCI device-driver binding in Linux.
  • iommu: inspect and configure the IOMMU isolation level in Linux.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hugepages-0.2.7.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hugepages-0.2.7-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file hugepages-0.2.7.tar.gz.

File metadata

  • Download URL: hugepages-0.2.7.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hugepages-0.2.7.tar.gz
Algorithm Hash digest
SHA256 d33ed628a38522f331da0575876ad325d4c0a58e911f3c26aff0b18abbbe7e76
MD5 aec32e915bac462e067ad77838533bd9
BLAKE2b-256 f215d9a874f607617e9cc86372b0ef9b5a413f89a6f1e805919ea4bfc01157ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugepages-0.2.7.tar.gz:

Publisher: publish.yml on xnvme/hugepages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hugepages-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: hugepages-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hugepages-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 90d865571d42c2321a1adf992424762b17645d09ec3c76ebb77aed173f088fc1
MD5 5a38f04f683809023f8ba2695dd57acf
BLAKE2b-256 84412e6986e24b437425121209bdbe9cff2ce1cd7a420a71a38a0199b3a72a4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugepages-0.2.7-py3-none-any.whl:

Publisher: publish.yml on xnvme/hugepages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page