Skip to main content

SURB_EVICTION_WARN_INTERVAL

Constant SURB_EVICTION_WARN_INTERVAL 

Source
const SURB_EVICTION_WARN_INTERVAL: u64 = 256;
Expand description

How often a sustained SURB-buffer overflow is allowed to log.

A full buffer stays full, so once it is at capacity every subsequent insert evicts — and this runs per received packet. Under poor network conditions eviction is the steady state rather than the exception, so warning on each one would turn the signal into thousands of lines a second. Warn once per interval and carry the running totals instead.