Inspect and manage Linux hugepages
Project description
hugepages
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 --help
usage: hugepages [-h] [--version] [--verbose] [--print-completion SHELL]
{info,setup,mount} ...
Inspect and manage Linux hugepages
positional arguments:
{info,setup,mount}
info Show hugepage status and capabilities
setup Configure hugepage pool
mount Mount hugetlbfs
options:
-h, --help show this help message and exit
--version show program's version number and exit
--verbose Enable verbose logging
--print-completion SHELL
Print shell completion script to stdout and exit
A few common invocations:
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hugepages-0.2.8.tar.gz.
File metadata
- Download URL: hugepages-0.2.8.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cdb5f9908411f7fc9d038616a6a1c40665da74f859027c4ec723f7ce7c3c21c
|
|
| MD5 |
b23065efed7bed42d9693f451e0098e8
|
|
| BLAKE2b-256 |
a9b925d12a8ac8107640f9282919478f58dae1cba1533a0a45a2d39c6cf906a5
|
Provenance
The following attestation bundles were made for hugepages-0.2.8.tar.gz:
Publisher:
publish.yml on xnvme/hugepages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hugepages-0.2.8.tar.gz -
Subject digest:
7cdb5f9908411f7fc9d038616a6a1c40665da74f859027c4ec723f7ce7c3c21c - Sigstore transparency entry: 1535264622
- Sigstore integration time:
-
Permalink:
xnvme/hugepages@0c87fd4c535d05fed80c2dae1c17896e5f368bad -
Branch / Tag:
refs/tags/v0.2.8 - Owner: https://github.com/xnvme
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c87fd4c535d05fed80c2dae1c17896e5f368bad -
Trigger Event:
push
-
Statement type:
File details
Details for the file hugepages-0.2.8-py3-none-any.whl.
File metadata
- Download URL: hugepages-0.2.8-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
971001251e762c2bff2971163c6936096d7af7512797db12d07a2a8653772cbb
|
|
| MD5 |
c6bc1da45f18c8f1fee35db1426c5d1f
|
|
| BLAKE2b-256 |
fcb8b6313547e037d365656d3e050c6aba37401fc4f9a240006c7f0aa442e1da
|
Provenance
The following attestation bundles were made for hugepages-0.2.8-py3-none-any.whl:
Publisher:
publish.yml on xnvme/hugepages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hugepages-0.2.8-py3-none-any.whl -
Subject digest:
971001251e762c2bff2971163c6936096d7af7512797db12d07a2a8653772cbb - Sigstore transparency entry: 1535264679
- Sigstore integration time:
-
Permalink:
xnvme/hugepages@0c87fd4c535d05fed80c2dae1c17896e5f368bad -
Branch / Tag:
refs/tags/v0.2.8 - Owner: https://github.com/xnvme
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c87fd4c535d05fed80c2dae1c17896e5f368bad -
Trigger Event:
push
-
Statement type: