node/admit, sched: after d59240c7 booked cores hold at the offer between waves, but a wave of starts still reads 294 and 326 of 159 and the node counts 412 busy while the machine has 170 (05:08 to 05:30Z 11-14) #71

Open
opened 2026-11-14 05:31:30 +00:00 by xemmerling · 0 comments
Owner

Data for the planner, read on production after the promote of 618f31ea (04:39Z 11-14), which carries d59240c7. Nothing here is a request to change admission by hand.

Between waves the fix holds

t status, 30 samples 20 s apart, 05:15 to 05:26Z, beside the node's own busy count from Prometheus:

Before d59240c7 (25 readings, 11-13) After (30 samples)
Over the offer of 159 by more than two cores 13 11
Mean excess of those 34 11
Largest booked 256 186
Median booked 159
Mean booked / used by the server's count / busy by the node's count 164 / 157 / 156

At the start of a wave booked still doubles

Two readings of /v1/views/jobs fell on waves: 294/159 at 05:12Z and 326/159 at 05:27Z. Minute by minute around the first (Prometheus; the operating system's figures are node-exporter's for the node):

Minute Jobs started Running Node's busy cores Unsampled Awaiting OS busy cores CPU pressure
05:10 25 49 243 27 10 178 0.40
05:11 215 167 127 26 0 141 0.11
05:12 507 421 146 24 0 169 0.23
05:13 20 233 412 1 0 170 0.50
05:14 73 137 137 0 12 170 0.19
05:27 152 97 132 2 57 169 0.23
05:28 12 112 185 3 68 181 0.49
  • 507 jobs started in the minute of 05:12Z. The server's booked cores read 294, and a minute later the node's own count read 412 busy cores, with 1 unsampled.
  • The machine did not follow either count: 169 and 170 cores busy by the operating system, CPU pressure 0.50 for that one minute against 0.2 to 0.3 around it.
  • The minute after each wave few jobs start (20 at 05:13Z, 12 at 05:28Z) while the operating system's busy cores stay at 170 to 181.
  • No job ended for memory or for a cause of t's own in these half hours. Kept memory stayed under the offer.

Also seen at the takeover

For about ten minutes after the server's start at 04:39Z: 337 jobs running at 04:44Z, booked memory 639 GB and then 649 GB against 554 GB offered, the node's busy count 411, load 640, CPU pressure 0.47 then 0.70. No job ended for memory.

The sampler is ~/.cache/t-factory/booked-vs-busy.sh on my side; its log holds each sample with the checks running and queued.

On 67588367 (promoted 06:21Z), the same at 07:18Z

  • 369 jobs started in the minute of 07:18Z and 355 were running.
  • /v1/views/jobs read 474 cores used on the node, with 159 of 159 booked. The node's own busy count read 238 (153 sampled), the operating system 178, CPU pressure 0.57.
  • Between waves in the minutes before: the node's busy count 166 to 224, the operating system 175 to 180.

So the views' used overshoots at a wave's start as booked did, and by more.

Six minutes with no job started, 09:54 to 09:59Z, on c6dca088

Minute Jobs started Running Node's busy cores Sampled Unsampled OS busy cores CPU pressure Load Kept memory Offered
09:53 73 96 143 136 7 174 0.32 386 238 GB 560 GB
09:54 1 84 167 156 1 176 0.34 399 238 GB 561 GB
09:55 1 73 160 155 0 178 0.33 329 238 GB 558 GB
09:56 0 63 837 157 0 177 0.84 1,066 681 GB 547 GB
09:57 0 54 549 158 0 176 0.86 1,262 691 GB 558 GB
09:58 0 47 453 157 0 176 0.78 1,242 676 GB 558 GB
09:59 0 42 127 125 0 166 0.47 948 681 GB 553 GB
10:00 236 151 165 134 28 147 0.14 597 238 GB 555 GB
  • About 72,000 asks were queued throughout. No job ended for memory and none was lost.
  • The node's busy count read 837, 549 and 453 cores while its sampled cores stayed at 157 and its unsampled at 0. So the busy count held something that is neither.
  • Kept memory read 676 to 691 GB, 120 to 135 GB over the offer, for four minutes, and 238 GB in the minutes before and after.
  • The machine was saturated at the time: 176 cores busy, CPU pressure 0.78 to 0.86, load over 1,000.
  • People's wide jobs were out: chromium-host-repeat at width 159 (09:47:57 to 10:01:46Z), tilo-sh-programs at width 65 with 36 GB booked (09:50:33 to 10:01:44Z), a cargo build --profile lounge-gate at width 42 and a test driver at width 34 (both 09:47Z to about 10:00Z). Starts came back in the minute the first of them ended.

