Skip to content

Exclude `inactive_file` from adaptive limiter's memory watcher

Recently, the memory watcher uses usage_in_bytes (V1) or memory.current (V2) and compares them with the threshold. Those metrics include Page Caches, which are highly prone to evection when the cgroup is under pressure. Thus, the watcher can trigger back-off events prematurely. This MR excludes the inactive_file, which is the highly evictable portion of the memory from the measurement.

For an in-depth analysis: &10734 (comment 1632048830)

This MR also attaches some log fields to the calculator logs to make it a bit easier to debug when something goes wrong.

Merge request reports