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

A pull's check widens when the machine has room: twice the shards and cell when nothing waits and the host is idle #17383

opened this

Merged 19h 57m ago, live in production

The test phase is 85% of a large pull check: 115–172 slices summing to 3,359–4,039 s, run 8 at a time in 441–525 s on vxrail (2026-12-02, 04:13–04:28Z, from the runner logs). At 8 a check uses 7.4 cores. With the queue near empty and cores idle, the same work at 16 would take about half the wall.

Notes

opened this

The test phase is ~85% of a large pull check: 115–172 slices summing to 3,359–4,039 s, run 8 at a time in 441–525 s on vxrail (2026-12-02, 04:13–04:28Z, from the runner logs). At 8 a check uses ~7.4 cores. With the queue near empty and cores idle, the same work at 16 would take about half the wall.

  • checks/wide.ts: one decision for the moment's room. A pull's check widens when no other check is queued AND the host's idle share is at or over FORGE_WIDE_IDLE (default 0.25, 0 is off) over BOTH the last one and five minutes. Widened means twice its shards and twice its cell's CPU and memory, capped at a runner's own (16 CPUs, 24 GiB). Under load nothing widens. Main's whole verification keeps its own count.
  • Room is real idle, not load. vxrail's load average stays at 1.2-2.1 per core even with a fifth of its cores idle, because it counts the idle-priority work that runs there. A loadavg line would never fire.
    • Idle comes from the machine sampler's node points (machine_sample: the host's /proc/stat busy time every 15 s), averaged over 1 and 5 minutes against the host's CPUs (its cpu:N points). With no points in the window, there is no room.
    • Inside the forge's container and a runner's, /proc/stat, loadavg and /proc/pressure are the host's (same totals; checked on vxrail).
  • How the line was picked: over six hours on 2026-12-02 (73 five-minute windows), host idle ran p10 13.7%, median 21.6%, p90 28.8%, max 45.2%. A 60 s /proc/stat sample with 1 queued and 9 running read 36.6%. CPU pressure (some avg60/avg300 ~19-21% quiet, ~27-32% at load 132) separates too little to use. Widening adds ~7.4 busy cores, 9% of 80, so at 25% a check widens only in the quieter quarter of the day and leaves ~16% idle after.
  • tier_runner.ts: decided once, when the check is handed to a runner. The job carries FORGE_CHECK_SHARDS and its limits, so a running check never narrows and the next is decided afresh. The log says the decision either way ("widened to twice the shards and cell: nothing waits, host idle 40%/35% over 1/5 min, at or over 25%", "not widened: N checks waiting", or "not widened: host idle …, under 25%").
  • Memory at peak: runners at 8 slices measured 0.3–3.4 GiB over a minute of docker stats (up to 13.4 cores), so 16 slices need ~7 GiB against the widened cell's 16 GiB and the container's 24 GiB.
  • roomNow is the same reading more runners for a long queue would use; that scaling needs runners.sh, a host script, so it's a separate change with the owner's go.

Test (test/wide-checks.test.ts), tryRunner with the runner stood in:

  • Idle: 16 shards and cpus 16 / memory 16384, said in the log.
  • A check queued: 8 and the declared cell.
  • A busy host over 1 min, or over 5 min, or no samples: 8.
  • A check arriving while a wide one runs starts narrow; the wide one's job is unchanged.
  • The verify tier never widens. The policy is off at 0, and caps at a runner's own.
  • The real reading: machine_sample rows of node and cpu:N give the 1- and 5-minute idle shares, and with no rows there is no room.

Before/after: before, a large check's test phase was 441–525 s at 8 (see above). After lands, I'll read the same lines ("── shard …", "Ran … in Ns") from checks started on a quiet queue.

No door: how many shards a check runs; nothing a person sees or sets beyond FORGE_WIDE_IDLE Direction: CI speed: idle cores shorten the check that runs when nothing waits (#1797)

Co-Authored-By: Claude Fable 5 <[email protected]>

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs