A unit's recorded peak above its node's ceiling is refused for good: t's test checks error on testing since 21:11Z 11-13 #62

Open
opened 2026-11-13 21:35:15 +00:00 by xemmerling · 0 comments
Owner

Seen on testing under b0dec1c3 and under 32527a94. Read-only finding: I changed nothing in testing's learned costs, so the case is still live there.

What happens. Every run that has to compile t's test binary (rustc --crate-name t ... src/main.rs, bin "t" test) ends its test driver twice with cache_unreachable and tells its test checks error:

t-wrapper: the compiler cache refused: a compile booked at 60.8 GiB can never fit on this node, which could offer 44.0 GiB at most

Runs: main's own r8011e0413f for 32527a94 at 21:11Z 11-13 (jobs j369-53, j369-54; errors: 1, test/t) and my forced r6ebf0642cd at 21:27Z (j371-6, j371-8; errors: 3, test/t, test/t-cache, test/t-wrapper). The run before, r31167eb59f for 98af034e at 20:16Z, had its test checks cached and did not compile.

Where the booking comes from. unit_costs key 29fa58706163… (family false), written 19:06:27Z: peaks 12.5, 57.0, 12.8 and 12.6 GiB over 202 runs. Its four kept courses and its four work courses never pass 13.4 GiB. So one peak sample of 57.0 GiB stands beside courses of 13; the booking follows the sample, the node's ceiling is 44.0 GiB, and the compile queue refuses it as never fitting (src/node/slots.rs:508).

When the sample was taken. Between 19:03:55 and 19:06:27Z. Your run r6bcc7805c5's test driver j364-26 (started 19:00:16) ended node_memory at 19:03:55, and its rerun j369-20 passed at 19:06:27, the second the row was written. That driver ran through my rollback proof of issue #61: testing's worker was replaced in place twice between 19:00 and 19:02Z (9faf6c61, then b0dec1c3 again). So the sample may come from a compile measured across a worker replaced under it, or from the attempt the node ended for memory. I did not find which.

Two things wrong, as I read it.

  1. A peak of 57 GiB was recorded for a compile whose courses say 13 GiB, on a node that offers 44 GiB at most.
  2. Once a unit's booking passes its node's ceiling there is no way out. It is refused before it runs, so it is never measured again and the sample never leaves its last four; its checks end error, as t's own fault, on every run until the row ages out or is removed. Nothing bounds a booking by the ceiling (the unit alone at the ceiling) or drops a sample no node could have held.

Consequence now. t's test checks cannot run on testing for any head that compiles t's test binary, and production does not run t's checks: 32527a94 has no test verdict from CI. On production I found no sign of the same: 0 jobs ended cache_unreachable since 16:32Z, and of 30,514 unit costs with peaks 28 hold a peak at least three times their smallest, one of them above 20 GiB (from 10-31). Its ceiling is 552 GB, so point 2 cannot bite there, but a sample like this one would book a unit several times too high until four newer runs displace it.

Evidence kept on my side. The row as JSON, the failed check's log and the worker's lines of 21:27Z.

21:44Z 11-13, again on the next head. Main's own run r4367f6aa27 for 9dedec3b ended errors: 1 the same way (6 cached, 14 passed), so that head has no test verdict either. Nothing in testing's learned costs has changed: the row still holds the 57.0 GiB peak.

22:48Z 11-13, still so, three heads on. Main's runs for 6ebaa239 (r645daa7738, 21:55Z) ended errors: 1 the same way, and the run for e5835fde (r504838c695, 22:47Z) has already had its test driver end cache_unreachable twice. The row still holds the 57.0 GiB peak (peaks: 13434385384, 61222353200, 13734233176, 13540253288). 6ebaa239 went to production at 22:08Z without a test verdict from CI.

23:08Z 11-13: I reset the one row on testing; the mechanism is untouched and this issue stays open. I need t's tests to run on testing before I land a fix for #65, and this refusal blocked them. In testing's unit_costs row of key 29fa58706163… I removed the 61,222,353,200-byte sample from peaks (left: 13434385384, 13734233176, 13540253288) and set peak.mean to the mean of those, then restarted testing's server so it reads the row again. The row as it was is saved on my side. To have the case back, write a peak above the node's ceiling into any compile's row: both points above still hold in the code.

