shadow_rs::core::cpu

Function count_physical_cores

source
pub fn count_physical_cores() -> u32
Expand description

Count the number of physical cores available. Uses sched_getaffinity so should take into account CPU affinity and cgroups.