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:

Hugepage Support:
  Size: 2048  Total: 512  Free: 512  Reserved: 0
  Size: 1048576  Total: 4  Free: 4  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.6.tar.gz (5.5 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.6-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hugepages-0.2.6.tar.gz
  • Upload date:
  • Size: 5.5 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.6.tar.gz
Algorithm Hash digest
SHA256 59ed0b0f1672d731952542f5ddc89870696ff304f8ca9257fb79e01917a46695
MD5 dd97012d45832bd359ad923013a079c3
BLAKE2b-256 2c0153927c28b43b02793104c9f43535fdc1b72f966f39a55e95352370d469a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugepages-0.2.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: hugepages-0.2.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9118602d79ce9c639efaa369bea53fee9f67906970319e0d7e29da9ed0e0d33a
MD5 749e7b879a339cb8e55e83114ee6818c
BLAKE2b-256 e9c008b7d3a6c4fed2a2c1cfa4ca677320030a8b9e18acac1f233007c2fee049

See more details on using hashes here.

Provenance

The following attestation bundles were made for hugepages-0.2.6-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