23:15Z: with the row reset, the tests run. My forced run r58f25295a0 on testing (e5835fde) ended errors: 0, passed: 3 after 286 s, 19 jobs all passing; the test driver that had ended cache_unreachable within 7 s took 135 s. The row learned a fresh peak of 13.76 GB beside the three left. So the refusal was that one sample and nothing else.

23:45Z: main's own run passes again. r81bc98e0f9, testing's run for main's head 6ea02834, ended errors: 0, failed: 0, passed: 15, cached: 6: the first of main's runs tonight with its test checks run and green. The reset row is the only difference from the three before it.

06:14Z 11-17: it happened again on testing, and the line that writes the sample is read

At 05:42:22Z the head run's test driver j534-25 (rc7d54bd9db) ended node_memory (max=0 oom=0 oom_kill=7 jobs_oom_grew=true): three heavy runs overlapped on the node, two of them mine (kept 53.9 GB against an offer of 32.5 GB at 05:42:15Z). The t test binary's compile in it ended two seconds earlier:

05:42:20 slot ended job=j534-25 unit=29fa58706163… booked=15763445478 peak=13358732064 cgroup_peak=13359722496 at_limit=true stall_ms=3068

Both unit cost rows (29fa5870… and the family row 82b112bb…) then held peaks [13942663160, 10000680520, 63053781912, 12495679632]. 63,053,781,912 is 4 x 15,763,445,478: the booking times AGAIN_TIMES, written by src/node/daemon/conn.rs for what Slots::closed returns ("a compile killed at its slot's limit … the run that held at least its limit"):

peak: Some(ended.booked.saturating_mul(crate::node::slots::AGAIN_TIMES)),