So here the counts did more than read high: they closed the node to every start for six minutes.

How often: over the 24 hours to 10:04Z there were three stretches of three or more minutes with no job started while asks were queued, 12 minutes in all: 22:43Z 11-13 (3 minutes), 01:40Z 11-14 (5 minutes) and this one. Kept memory was over the offer in 10 minutes of that day. Only this stretch had both, and only this one had the busy count far above the node.

2026-11-14 19:47Z: a wave twenty minutes after the 19:12Z restart, by the minute

A reading, not a fault report: no job ended with an error or a cause, and of 82 jobs running at 19:41Z none was past half its time limit. This replaces a first version of this note that I wrote at 19:42Z and that was wrong in two places, named at the end.

minute (Z) jobs started granted tokens unsampled cores waited for a core (busy − sampled − unsampled) node load, 1 min runnable processes CPU pressure, some
19:31 0 251 1 9 321 83 35%
19:32 492 1,623 11 10 347 417 33%
19:33 0 1,382 297 8 561 356 39%
19:34 0 1,302 201 3 476 247 33%
19:37 4 879 18 278 579 87 58%
19:38 0 875 17 124 861 944 73%
19:41 12 975 43 489 729 1,100 63%
19:42 0 956 13 996 1,194 1,574 73%
19:43 1 917 27 612 1,158 1,019 79%
19:45 3 908 1 101 596 14 61%
19:47 16 380 239 43%

The first four figures are the server's (t_jobs_started_total, t_node_granted_tokens, t_node_unsampled_cores, t_node_busy_cores less the sampled and unsampled terms); the last three are node-exporter's for ci-x86-1 (192 processors; pressure as a two-minute rate). Sampled cores stayed 143 to 168 throughout.

What the worker's own minute line says: 66 to 113 jobs followed before; at 19:32:28Z it held 382, 276 of them held for room; 240 followed at 19:34:28Z; 88 at 19:35:28Z; 66 to 81 after. Its compile slots ended at 2,466, 5,333, 7,213, 3,177, 2,073 and 1,280 a minute from 19:33Z to 19:38Z, against 45 to 500 a minute before. The jobs were mostly clippy/<crate> members of about two dozen heads.

The shape: the minute of admission (19:32Z) read 10 cores waited for and 183 busy. The waiting came five to ten minutes later, 278 at 19:37Z and 489 to 996 from 19:41Z to 19:43Z, when the admitted jobs' compiles were under way. Tokens stayed near 900 for the quarter hour after, against 250 before.

Against the day, so its size is not overstated:

  • Starts in one minute reached 541 in the half hour to 13:00Z and 464 in the half hour to 18:00Z. By starts this wave is an ordinary one.
  • The node's one-minute load passed 1,100 in five other hours since 23:00Z 11-13 (hours ending 00:00Z, 02:00Z, 09:00Z, 10:00Z, 15:00Z; highest 1,368). Its hourly mean was 313 to 580.
  • CPU pressure by the hour was 24% to 42%; these nine minutes read 58% to 79%.
  • Cores waited for, by the hour, averaged 9 to 42; granted tokens averaged 395 to 608, and 919 in the hour after the 17:09Z restart.

Wrong in the first version: I wrote that busy cores far over the hardware was the unsampled term. That held at 19:33Z and 19:34Z only; from 19:37Z it is what tasks waited for a core, as the note on Counts::busy_sampled says. I also called it the largest wave I had read, which by starts a minute it is not.

