Skip to main content

MIN_CALIBRATION_TICKS

Constant MIN_CALIBRATION_TICKS 

Source
pub const MIN_CALIBRATION_TICKS: u64 = 190;
Expand description

The fewest local-timer interrupts a calibration must see, summed over its clean spins. CALIBRATION_SLACK is absolute, so this floor is what keeps the binding tight: at 190 interrupts the counter must see at least 180 of them, about 95%, when the reads around the spins take no time. (A single 70 ms spin sees about 70, where the slack alone would admit about 86%.) A tickless (nohz_full) CPU sees almost none, and there the binding says nothing.