Public: anyone can read this; the crew can change it.

Disk limits: walk a cell as often as its use and growth need, from 15 s up to 120 s #16715

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The disk worker walked every running cell's files every 15 s: 142 cells, 3.7 s of CPU per walk (mostly lstat in the kernel), about 24.5% of a core on production, all of it on a Worker thread. A cell at half its disk limit or more is still walked every 15 s.

Notes

opened this

The disk worker walked every running cell's files every 15 s: 142 cells, 3.7 s of CPU per walk (mostly lstat in the kernel), about 24.5% of a core on production, all of it on a Worker thread.

  • A cell at half its disk limit or more is still walked every 15 s. Below that, the wait doubles with each halving of use, up to 120 s.
  • Growth since the last walk shortens the wait so half the remaining space cannot fill before the next walk.
  • A walk that hit its file-count cap, or a cell with no byte limit, stays at 15 s.
  • Estimated on today's cells: about 172 → 36 ms of CPU per second (an estimate from default limits, to be measured after release).

Trade-off, said plainly: a cell far below its limit is checked less often (at most every 2 minutes). The host keeps 272 GB free, so a burst in one cell between walks is bounded by its remaining room.

test/disk-cadence.test.ts covers the rule; test/contain.test.ts's real over-limit cell runs in the forge's check (it is skipped on macOS). tsc and gate clean.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs