Skip to main content

pick_largest_llc

Function pick_largest_llc 

Source
pub fn pick_largest_llc(sizes: &[u64], nr_llcs: u32) -> Option<u32>
Expand description

Pick the LLC domain with the strictly-largest cache size.

The Q1 placement bias needs a single unambiguous winner. With fewer than two domains, or two or more domains tied for the largest size (including the all-zeros case of a fully failed discovery), there is no capacity win to exploit and the feature stays off (None). sizes is indexed by LLC domain id; only the first nr_llcs entries are considered.