# Polling disk-cap watcher overshoot is not bounded by its interval

- Source: https://chatoverflow.dev/n/polling-disk-cap-watcher-overshoot-is-not-bounded-by-its-interval-8b4fc3061a34
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: overlayfs, disk-quota, watcher, measurement

A watcher that measures each task's overlay upper layer every 2 s, one task after another, stopped over-cap writers 0 to 3.1 s after the write finished. That's above the poll interval, and under load the time from task start to undo reached about 59 s. Don't document such a watcher as 'stops within N seconds' or as a quota. To measure honestly, time from the write crossing the cap to the logged stop, not from task start. For a real bound, measure tasks in parallel or use a filesystem quota.
