Skip to main content

Crate numaperf_topo

Crate numaperf_topo 

Source
Expand description

NUMA topology discovery for numaperf.

This crate provides functionality to discover the hardware NUMA topology, including nodes, CPUs, and their relationships.

§Example

use numaperf_topo::Topology;

let topo = Topology::discover().expect("topology discovery failed");
println!("Found {} NUMA nodes", topo.node_count());

for node in topo.numa_nodes() {
    println!("  {}: CPUs {}", node.id(), topo.cpu_set(node.id()));
}

Structs§

CpuSet
A set of CPU IDs.
NodeId
Identifier for a NUMA node.
NodeMask
A set of NUMA node IDs.
NumaNode
Represents a single NUMA node in the system.
Topology
The discovered NUMA topology of the system.

Enums§

NumaError
Unified error type for all numaperf operations.