Session cargo drivers outgrow their disk booking (last run + a fifteenth) and end disk_full, costing a rerun each time #41

Open
opened 2026-10-30 00:17:52 +00:00 by xemmerling · 0 comments
Owner

What happened in prod (t.tilo.so, 2026-10-30)

test (a cargo test family driver) in session factory-developers ended disk_full twice within 15 minutes — j38-17 (run r3c71be9011, 00:03:09 UTC, ci-x86-1) and j39-25 (run r549b2ee3dd, 00:15:34, ci-x86-1) — each costing a whole rerun. The reruns are booked higher (j38-20: 10.15 GiB vs 9.08 asked, passed; j40-14: 9.45 GiB vs 8.45 asked), so the mechanism works, but it keeps recurring.

Root cause

src/sched/book.rs (2271d3b0): a job's disk booking is the most a run of its key wrote, with room with_room(measured, AT_DISK_LIMIT) = measured + max(measured/15, 1 GiB). A session's cargo driver works in its kept build directory (incremental state, target/ of the session), which grows from run to run as the session's changes add units and incremental data; a fifteenth (~0.6 GiB at 9 GiB) or 1 GiB of room is outgrown regularly, and the job dies at its quota rather than growing (a disk grow is only asked near the limit if the node is fast enough to answer). Each time: a full rerun.

What should happen

A driver whose directory carries over between runs (a session's or a reference's kept build) is booked from what that directory holds now plus room for what one run adds (e.g. the largest growth seen between consecutive runs of the key, or a larger minimum such as 4 GiB / a quarter), and its disk grows on request before it hits the quota; nodes have terabytes free.

## What happened in prod (t.tilo.so, 2026-10-30) `test` (a cargo test family driver) in session `factory-developers` ended `disk_full` twice within 15 minutes — j38-17 (run r3c71be9011, 00:03:09 UTC, ci-x86-1) and j39-25 (run r549b2ee3dd, 00:15:34, ci-x86-1) — each costing a whole rerun. The reruns are booked higher (j38-20: 10.15 GiB vs 9.08 asked, passed; j40-14: 9.45 GiB vs 8.45 asked), so the mechanism works, but it keeps recurring. ## Root cause `src/sched/book.rs` (2271d3b0): a job's disk booking is the most a run of its key wrote, with room `with_room(measured, AT_DISK_LIMIT)` = `measured + max(measured/15, 1 GiB)`. A session's cargo driver works in its kept build directory (incremental state, `target/` of the session), which grows from run to run as the session's changes add units and incremental data; a fifteenth (~0.6 GiB at 9 GiB) or 1 GiB of room is outgrown regularly, and the job dies at its quota rather than growing (a disk grow is only asked near the limit if the node is fast enough to answer). Each time: a full rerun. ## What should happen A driver whose directory carries over between runs (a session's or a reference's kept build) is booked from what that directory holds now plus room for what one run adds (e.g. the largest growth seen between consecutive runs of the key, or a larger minimum such as 4 GiB / a quarter), and its disk grows on request before it hits the quota; nodes have terabytes free.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tilo/t#41
No description provided.