Slots::finish sets ended.at_limit = ev.oom_kill > 0. A slot's cgroup counts an OOM kill of its process whichever bound caused it, so a compile the NODE's memory end killed, holding 13.4 GB of the 15.8 GB it had booked, is recorded as having needed four times its booking. The 11-13 sample fits the same rule: 61,222,353,200 = 4 x 15,305,588,300. The judge already tells the two apart for a job (f.events.oom_kill > 0 || (killed && f.jobs_oom_grew …), and the job's own events read oom=0).

What it cost this time: from 05:50Z every test driver on testing was refused in 6 to 8 s ("a compile booked at 62.6 GiB can never fit on this node, which could offer 44.0 GiB at most"), so t's own CI gave no test verdict for 8e5df150 (rd099ec6da2), 804a0217 (r6347c04ae1) and 02f589d1 (r09062377ba, errors 3). Testing was deployed on each all the same.

What I did at 06:11Z, on testing only: took the one sample out of both rows again (peaks now [13942663160, 10000680520, 12495679632]) and restarted testing's server with no run open. Evidence kept: the two rows as they were and the worker's log.

Two things are missing, and I split them:

  1. The sample is wrong where the kill was the node's. at_limit should be true only when the slot's own limit was hit (its events' oom or max above zero, as the job's judge reads it). This is a bug against the documented case ("killed at its slot's limit"), so I am having it fixed with a test and will land it through the whole check set; tell me if you would rather take it.
  2. A booking above what the node could ever offer is refused for good and never measured again. That is the booking's rule and yours: unchanged by me.

07:06Z 11-17: the first half is on main, 628c4681

One commit on your 1f548f35 (the developer's 88b4d7c0, applied over your slots change with one mechanical conflict: your new block kept, the function below it renamed). Whole check set green on testing (run rc0979f00d8: 8 passed, 0 failed, 0 errors).

  • MemoryEvents::killed_at_own_limit() is oom_kill > 0 && oom > 0; Slots::finish sets at_limit by it, and the job's judge uses the same method in place of its own expression.
  • Slots::closed: a compile the node's memory end killed is no longer returned, so nothing is reported for its unit.
  • Slots::again: any kill still ends the slot and the run goes again, but booked at four times only when its own limit ran out; after a node's kill it goes again at its own booking, and its unit's peak is not reported at four times. The developer kept the rerun on purpose: the wrapper asks Again after every slotted run, a driver's own events count cargo's processes and never its slots', so without the rerun cargo would exit 101 and the job would be judged the check's failure instead of node_memory. The cost is that a compile can be killed and run again more than once while its node stays short; before, the fourfold booking ended that by being refused.
  • A slot compile killed because its driver's grant ran out (a parent's limit, no oom in the slot) now also goes again at its own booking.

Not changed, and still open here:

  1. A booking above what the node could ever offer is refused for good. Yours.
  2. The same misreading for a compile run on a peer: src/node/peer.rs sends oom = used.oom_kills > 0 and the asking node records and reruns at four times (src/node/daemon/run.rs). The peer has the oom count, but Frame::Killed { oom: false } means "it crashed" and becomes the compile's verdict, so telling the two limits apart needs the frame to carry it: a wire change, left alone.

Unrelated but found on the way: at 06:12Z, 66 s after testing's server restarted on cleaned rows, a re-ask of the same selection on the same tree was still refused at 62.6 GiB; the head run's build five minutes later was booked 14.9 GB. I did not find where the figure was still held.

08:55Z 11-17: the same event on testing with the fix, and no sample

Testing came back on ea02d47b at 08:52Z (it holds 628c4681). Three minutes later the node ran short again while t's own runs overlapped:

08:55:12 slot ended job=j580-5 unit=29fa58706163… booked 14.15G peak 12.67G at_limit=false stall_ms=8704
08:55:14 WARN a job ended at a memory limit job=j580-5 cause=node_memory … max=0 oom=0 oom_kill=9 jobs_oom_grew=true

The same unit, the same kind of end as at 05:42Z, and at_limit is now false. Both unit cost rows hold peaks of 9.3 to 14.0 GiB; the largest peak of any unit cost written since 08:52Z is 14.0 GiB (before the fix this end wrote 4 x 15.76 GB). The driver went again at once (j580-26, the compile booked 15.03 GB, peak 13.97 GB) and passed at 08:57:26Z; the head run ended 15 passed, 0 errors (rdf7a0d8fbf), and so did the run for 628c4681 that had hung since 07:06Z (rf41aada753).

So the first half holds on a real node. Still open here as before: the booking above a node's ceiling, and the peer path's oom over the wire.

Seen on testing under b0dec1c3 and under 32527a94. Read-only finding: I changed nothing in testing's learned costs, so the case is still live there. **What happens.** Every run that has to compile `t`'s test binary (`rustc --crate-name t ... src/main.rs`, bin "t" test) ends its `test` driver twice with `cache_unreachable` and tells its test checks `error`: ``` t-wrapper: the compiler cache refused: a compile booked at 60.8 GiB can never fit on this node, which could offer 44.0 GiB at most ``` Runs: main's own r8011e0413f for 32527a94 at 21:11Z 11-13 (jobs j369-53, j369-54; `errors: 1`, test/t) and my forced r6ebf0642cd at 21:27Z (j371-6, j371-8; `errors: 3`, test/t, test/t-cache, test/t-wrapper). The run before, r31167eb59f for 98af034e at 20:16Z, had its test checks cached and did not compile. **Where the booking comes from.** `unit_costs` key `29fa58706163…` (family false), written 19:06:27Z: `peaks` 12.5, 57.0, 12.8 and 12.6 GiB over 202 runs. Its four kept courses and its four work courses never pass 13.4 GiB. So one peak sample of 57.0 GiB stands beside courses of 13; the booking follows the sample, the node's ceiling is 44.0 GiB, and the compile queue refuses it as never fitting (src/node/slots.rs:508). **When the sample was taken.** Between 19:03:55 and 19:06:27Z. Your run r6bcc7805c5's `test` driver j364-26 (started 19:00:16) ended `node_memory` at 19:03:55, and its rerun j369-20 passed at 19:06:27, the second the row was written. That driver ran through my rollback proof of issue #61: testing's worker was replaced in place twice between 19:00 and 19:02Z (9faf6c61, then b0dec1c3 again). So the sample may come from a compile measured across a worker replaced under it, or from the attempt the node ended for memory. I did not find which. **Two things wrong, as I read it.** 1. A peak of 57 GiB was recorded for a compile whose courses say 13 GiB, on a node that offers 44 GiB at most. 2. Once a unit's booking passes its node's ceiling there is no way out. It is refused before it runs, so it is never measured again and the sample never leaves its last four; its checks end `error`, as t's own fault, on every run until the row ages out or is removed. Nothing bounds a booking by the ceiling (the unit alone at the ceiling) or drops a sample no node could have held. **Consequence now.** t's test checks cannot run on testing for any head that compiles `t`'s test binary, and production does not run t's checks: 32527a94 has no test verdict from CI. On production I found no sign of the same: 0 jobs ended `cache_unreachable` since 16:32Z, and of 30,514 unit costs with peaks 28 hold a peak at least three times their smallest, one of them above 20 GiB (from 10-31). Its ceiling is 552 GB, so point 2 cannot bite there, but a sample like this one would book a unit several times too high until four newer runs displace it. **Evidence kept on my side.** The row as JSON, the failed check's log and the worker's lines of 21:27Z. **21:44Z 11-13, again on the next head.** Main's own run r4367f6aa27 for 9dedec3b ended `errors: 1` the same way (6 cached, 14 passed), so that head has no test verdict either. Nothing in testing's learned costs has changed: the row still holds the 57.0 GiB peak. **22:48Z 11-13, still so, three heads on.** Main's runs for 6ebaa239 (r645daa7738, 21:55Z) ended `errors: 1` the same way, and the run for e5835fde (r504838c695, 22:47Z) has already had its `test` driver end `cache_unreachable` twice. The row still holds the 57.0 GiB peak (`peaks`: 13434385384, 61222353200, 13734233176, 13540253288). 6ebaa239 went to production at 22:08Z without a test verdict from CI. **23:08Z 11-13: I reset the one row on testing; the mechanism is untouched and this issue stays open.** I need t's tests to run on testing before I land a fix for #65, and this refusal blocked them. In testing's `unit_costs` row of key `29fa58706163…` I removed the 61,222,353,200-byte sample from `peaks` (left: 13434385384, 13734233176, 13540253288) and set `peak.mean` to the mean of those, then restarted testing's server so it reads the row again. The row as it was is saved on my side. To have the case back, write a peak above the node's ceiling into any compile's row: both points above still hold in the code. **23:15Z: with the row reset, the tests run.** My forced run r58f25295a0 on testing (e5835fde) ended `errors: 0, passed: 3` after 286 s, 19 jobs all passing; the `test` driver that had ended `cache_unreachable` within 7 s took 135 s. The row learned a fresh peak of 13.76 GB beside the three left. So the refusal was that one sample and nothing else. **23:45Z: main's own run passes again.** r81bc98e0f9, testing's run for main's head 6ea02834, ended `errors: 0, failed: 0, passed: 15, cached: 6`: the first of main's runs tonight with its test checks run and green. The reset row is the only difference from the three before it. **06:14Z 11-17: it happened again on testing, and the line that writes the sample is read** At 05:42:22Z the head run's `test` driver j534-25 (rc7d54bd9db) ended `node_memory` (`max=0 oom=0 oom_kill=7 jobs_oom_grew=true`): three heavy runs overlapped on the node, two of them mine (kept 53.9 GB against an offer of 32.5 GB at 05:42:15Z). The `t` test binary's compile in it ended two seconds earlier: ``` 05:42:20 slot ended job=j534-25 unit=29fa58706163… booked=15763445478 peak=13358732064 cgroup_peak=13359722496 at_limit=true stall_ms=3068 ``` Both unit cost rows (29fa5870… and the family row 82b112bb…) then held `peaks` [13942663160, 10000680520, **63053781912**, 12495679632]. 63,053,781,912 is 4 x 15,763,445,478: the booking times `AGAIN_TIMES`, written by `src/node/daemon/conn.rs` for what `Slots::closed` returns ("a compile killed at its slot's limit … the run that held at least its limit"): ```rust peak: Some(ended.booked.saturating_mul(crate::node::slots::AGAIN_TIMES)), ``` `Slots::finish` sets `ended.at_limit = ev.oom_kill > 0`. A slot's cgroup counts an OOM kill of its process whichever bound caused it, so a compile the NODE's memory end killed, holding 13.4 GB of the 15.8 GB it had booked, is recorded as having needed four times its booking. The 11-13 sample fits the same rule: 61,222,353,200 = 4 x 15,305,588,300. The judge already tells the two apart for a job (`f.events.oom_kill > 0 || (killed && f.jobs_oom_grew …)`, and the job's own events read `oom=0`). What it cost this time: from 05:50Z every `test` driver on testing was refused in 6 to 8 s ("a compile booked at 62.6 GiB can never fit on this node, which could offer 44.0 GiB at most"), so t's own CI gave no test verdict for 8e5df150 (rd099ec6da2), 804a0217 (r6347c04ae1) and 02f589d1 (r09062377ba, errors 3). Testing was deployed on each all the same. What I did at 06:11Z, on testing only: took the one sample out of both rows again (`peaks` now [13942663160, 10000680520, 12495679632]) and restarted testing's server with no run open. Evidence kept: the two rows as they were and the worker's log. Two things are missing, and I split them: 1. **The sample is wrong where the kill was the node's.** `at_limit` should be true only when the slot's own limit was hit (its events' `oom` or `max` above zero, as the job's judge reads it). This is a bug against the documented case ("killed at its slot's limit"), so I am having it fixed with a test and will land it through the whole check set; tell me if you would rather take it. 2. **A booking above what the node could ever offer is refused for good and never measured again.** That is the booking's rule and yours: unchanged by me. **07:06Z 11-17: the first half is on main, 628c4681** One commit on your 1f548f35 (the developer's 88b4d7c0, applied over your slots change with one mechanical conflict: your new block kept, the function below it renamed). Whole check set green on testing (run rc0979f00d8: 8 passed, 0 failed, 0 errors). - `MemoryEvents::killed_at_own_limit()` is `oom_kill > 0 && oom > 0`; `Slots::finish` sets `at_limit` by it, and the job's judge uses the same method in place of its own expression. - `Slots::closed`: a compile the node's memory end killed is no longer returned, so nothing is reported for its unit. - `Slots::again`: any kill still ends the slot and the run goes again, but booked at four times only when its own limit ran out; after a node's kill it goes again at its own booking, and its unit's peak is not reported at four times. The developer kept the rerun on purpose: the wrapper asks `Again` after every slotted run, a driver's own events count cargo's processes and never its slots', so without the rerun cargo would exit 101 and the job would be judged the check's failure instead of `node_memory`. The cost is that a compile can be killed and run again more than once while its node stays short; before, the fourfold booking ended that by being refused. - A slot compile killed because its driver's grant ran out (a parent's limit, no `oom` in the slot) now also goes again at its own booking. Not changed, and still open here: 1. **A booking above what the node could ever offer is refused for good.** Yours. 2. **The same misreading for a compile run on a peer**: `src/node/peer.rs` sends `oom = used.oom_kills > 0` and the asking node records and reruns at four times (`src/node/daemon/run.rs`). The peer has the `oom` count, but `Frame::Killed { oom: false }` means "it crashed" and becomes the compile's verdict, so telling the two limits apart needs the frame to carry it: a wire change, left alone. Unrelated but found on the way: at 06:12Z, 66 s after testing's server restarted on cleaned rows, a re-ask of the same selection on the same tree was still refused at 62.6 GiB; the head run's build five minutes later was booked 14.9 GB. I did not find where the figure was still held. **08:55Z 11-17: the same event on testing with the fix, and no sample** Testing came back on ea02d47b at 08:52Z (it holds 628c4681). Three minutes later the node ran short again while t's own runs overlapped: ``` 08:55:12 slot ended job=j580-5 unit=29fa58706163… booked 14.15G peak 12.67G at_limit=false stall_ms=8704 08:55:14 WARN a job ended at a memory limit job=j580-5 cause=node_memory … max=0 oom=0 oom_kill=9 jobs_oom_grew=true ``` The same unit, the same kind of end as at 05:42Z, and `at_limit` is now false. Both unit cost rows hold peaks of 9.3 to 14.0 GiB; the largest peak of any unit cost written since 08:52Z is 14.0 GiB (before the fix this end wrote 4 x 15.76 GB). The driver went again at once (j580-26, the compile booked 15.03 GB, peak 13.97 GB) and passed at 08:57:26Z; the head run ended 15 passed, 0 errors (rdf7a0d8fbf), and so did the run for 628c4681 that had hung since 07:06Z (rf41aada753). So the first half holds on a real node. Still open here as before: the booking above a node's ceiling, and the peer path's `oom` over the wire.
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#62
No description provided.