Skip to main content

numa_node_count

Function numa_node_count 

Source
pub fn numa_node_count() -> u32
Expand description

Number of NUMA nodes detected on this host. Used by the (in-progress) per-NUMA sidecar sharding to decide how many sidecar threads to spawn.

On Windows this calls GetNumaHighestNodeNumber. On other platforms it returns 1 (no NUMA awareness). Returns at least 1.