Added 02:35Z 11-16: one minute on production 8bd4b1f2 where people's jobs took 70% of the CPU against their booking. Read at 02:29Z from the job classes' cpu.stat on the worker and from t.jobs:

class running jobs cores booked (lease.cores_milli) cores used over the minute
people 46 88.5 110.5
ci 37 294.4 48.4

Load average 583 on 159 cores, CPU pressure (some avg10) 73%. CI's 37 jobs were ten heads' test builds at width 18 and their clippy at 11. So people's jobs used a quarter more than they book, and CI's admitted jobs got a sixth of what they book. The view read 159 of 159 booked. Over the same hour CI's job starts fell from 1,915 a quarter hour (01:45Z, median wait 14 min) to 772 (02:15Z, median wait 66 min), and people's waits stayed under a second. CPU-hours of the hour: people 77.4 (quinten 63.1, xemmerling 14.3), CI 81.5. This is data for the planner, not a patch: whether CI gets a floor is the user's decision, and I have put it to them.

Added 03:05Z 11-16: fifteen minutes in which six CI jobs started. Job starts by five minutes from t.job_history and t.jobs (production 8bd4b1f2, before your promote of 02:59Z):

from (UTC) CI people
02:25 327 43
02:30 512 21
02:35 0 209
02:40 5 58
02:45 1 40
02:50 73 57
02:55 111 137

The worker's log says the same by the minute: no CI launch from 02:34Z to 02:53Z. The node read healthy and booked 159 of 159 throughout, with about 4,800 CI asks waiting for room. Two more readings that go with it:

  • The two class cgroups have the same cpu.weight (100 each, cpu.max unset), yet the split was 110 to 48 cores at 02:29Z and 148 to 10 at 03:00Z. So CI's admitted jobs were not asking for the CPU they book.
  • Compile slots in the worker's log of 01:36Z to 02:06Z: people's 3,569 compiles were all granted at once (mean 0.1 s queued). Of the 1,222 compiles of jobs launched before that log began, which are CI's long builds, 418 (34%) were held for no core free, 16.6 s on average and up to 120 s.

Read together: people's compiles take a core whenever they ask, CI's builds hold their booking while their compiles queue for a core, so they run long, and no room comes free for CI's next jobs. At 03:00Z people's 147 running jobs were 118 of xemmerling and 29 of quinten. Whether CI gets a floor is with the user; this is the data.

20:58Z 11-17 (production 2885a521): the largest reading so far, and no harm from it. The status line read booked 367/157 at 20:58:09Z, 210 cores over the offer; the goal line had booking equal to the offer at 20:55Z and again at 21:05Z. In the seven minutes from 20:55Z the node started 334 CI jobs (wanting 689 cores in all), 180 of one party's (856) and 25 of the other's (403). The node's own busy-cores figure (t_node_busy_cores, 15 s steps) stood over 200 in 9 of 45 samples from 20:56:15Z to 21:03:30Z and peaked at 499 at 21:01:30Z; ten-minute peaks of 250 to 663 came eighteen times between 15:00Z and 21:00Z today. What it cost this time: nothing I can find. No job ended with a cause, the node was never degraded, kept memory stayed under the offer, and one job was "placed on a node without room" at 21:02:09Z and held. So it is still a reading that runs far ahead of what the machine has for a few seconds in a wave of starts, not a fault by itself. Prometheus carries no booked-cores series, so the 367 is known only from the status line.

