Skip to main content

MIN_DISPATCH_INTERVAL

Constant MIN_DISPATCH_INTERVAL 

Source
const MIN_DISPATCH_INTERVAL: Duration;
Expand description

How often the events get dispatched at most. The kernel notifies a change of the memory events of a cgroup up to every 10 ms, and one of the hierarchical ones of every ancestor, which alternate in the queue, so that inotify does not merge them. Under memory pressure, like at memory.high or memory.max, a single container would wake the server up to a hundred times a second otherwise, and every one of its watchers would read its counters as often. The queue of the kernel holds 16384 events by default, which takes more than 1600 watched files changing in one interval, far more than the containers of a pod. An overflow gets dispatched to every watcher, see Watches::dispatch.