Registry / other / libnuma-sys

libnuma-sys

JSON →
library0.0.9rscratesunverified

Rust FFI bindings to the libnuma (numactl) library for NUMA memory management.

# Cargo.toml [dependencies] libnuma-sys = "0.0.9"
INSTALL
IMPORT
SIG · LIBNUMA-SYS
L
libnuma-sys
otherrustv0.0.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

numa_available
use libnuma_sys::numa_available;

Check if NUMA is available using libnuma-sys

use libnuma_sys::numa_available; fn main() { if unsafe { numa_available() } >= 0 { println!("NUMA is available"); } }
Debug
Known issues
gotchaRequires libnuma development headers installed on the system.
fix
Install libnuma-dev (Linux) or equivalent before building.
affects: *
Upgrade
Version history
0.0.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources