Skip to main content

xnuma_compute_rates

Function xnuma_compute_rates 

Source
pub(crate) fn xnuma_compute_rates(
    duty_sums: &[f64],
    allocs: &[usize],
) -> XnumaRates
Expand description

Compute water-fill migration rates for a single layer.

Finds the equalization ratio (water line) across all nodes, then computes per-(src, dst) migration rates proportional to each source’s surplus and each destination’s share of total deficit.