Skip to main content

capacity_tiers

Function capacity_tiers 

Source
pub(crate) fn capacity_tiers(
    capacities: &[usize],
    tolerance_pct: u32,
) -> Vec<u64>
Expand description

Assign sorted, descending CPU capacities to tiers.

Each capacity is compared with the fastest CPU in the current tier rather than with the preceding CPU. This prevents a chain of individually small differences from merging CPUs whose capacities differ significantly.