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.
- Node
Mask - A set of NUMA node IDs.
- Numa
Node - Represents a single NUMA node in the system.
- Topology
- The discovered NUMA topology of the system.
Enums§
- Numa
Error - Unified error type for all numaperf operations.