Data for the planner, read on production after the promote of 618f31ea (04:39Z 11-14), which carries d59240c7. Nothing here is a request to change admission by hand. ## Between waves the fix holds `t status`, 30 samples 20 s apart, 05:15 to 05:26Z, beside the node's own busy count from Prometheus: | | Before d59240c7 (25 readings, 11-13) | After (30 samples) | |---|---|---| | Over the offer of 159 by more than two cores | 13 | 11 | | Mean excess of those | 34 | 11 | | Largest booked | 256 | 186 | | Median booked | | 159 | | Mean booked / used by the server's count / busy by the node's count | | 164 / 157 / 156 | ## At the start of a wave booked still doubles Two readings of `/v1/views/jobs` fell on waves: **294/159 at 05:12Z and 326/159 at 05:27Z.** Minute by minute around the first (Prometheus; the operating system's figures are node-exporter's for the node): | Minute | Jobs started | Running | Node's busy cores | Unsampled | Awaiting | OS busy cores | CPU pressure | |---|---|---|---|---|---|---|---| | 05:10 | 25 | 49 | 243 | 27 | 10 | 178 | 0.40 | | 05:11 | 215 | 167 | 127 | 26 | 0 | 141 | 0.11 | | 05:12 | 507 | 421 | 146 | 24 | 0 | 169 | 0.23 | | 05:13 | 20 | 233 | 412 | 1 | 0 | 170 | 0.50 | | 05:14 | 73 | 137 | 137 | 0 | 12 | 170 | 0.19 | | 05:27 | 152 | 97 | 132 | 2 | 57 | 169 | 0.23 | | 05:28 | 12 | 112 | 185 | 3 | 68 | 181 | 0.49 | - 507 jobs started in the minute of 05:12Z. The server's booked cores read 294, and a minute later the node's own count read 412 busy cores, with 1 unsampled. - The machine did not follow either count: 169 and 170 cores busy by the operating system, CPU pressure 0.50 for that one minute against 0.2 to 0.3 around it. - The minute after each wave few jobs start (20 at 05:13Z, 12 at 05:28Z) while the operating system's busy cores stay at 170 to 181. - No job ended for memory or for a cause of t's own in these half hours. Kept memory stayed under the offer. ## Also seen at the takeover For about ten minutes after the server's start at 04:39Z: 337 jobs running at 04:44Z, booked memory 639 GB and then 649 GB against 554 GB offered, the node's busy count 411, load 640, CPU pressure 0.47 then 0.70. No job ended for memory. The sampler is `~/.cache/t-factory/booked-vs-busy.sh` on my side; its log holds each sample with the checks running and queued. ## On 67588367 (promoted 06:21Z), the same at 07:18Z - 369 jobs started in the minute of 07:18Z and 355 were running. - `/v1/views/jobs` read **474 cores used** on the node, with 159 of 159 booked. The node's own busy count read 238 (153 sampled), the operating system 178, CPU pressure 0.57. - Between waves in the minutes before: the node's busy count 166 to 224, the operating system 175 to 180. So the views' `used` overshoots at a wave's start as `booked` did, and by more. ## Six minutes with no job started, 09:54 to 09:59Z, on c6dca088 | Minute | Jobs started | Running | Node's busy cores | Sampled | Unsampled | OS busy cores | CPU pressure | Load | Kept memory | Offered | |---|---|---|---|---|---|---|---|---|---|---| | 09:53 | 73 | 96 | 143 | 136 | 7 | 174 | 0.32 | 386 | 238 GB | 560 GB | | 09:54 | 1 | 84 | 167 | 156 | 1 | 176 | 0.34 | 399 | 238 GB | 561 GB | | 09:55 | 1 | 73 | 160 | 155 | 0 | 178 | 0.33 | 329 | 238 GB | 558 GB | | 09:56 | 0 | 63 | 837 | 157 | 0 | 177 | 0.84 | 1,066 | 681 GB | 547 GB | | 09:57 | 0 | 54 | 549 | 158 | 0 | 176 | 0.86 | 1,262 | 691 GB | 558 GB | | 09:58 | 0 | 47 | 453 | 157 | 0 | 176 | 0.78 | 1,242 | 676 GB | 558 GB | | 09:59 | 0 | 42 | 127 | 125 | 0 | 166 | 0.47 | 948 | 681 GB | 553 GB | | 10:00 | 236 | 151 | 165 | 134 | 28 | 147 | 0.14 | 597 | 238 GB | 555 GB | - About 72,000 asks were queued throughout. No job ended for memory and none was lost. - The node's busy count read 837, 549 and 453 cores while its sampled cores stayed at 157 and its unsampled at 0. So the busy count held something that is neither. - Kept memory read 676 to 691 GB, 120 to 135 GB over the offer, for four minutes, and 238 GB in the minutes before and after. - The machine was saturated at the time: 176 cores busy, CPU pressure 0.78 to 0.86, load over 1,000. - People's wide jobs were out: `chromium-host-repeat` at width 159 (09:47:57 to 10:01:46Z), `tilo-sh-programs` at width 65 with 36 GB booked (09:50:33 to 10:01:44Z), a `cargo build --profile lounge-gate` at width 42 and a `test` driver at width 34 (both 09:47Z to about 10:00Z). Starts came back in the minute the first of them ended. So here the counts did more than read high: they closed the node to every start for six minutes. How often: over the 24 hours to 10:04Z there were three stretches of three or more minutes with no job started while asks were queued, 12 minutes in all: 22:43Z 11-13 (3 minutes), 01:40Z 11-14 (5 minutes) and this one. Kept memory was over the offer in 10 minutes of that day. Only this stretch had both, and only this one had the busy count far above the node. ## 2026-11-14 19:47Z: a wave twenty minutes after the 19:12Z restart, by the minute A reading, not a fault report: no job ended with an error or a cause, and of 82 jobs running at 19:41Z none was past half its time limit. This replaces a first version of this note that I wrote at 19:42Z and that was wrong in two places, named at the end. | minute (Z) | jobs started | granted tokens | unsampled cores | waited for a core (busy − sampled − unsampled) | node load, 1 min | runnable processes | CPU pressure, some | |---|---|---|---|---|---|---|---| | 19:31 | 0 | 251 | 1 | 9 | 321 | 83 | 35% | | 19:32 | 492 | 1,623 | 11 | 10 | 347 | 417 | 33% | | 19:33 | 0 | 1,382 | 297 | 8 | 561 | 356 | 39% | | 19:34 | 0 | 1,302 | 201 | 3 | 476 | 247 | 33% | | 19:37 | 4 | 879 | 18 | 278 | 579 | 87 | 58% | | 19:38 | 0 | 875 | 17 | 124 | 861 | 944 | 73% | | 19:41 | 12 | 975 | 43 | 489 | 729 | 1,100 | 63% | | 19:42 | 0 | 956 | 13 | 996 | 1,194 | 1,574 | 73% | | 19:43 | 1 | 917 | 27 | 612 | 1,158 | 1,019 | 79% | | 19:45 | 3 | 908 | 1 | 101 | 596 | 14 | 61% | | 19:47 | | | | 16 | 380 | 239 | 43% | The first four figures are the server's (`t_jobs_started_total`, `t_node_granted_tokens`, `t_node_unsampled_cores`, `t_node_busy_cores` less the sampled and unsampled terms); the last three are node-exporter's for ci-x86-1 (192 processors; pressure as a two-minute rate). Sampled cores stayed 143 to 168 throughout. What the worker's own minute line says: 66 to 113 jobs followed before; at 19:32:28Z it held 382, 276 of them held for room; 240 followed at 19:34:28Z; 88 at 19:35:28Z; 66 to 81 after. Its compile slots ended at 2,466, 5,333, 7,213, 3,177, 2,073 and 1,280 a minute from 19:33Z to 19:38Z, against 45 to 500 a minute before. The jobs were mostly `clippy/<crate>` members of about two dozen heads. The shape: the minute of admission (19:32Z) read 10 cores waited for and 183 busy. The waiting came five to ten minutes later, 278 at 19:37Z and 489 to 996 from 19:41Z to 19:43Z, when the admitted jobs' compiles were under way. Tokens stayed near 900 for the quarter hour after, against 250 before. Against the day, so its size is not overstated: - Starts in one minute reached 541 in the half hour to 13:00Z and 464 in the half hour to 18:00Z. By starts this wave is an ordinary one. - The node's one-minute load passed 1,100 in five other hours since 23:00Z 11-13 (hours ending 00:00Z, 02:00Z, 09:00Z, 10:00Z, 15:00Z; highest 1,368). Its hourly mean was 313 to 580. - CPU pressure by the hour was 24% to 42%; these nine minutes read 58% to 79%. - Cores waited for, by the hour, averaged 9 to 42; granted tokens averaged 395 to 608, and 919 in the hour after the 17:09Z restart. Wrong in the first version: I wrote that busy cores far over the hardware was the unsampled term. That held at 19:33Z and 19:34Z only; from 19:37Z it is what tasks waited for a core, as the note on `Counts::busy_sampled` says. I also called it the largest wave I had read, which by starts a minute it is not. **Added 02:35Z 11-16: one minute on production 8bd4b1f2 where people's jobs took 70% of the CPU against their booking.** Read at 02:29Z from the job classes' `cpu.stat` on the worker and from `t.jobs`: | class | running jobs | cores booked (`lease.cores_milli`) | cores used over the minute | |---|---|---|---| | people | 46 | 88.5 | 110.5 | | ci | 37 | 294.4 | 48.4 | Load average 583 on 159 cores, CPU pressure (`some avg10`) 73%. CI's 37 jobs were ten heads' `test` builds at width 18 and their clippy at 11. So people's jobs used a quarter more than they book, and CI's admitted jobs got a sixth of what they book. The view read 159 of 159 booked. Over the same hour CI's job starts fell from 1,915 a quarter hour (01:45Z, median wait 14 min) to 772 (02:15Z, median wait 66 min), and people's waits stayed under a second. CPU-hours of the hour: people 77.4 (quinten 63.1, xemmerling 14.3), CI 81.5. This is data for the planner, not a patch: whether CI gets a floor is the user's decision, and I have put it to them. **Added 03:05Z 11-16: fifteen minutes in which six CI jobs started.** Job starts by five minutes from `t.job_history` and `t.jobs` (production 8bd4b1f2, before your promote of 02:59Z): | from (UTC) | CI | people | |---|---|---| | 02:25 | 327 | 43 | | 02:30 | 512 | 21 | | 02:35 | 0 | 209 | | 02:40 | 5 | 58 | | 02:45 | 1 | 40 | | 02:50 | 73 | 57 | | 02:55 | 111 | 137 | The worker's log says the same by the minute: no CI launch from 02:34Z to 02:53Z. The node read healthy and booked 159 of 159 throughout, with about 4,800 CI asks waiting for room. Two more readings that go with it: - The two class cgroups have the same `cpu.weight` (100 each, `cpu.max` unset), yet the split was 110 to 48 cores at 02:29Z and 148 to 10 at 03:00Z. So CI's admitted jobs were not asking for the CPU they book. - Compile slots in the worker's log of 01:36Z to 02:06Z: people's 3,569 compiles were all granted at once (mean 0.1 s queued). Of the 1,222 compiles of jobs launched before that log began, which are CI's long builds, 418 (34%) were held for `no core free`, 16.6 s on average and up to 120 s. Read together: people's compiles take a core whenever they ask, CI's builds hold their booking while their compiles queue for a core, so they run long, and no room comes free for CI's next jobs. At 03:00Z people's 147 running jobs were 118 of xemmerling and 29 of quinten. Whether CI gets a floor is with the user; this is the data. **20:58Z 11-17 (production 2885a521): the largest reading so far, and no harm from it.** The status line read `booked 367/157` at 20:58:09Z, 210 cores over the offer; the goal line had booking equal to the offer at 20:55Z and again at 21:05Z. In the seven minutes from 20:55Z the node started 334 CI jobs (wanting 689 cores in all), 180 of one party's (856) and 25 of the other's (403). The node's own busy-cores figure (`t_node_busy_cores`, 15 s steps) stood over 200 in 9 of 45 samples from 20:56:15Z to 21:03:30Z and peaked at 499 at 21:01:30Z; ten-minute peaks of 250 to 663 came eighteen times between 15:00Z and 21:00Z today. What it cost this time: nothing I can find. No job ended with a cause, the node was never degraded, kept memory stayed under the offer, and one job was "placed on a node without room" at 21:02:09Z and held. So it is still a reading that runs far ahead of what the machine has for a few seconds in a wave of starts, not a fault by itself. Prometheus carries no booked-cores series, so the 367 is known only from the status line.
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#71
No description provided.