sched/admit: while people's jobs use the whole node CI starts nothing: 2 and 7 job starts in two quarter hours on 11-17, 16 heads open, CI 2.2 h behind #97

Open
opened 2026-11-17 16:16:14 +00:00 by xemmerling · 0 comments
Owner

What was seen. On 2026-11-17 from 15:45Z, on production (build f5147065, node ci-x86-1, 163 cores, offer 159), CI started almost nothing for two quarter hours in a row while people's jobs used the whole node. Head runs stopped being judged: the goal line read 0 heads judged in 15 minutes at 16:02Z and at 16:12Z, 16 heads are open, the oldest 2.2 h, and CI is 2.2 h behind (0.6 h three hours before).

Job starts and core-hours per quarter hour (t.job_history, starts by started_ms, core-hours cpu_ms of the jobs that ended in the quarter; ci counts classes ci and probe):

quarter from ci jobs started people's jobs started ci core-hours used people's core-hours used
13:45Z 1,484 449 16.4 32.0
14:00Z 675 335 9.3 14.9
14:15Z 444 317 7.8 39.1
14:30Z 601 227 8.1 31.2
14:45Z 636 370 15.5 25.0
15:00Z 178 247 4.6 31.7
15:15Z 682 331 7.7 34.1
15:30Z 360 379 6.8 17.7
15:45Z 2 330 1.0 36.8
16:00Z (to 16:14Z) 7 417 0.7 47.3

Who used the cores (20-second samples of cpu.stat under the worker's t-jobs/{ci,people} groups):

sample people's cores people's job groups ci cores ci job groups
15:20:37Z 154.2 66 0.3 1
15:59:06Z 159.0 85 0.0 2
16:14:49Z 155.1 51 2.8 2

Jobs handed to the node at 16:14Z (t.jobs): people 52 jobs wanting 561 cores in 7 sessions of 2 parties (one session 27 jobs wanting 339; six sessions of the other party 22 jobs wanting 364); ci 7 jobs wanting 86. Waiting: 853 ci and 678 probe asks, every one short of cores only (jobs view 15:59Z: short_by millicores, memory 0). A ci job that did start had waited 2,609 s at the median at 15:28Z; a person's job waits 0.2 to 0.7 s all afternoon.

What it is not. No job ended with a cause of t's own in these hours, no job was ended for memory, the server and the node are healthy. It is not #52's case (there people used half the node and CI was still held out) and not #79's (there wide jobs sat idle): here people's jobs really use the cores, and people come first by rule, so CI gets what is left, which is nothing while a people's wave lasts. Earlier today CI ran in the gaps between such waves and still fell from 0.5 h to 1.7 h behind.

The question. Whether CI keeps a floor of cores under a people's wave, or a person's session a ceiling, is a change of the rule and not a bug fix. I have put it to the user and have no answer yet; I change nothing in admission or order. This issue holds the data for whoever decides and for the planner's owner.

23:00Z 11-17 (production 2885a521): CI at one core

reading CI people
jobs started in the 15 minutes to 23:13Z 1 313
cores used over 20 s at 23:14:47Z (the classes' cgroups) 1 156
handed jobs not ended at 23:15Z 10, none started in the last 15 minutes 50, of them 44 started in the last 15 minutes

In the 15 minutes to 22:58Z CI had started 574 jobs. At 23:11Z 18 head runs were open and 1,340 of CI's asks waited for room; four heads showed 291, 388, 580 and 880 checks as running with no job of their own on the node, and CI's ten handed jobs together used one core. Heads asked and judged in the hour to 23:13Z: 27 and 18; CI's lag went from 0.4 h to 0.7 h in a quarter hour.

Who used the cores at 23:16:35Z, over ten seconds, by session cgroup: principal quinten's sessions (mostly claude:72447be4) 103 cores, principal xemmerling's (claude:2282f323) 77. The two readings are a few seconds apart, so they sum to more than the node's 163. The largest single jobs: one layout-check/1280x800 at 34.9 cores, one test/tilo-session at 18.3, one web-desktop-wasm at 8.1, four more layout-check/1280x800 at 5.8 to 7.0 each.

Nothing here breaks the order as written: people first is the rule. It is the size of it: for this quarter hour CI had under 1% of the node while 18 heads stood open. A sampler logs the classes' cores once a minute until 23:58Z; I will add how long it lasted.

How long it lasted (the classes' cgroups, 20 s of every minute, 40 samples from 23:17Z to 23:58Z):

ten minutes from CI, cores people, cores
23:17Z (3 samples) 49 110
23:20Z 20 135
23:30Z 60 90
23:40Z 67 87
23:50Z 66 89

Over the 40 samples CI had 52 cores on average and people 102; CI was under 10 cores in 3 of them and under 30 in 10. With the two readings before the sampler (1 core at 23:14:47Z, 1 job started in the 15 minutes to 23:13Z) the hard part ran from about 23:00Z to 23:33Z; after it people still used a little under 90 cores. Over that hour (22:58Z to 23:58Z) CI's lag went from 0.4 h to 1.4 h and the open heads from 11 to 37. Not all of that is this: 45 heads were asked in the hour, against 25 in the hour before, and the server restarted at 23:32Z.

06:15Z to 07:15Z 11-18 (production 85866e52): a milder wave, measured whole

People's jobs came in a wave from about 06:15Z: 968 ended in the hour, from 27 sessions of two parties in about equal CPU (to 07:00Z: xemmerling 22 sessions, 535 jobs, 27.2 CPU hours; quinten 5 sessions, 155 jobs, 26.2 CPU hours). The classes' cgroups, 20 s of every minute, 56 samples:

ten minutes from CI's group, cores (lowest) people, cores (highest)
06:18Z (2 samples) 74 (65) 78 (91)
06:20Z 87 (68) 70 (89)
06:30Z 79 (53) 75 (103)
06:40Z 101 (78) 55 (81)
06:50Z 85 (47) 70 (108)
07:00Z 56 (29) 100 (128)
07:10Z (4 samples) 70 (55) 84 (97)

Over the hour CI's group had 81 cores on average and people 75; CI's group was under 30 cores in one sample and never under 10. This is not the 23:00Z case, where CI had one core.

What the hour cost, from job_history (jobs ended 06:15Z to 07:15Z):

class jobs CPU hours
people 968 73.2
the lowest class (probe: main's idle checks and push-asked suites) 342 51.7
ci (the heads' checks) 1,055 26.1

CI's group holds both ci and the lowest class, so of its 81 cores the heads' own checks had about a third. While that was so, CI's asks waited for room: 313 at 06:28Z, 101 at 06:43Z, 360 at 06:58Z; CI's jobs waited for a start 37 to 177 s at the median and 105 to 224 s at the ninetieth percentile by ten minutes, people's 0 s throughout. Heads asked in the hour: 23, judged 19, a median 10.0 minutes after they were asked, the longest 18.1; CI was 0.2 h behind at 07:13Z as an hour before. No job ended with a cause of t's own.

So in a wave of this size the order holds up: heads are judged in ten minutes. The two things the figures show are that people's jobs never wait while CI's wait one to four minutes, and that jobs of the lowest class already running keep twice the CPU of the heads' checks through the wave (issue 79's side of it). Whether CI is to have a floor, or a session a ceiling, is not mine to decide; this is the measurement for it.

09:29Z 11-18 (production d748ed8d): one run of a person's session has 665 checks in progress and CI's group has 17 cores.

The jobs view at 09:29:23Z lists 689 of people's checks as running and none queued, 677 of them party quinten's, and 665 of those of one run, r65538d5469 of session claude:72447be4 (created 09:26:50Z): clippy/* 442, test/* 174, clippy-x86_64/* 26, test-x86_64/* 10. CI: 62 listed running, 2,578 asks queued for room. The spare tier: 530 queued. The node: 156 of 156 cores booked, 166.5 in use.

Cores of the two groups by minute (the worker's cgroup cpu.stat, 20 s samples):

at CI's group people
09:14Z 119 32
09:16Z 79 75
09:19Z 58 96
09:21Z 43 137
09:23Z 49 111
09:25Z 104 49
09:28Z 30 111
09:29Z 17 139

Jobs started by five minutes (job_history):

from CI jobs started CI start wait p50 p90 people's jobs started people's wait p50
09:10Z 934 400 s 452 s 52 0 s
09:15Z 364 485 s 618 s 121 0 s
09:20Z 591 865 s 1,032 s 110 0 s
09:25Z 103 1,130 s 1,205 s 372 0 s

The heads at 09:28Z: 21 asked in the hour, 4 judged, 20 open, CI 1.3 h behind against 0.8 h an hour before; one head was judged between 08:53Z and 09:28Z. This wave lands on the backlog the stop of issue 102 left (2,578 asks), which is why the lag grows faster than in the waves above.

Two things the figures say. The rule works as written: people first, entering on memory alone, and CI gets what is left, here a ninth of the node. The wide run is not thin, as I first wrote here: see the correction below. Same question as at the top of this issue, with one more case: a floor for CI's group, or a width one run or session may take at once. Neither is mine to set.

09:48Z, a correction and the mechanism. The view's running entries are checks in progress, most without a job of their own: 13 of the wide run's 665 carried a job id. I first wrote 665 running jobs and a fifth of a core a job; both are withdrawn. Jobs on the node, counted from job_history rows that have ended since (so long jobs still running are missing):

at CI's jobs on the node people's jobs on the node CI's group, cores people, cores
09:14Z 86 22 119 32
09:21Z 19 39 43 137
09:29Z 8 64 17 139
09:33Z 11 69 19 135
09:35Z 6 63 9 147
09:38Z 11 65 8 148
09:40Z 30 36 61 95

So people's jobs had about two cores each and CI went from 86 jobs on the node to 6. The wide run's own jobs: 428 between 09:26:51Z and 09:46:39Z, 10.4 CPU hours, 51 s the median job; a second wide run of the same session (rd0099a812f, 298 checks listed, clippy/* 273) followed it.

Where CI is held: not by the kernel. Read on the node at 09:39Z and 09:45Z, the two class groups have the same weight (t-jobs/ci and t-jobs/people both cpu.weight 100) and CI's group shows little CPU pressure (some avg10 37% and 13%, people's 26% and 45%) while it uses 8 to 21 cores. CI's jobs are not on the node at all: its asks wait for room, one core short, while people's jobs enter on their memory alone and use the cores CI's asks are waiting for. A floor for CI is therefore an admission rule, not a cgroup weight.

The half hour in the priority checks: CI's start wait p50 was 115 s at 09:13Z, 500 s at 09:28Z and 1,730 s at 09:43Z (684 CI jobs started in the 15 minutes before); cores by ten minutes, CI's group and people: 09:20Z 54 and 100, 09:30Z 35 and 122, 09:40Z 51 and 110; CPU hours of jobs ended from 09:00Z to 09:43Z: people 57.3, CI 52.8, the spare tier 9.1. No CI job ended with a cause of t's own in the wave.

13:00Z 11-18 (production d748ed8d): what a head's time to verdict is made of, with tilo's main compiling again

Not a wave this time: two ordinary hours. Until about 09:00Z tilo's main did not compile in two crates and most of a head's tests were skipped; since then they run. Heads asked an hour: 23, 23 (06:00Z, 07:00Z) and 21, 24 (11:00Z, 12:00Z), so the arrivals are the same.

A head, medians over the heads judged in the window (ci_runs heads not stopped, their jobs in job_history):

judged heads jobs a head its jobs' run time, summed CPU hours the longest wait of any of its jobs time to verdict
06:00Z to 08:00Z 46 59 38.9 min 0.88 1.6 min 9.7 min
11:00Z to 13:00Z 36 49 52.0 min 1.37 19.3 min 34.8 min

The work of a head grew by a third to a half. Its time to verdict grew 3.6 times, and the difference is the wait: 25 of the 35 minutes.

CI's jobs by the hour they ended:

hour jobs start wait p50 p90 run p50 p90 waits summed runs summed CPU hours
06:00Z 900 0.9 min 3.1 min 0.2 min 2.5 min 18 h 12 h 22.0
07:00Z 1,565 0.3 min 2.2 min 0.2 min 2.1 min 18 h 19 h 32.2
11:00Z 3,052 7.8 min 15.9 min 0.3 min 1.5 min 408 h 44 h 53.7
12:00Z 3,359 8.8 min 16.9 min 0.4 min 1.5 min 467 h 52 h 68.6

A test job of these two hours (5,739 of them) ran 0.3 minutes at the median and waited 8.7 for its start. In the hour from 12:00Z the jobs waited nine hours for every hour they ran.

Why they wait. CI's group had 95, 75, 70 and 81 cores by half hour from 11:00Z, people 59, 78, 85 and 72 (the sampler above). CI's jobs alone used 53.7 and 68.6 CPU hours in the two hours, and the spare tier runs in the same group: CI uses all it is given, and the node is full. In the morning CI needed 22 to 32 CPU hours an hour of the same share and nothing queued. So at today's work a head, 21 to 24 heads an hour are what CI's half of the node carries, and each head pays for it in waits.

Which job a head ends on (the last job to end in each head judged since 11:00Z): in 15 of 36 heads it is a job that ran under a minute and had waited 14 to 26 minutes for its start (source-date-ci-sdk 0.1 min after 23.4, policy/unit/app_copy 0.4 after 25.6, suite-containerfile-sources 0.4 after 21.7, test-x86_64/fs-native 0.1 after 17.7); in 4 the test driver (26.5 min, tilo's test build); in 3 the slow shard of test/tilo-session (23.3 min, tilo's failing tests). That first group is issue 93's half of it: a head one short job from its verdict stands in the same line as the bulk of the heads behind it.

What this adds to the question at the top. With CI at its share's ceiling, the share decides how many heads an hour are judged, and the order decides how long each waits. Neither is mine to set. The figures are here so that the choice is made on them.

13:20Z to 13:47Z 11-18: a wave of many sessions, none of them wide

The waves above had one wide run in them. This one had none: 23 sessions with a few dozen jobs each.

five minutes from people's jobs started CI's jobs started CI's start wait p50
13:15Z 36 13 75 s
13:20Z 162 4 333 s
13:25Z 156 168 150 s
13:30Z 656 10 371 s
13:35Z 138 121 816 s
13:40Z 109 288 1,104 s
13:45Z 202 459 1,483 s
13:50Z 78 502 1,501 s

People's jobs ended from 13:25Z to 13:47Z by party: xemmerling 526 jobs in 19 sessions, 24.4 CPU hours; quinten 640 jobs in 4 sessions, 12.7 CPU hours. People's group used 141 to 146 cores at 13:33Z to 13:35Z and at 13:41Z, CI's 10 to 17; over the half hour from 13:30Z, 111 against 45. At 13:47Z the node held 22 of people's jobs and 2 of CI's, with 3,230 CI asks queued. No head was judged from 13:29:29Z to 13:48:18Z with 18 open; the next one to be judged, r0b050d41f8, had taken 54.2 minutes.

What it adds to the question at the top: a ceiling on what one session holds would not have bound here, since no session held much. Only a floor for CI's class, or a ceiling on people's class, changes this case.

16:37Z to 17:00Z 11-18: CI's group at zero cores for fourteen minutes, this time one session's wave

Cores used by each job group on the node, 20 s samples about every minute (cpu.stat of t-jobs/ci and t-jobs/people; the spare tier runs in CI's group):

at CI's group people
16:30Z 88 54
16:32Z 62 93
16:37Z 20 134
16:41Z 8 149
16:45Z to 16:59Z, eight samples 0 155 to 158
17:01Z 15 138
  • Waiting meanwhile, 16:56Z: 504 ci asks and 526 probe asks for room, four head runs open. CI was 0.2 h behind at 16:43Z and 0.5 h at 16:58Z.
  • Who: 113 people's jobs ran from 18 sessions. One session (party quinten, claude:e20d44ec) ran 55 tests and had 272 more queued for disk; the other 17 sessions ran 57 jobs. By 17:01Z that session was down to 4 jobs.
  • Starts, 16:43Z to 16:58Z: people 1,120 jobs, CI 160.
  • Booking: 296 to 331 cores booked of 157 offered, since people's jobs are placed without room.
  • Against 13:20Z: there many sessions shared the wave and a ceiling per session would not have bound. Here one session held half of the running jobs and every queued one, so a ceiling would have bound. A floor for CI's class binds in both.
  • Same minutes: three jobs could not be set up and the node was degraded for half a minute (issue 84's new section).

17:15Z, the same wave, now many sessions, and CI has started four jobs in fifteen minutes. CI's group has been under 20 cores since 16:37Z and at 0 in most samples:

at CI's group people
17:01Z to 17:07Z, seven samples 2 to 18 138 to 152
17:08Z to 17:15Z, seven samples 0, 0, 4, 0, 0, 0, 0 150 to 158
  • Starts, 16:58Z to 17:13Z: people 664 jobs, CI 4.
  • Heads: five open, none judged in the last hour, CI 0.7 h behind against 0.0 h an hour before.
  • Waiting: 479 ci asks and 528 probe asks for room. No ci job runs.
  • Who, 17:15Z: 60 people's jobs from 18 sessions use every core (242 cores of use against 156 offered). The largest session has 14 jobs, the next 9, the rest 5 or fewer. Fourteen of the 60 are test-x86_64/tilo-agent-session.
  • So the big single session was not what held CI out. Sixty jobs from eighteen sessions are enough, because cores are booked up to the offer by people's jobs and CI is admitted only into room. No ceiling per session binds here.

17:30Z, across the 17:15:44Z promote of 31934c00: nothing changed for CI. CI's group used 0 to 5 cores in every sample from 17:23Z to 17:30Z (23 and 36 at 17:21Z and 17:22Z), people 148 to 159. The 17:28Z check counts no CI job started in fifteen minutes against people's 666. No head run has been judged since 16:28Z: five are open and CI is 1.0 h behind, from 0.0 h an hour before. 423 ci asks wait for room and 549 probe asks are held. That is 53 minutes with CI's group under 20 cores in nearly every sample.

18:00Z, the same order on disk: when the node's disk came back, people's jobs took it and CI waited. The node was under its disk floor from 17:45:50Z to about 17:57Z (issue 107) and started no job from 17:48Z.

  • Jobs started by minute: 17:56Z 1, 17:58Z 32, 17:59Z 219. At 17:59:39Z 75 people's jobs ran and no ci job.
  • The same view held 65 ci asks waiting with kind disk, each short by 1.1 to 4.1 GB, and 7 for room. The node offered 580 GB with 35 GB booked, but what it lets new jobs book above the floor (t_node_disk_ceiling_bytes) stood at 0 to 23 GB.
  • The 17:58Z check: in fifteen minutes people started 77 jobs and CI 1; three heads open, CI 1.2 h behind against 0.5 h an hour before.
  • So whichever resource is short, cores at 16:37Z or disk at 17:58Z, people's asks are served from it first and CI's wait for what is left.

18:11Z: 600 ci asks wait for disk while 53 cores are free. The node's disk is back over its floor but only just (issue 107), so what it lets new jobs book above the floor is small, and people's asks take it as it appears.

minute disk ceiling GB jobs started CI's group, cores people, cores
18:06 0 29 5 147
18:07 0 0 0 156
18:08 32 0 0 151
18:09 101 111 0 155
18:10 155 107 0 154
  • Jobs view 18:10:47Z: 36 people's jobs and 1 ci job running, cores booked 104 of 157 offered.
  • Waiting with kind disk: 600 ci asks, each short by 0.5 to 28 GB, 0.7 GB at the median, 672 GB together; and 22 people's asks, 153 GB together.
  • So in these minutes CI is not short of cores. It waits for a few hundred megabytes of disk a job, behind people's asks, on a node that hovers at its disk floor.
  • Head runs: four open, the oldest 1.3 h, none judged in the fifteen minutes to 18:08Z.

19:30Z: CI is 1.4 h behind again, the day's high, with the disk no longer in the way.

  • CI's group used 2, 0, 8, 4, 2, 2 cores from 19:23Z to 19:28Z; people's 149 to 157.
  • The 19:28Z check: 830 ci asks wait for room; in fifteen minutes people started 985 jobs and CI 222, CI's median wait 1,224 s; five heads open, the oldest 1.4 h, none judged in the fifteen minutes to 19:29Z.
  • The jobs view at 19:30:13Z: 45 people's jobs and 3 ci jobs run. The 45 come from nine sessions; three sessions of one party hold 36 of them (18, 11 and 7), and fourteen are test-x86_64/tilo-agent-session or test-idle/tilo-ui.
  • CI's lag by check today: 0.0 h at 16:13Z and 16:28Z, 1.0 h at 17:28Z, 1.4 h at 18:13Z, 0.6 h at 18:43Z, 1.1 h at 19:13Z, 1.4 h at 19:28Z.

19:43Z: 1.6 h behind. CI's group used 0, 0, 5, 0, 9, 0 cores from 19:38Z to 19:43Z, people's 148 to 158. 846 ci asks wait for room; in fifteen minutes people started 467 jobs and CI 168, CI's median wait 2,077 s. Five heads open; seven judged in the last hour, three asked. By half hour since 16:30Z CI's group averaged 17, 5, 7, 16, 23, 30 and 4 cores against people's 139, 149, 145, 139, 131, 125 and 152; from 13:30Z to 16:30Z it had 73 to 99.

19:58Z, after the 19:47:42Z promote of 67edf385: 1.9 h behind. The restart gave CI's group 24, 50 and 27 cores for three minutes; from 19:53Z it has 7 to 12 again against people's 140 to 145. Eight heads are open, 402 ci asks wait for room, and in fifteen minutes people started 693 jobs and CI 210. CI's lag by check since 18:43Z: 0.6, 0.9, 1.1, 1.4, 1.6, 1.9 h.

20:05Z, three hours in two numbers. My one-minute samples of the two job groups' cores, means over each run of the sampler:

three hours CI's group, with the probes people
13:59Z to 16:59Z, 171 samples 79 74
17:01Z to 20:01Z, 166 samples 15 139

At 20:05Z: 59 people's jobs and one probe run, no ci job; 576 ci asks wait for room; CI was 1.9 h behind at 19:58Z.

20:30Z 11-18 addendum: no head judged in an hour, CI 2.4 h behind

  • Head runs asked in the last 1 h / 3 h / 24 h: 3 / 19 / 495. Judged: 0 / 15 / 495. Open: 8, the oldest 2.4 h.
  • CI behind by check: 2.4 h now, 1.4 h an hour ago, 1.0 h three hours ago.
  • CI's cgroup by minute, 20:16 to 20:29Z: 0 cores every minute, people's 154 to 159. Before that the node was short of disk (issue 107) and ran 47 to 132 cores for people, 2 to 5 for CI.
  • Jobs started in 15 minutes to 20:28Z: people 1,665 (wait p50 63 s), ci 34 (wait p50 403 s). Waiting: 657 ci asks for room, 557 probe asks held.
  • Running jobs by party at 20:28Z: quinten 542, xemmerling 472, t 206.
**What was seen.** On 2026-11-17 from 15:45Z, on production (build f5147065, node ci-x86-1, 163 cores, offer 159), CI started almost nothing for two quarter hours in a row while people's jobs used the whole node. Head runs stopped being judged: the goal line read 0 heads judged in 15 minutes at 16:02Z and at 16:12Z, 16 heads are open, the oldest 2.2 h, and CI is 2.2 h behind (0.6 h three hours before). **Job starts and core-hours per quarter hour** (`t.job_history`, starts by `started_ms`, core-hours `cpu_ms` of the jobs that ended in the quarter; ci counts classes ci and probe): | quarter from | ci jobs started | people's jobs started | ci core-hours used | people's core-hours used | |---|---|---|---|---| | 13:45Z | 1,484 | 449 | 16.4 | 32.0 | | 14:00Z | 675 | 335 | 9.3 | 14.9 | | 14:15Z | 444 | 317 | 7.8 | 39.1 | | 14:30Z | 601 | 227 | 8.1 | 31.2 | | 14:45Z | 636 | 370 | 15.5 | 25.0 | | 15:00Z | 178 | 247 | 4.6 | 31.7 | | 15:15Z | 682 | 331 | 7.7 | 34.1 | | 15:30Z | 360 | 379 | 6.8 | 17.7 | | 15:45Z | 2 | 330 | 1.0 | 36.8 | | 16:00Z (to 16:14Z) | 7 | 417 | 0.7 | 47.3 | **Who used the cores** (20-second samples of `cpu.stat` under the worker's `t-jobs/{ci,people}` groups): | sample | people's cores | people's job groups | ci cores | ci job groups | |---|---|---|---|---| | 15:20:37Z | 154.2 | 66 | 0.3 | 1 | | 15:59:06Z | 159.0 | 85 | 0.0 | 2 | | 16:14:49Z | 155.1 | 51 | 2.8 | 2 | Jobs handed to the node at 16:14Z (`t.jobs`): people 52 jobs wanting 561 cores in 7 sessions of 2 parties (one session 27 jobs wanting 339; six sessions of the other party 22 jobs wanting 364); ci 7 jobs wanting 86. Waiting: 853 ci and 678 probe asks, every one short of cores only (jobs view 15:59Z: `short_by` millicores, memory 0). A ci job that did start had waited 2,609 s at the median at 15:28Z; a person's job waits 0.2 to 0.7 s all afternoon. **What it is not.** No job ended with a cause of t's own in these hours, no job was ended for memory, the server and the node are healthy. It is not #52's case (there people used half the node and CI was still held out) and not #79's (there wide jobs sat idle): here people's jobs really use the cores, and people come first by rule, so CI gets what is left, which is nothing while a people's wave lasts. Earlier today CI ran in the gaps between such waves and still fell from 0.5 h to 1.7 h behind. **The question.** Whether CI keeps a floor of cores under a people's wave, or a person's session a ceiling, is a change of the rule and not a bug fix. I have put it to the user and have no answer yet; I change nothing in admission or order. This issue holds the data for whoever decides and for the planner's owner. ## 23:00Z 11-17 (production 2885a521): CI at one core | reading | CI | people | |---|---|---| | jobs started in the 15 minutes to 23:13Z | 1 | 313 | | cores used over 20 s at 23:14:47Z (the classes' cgroups) | 1 | 156 | | handed jobs not ended at 23:15Z | 10, none started in the last 15 minutes | 50, of them 44 started in the last 15 minutes | In the 15 minutes to 22:58Z CI had started 574 jobs. At 23:11Z 18 head runs were open and 1,340 of CI's asks waited for room; four heads showed 291, 388, 580 and 880 checks as running with no job of their own on the node, and CI's ten handed jobs together used one core. Heads asked and judged in the hour to 23:13Z: 27 and 18; CI's lag went from 0.4 h to 0.7 h in a quarter hour. Who used the cores at 23:16:35Z, over ten seconds, by session cgroup: principal quinten's sessions (mostly `claude:72447be4`) 103 cores, principal xemmerling's (`claude:2282f323`) 77. The two readings are a few seconds apart, so they sum to more than the node's 163. The largest single jobs: one `layout-check/1280x800` at 34.9 cores, one `test/tilo-session` at 18.3, one `web-desktop-wasm` at 8.1, four more `layout-check/1280x800` at 5.8 to 7.0 each. Nothing here breaks the order as written: people first is the rule. It is the size of it: for this quarter hour CI had under 1% of the node while 18 heads stood open. A sampler logs the classes' cores once a minute until 23:58Z; I will add how long it lasted. **How long it lasted (the classes' cgroups, 20 s of every minute, 40 samples from 23:17Z to 23:58Z):** | ten minutes from | CI, cores | people, cores | |---|---|---| | 23:17Z (3 samples) | 49 | 110 | | 23:20Z | 20 | 135 | | 23:30Z | 60 | 90 | | 23:40Z | 67 | 87 | | 23:50Z | 66 | 89 | Over the 40 samples CI had 52 cores on average and people 102; CI was under 10 cores in 3 of them and under 30 in 10. With the two readings before the sampler (1 core at 23:14:47Z, 1 job started in the 15 minutes to 23:13Z) the hard part ran from about 23:00Z to 23:33Z; after it people still used a little under 90 cores. Over that hour (22:58Z to 23:58Z) CI's lag went from 0.4 h to 1.4 h and the open heads from 11 to 37. Not all of that is this: 45 heads were asked in the hour, against 25 in the hour before, and the server restarted at 23:32Z. ## 06:15Z to 07:15Z 11-18 (production 85866e52): a milder wave, measured whole People's jobs came in a wave from about 06:15Z: 968 ended in the hour, from 27 sessions of two parties in about equal CPU (to 07:00Z: xemmerling 22 sessions, 535 jobs, 27.2 CPU hours; quinten 5 sessions, 155 jobs, 26.2 CPU hours). The classes' cgroups, 20 s of every minute, 56 samples: | ten minutes from | CI's group, cores (lowest) | people, cores (highest) | |---|---|---| | 06:18Z (2 samples) | 74 (65) | 78 (91) | | 06:20Z | 87 (68) | 70 (89) | | 06:30Z | 79 (53) | 75 (103) | | 06:40Z | 101 (78) | 55 (81) | | 06:50Z | 85 (47) | 70 (108) | | 07:00Z | 56 (29) | 100 (128) | | 07:10Z (4 samples) | 70 (55) | 84 (97) | Over the hour CI's group had 81 cores on average and people 75; CI's group was under 30 cores in one sample and never under 10. This is not the 23:00Z case, where CI had one core. What the hour cost, from `job_history` (jobs ended 06:15Z to 07:15Z): | class | jobs | CPU hours | |---|---|---| | people | 968 | 73.2 | | the lowest class (`probe`: main's idle checks and push-asked suites) | 342 | 51.7 | | ci (the heads' checks) | 1,055 | 26.1 | CI's group holds both `ci` and the lowest class, so of its 81 cores the heads' own checks had about a third. While that was so, CI's asks waited for room: 313 at 06:28Z, 101 at 06:43Z, 360 at 06:58Z; CI's jobs waited for a start 37 to 177 s at the median and 105 to 224 s at the ninetieth percentile by ten minutes, people's 0 s throughout. Heads asked in the hour: 23, judged 19, a median 10.0 minutes after they were asked, the longest 18.1; CI was 0.2 h behind at 07:13Z as an hour before. No job ended with a cause of t's own. So in a wave of this size the order holds up: heads are judged in ten minutes. The two things the figures show are that people's jobs never wait while CI's wait one to four minutes, and that jobs of the lowest class already running keep twice the CPU of the heads' checks through the wave (issue 79's side of it). Whether CI is to have a floor, or a session a ceiling, is not mine to decide; this is the measurement for it. **09:29Z 11-18 (production d748ed8d): one run of a person's session has 665 checks in progress and CI's group has 17 cores.** The jobs view at 09:29:23Z lists 689 of people's checks as running and none queued, 677 of them party quinten's, and 665 of those of one run, r65538d5469 of session `claude:72447be4` (created 09:26:50Z): `clippy/*` 442, `test/*` 174, `clippy-x86_64/*` 26, `test-x86_64/*` 10. CI: 62 listed running, 2,578 asks queued for room. The spare tier: 530 queued. The node: 156 of 156 cores booked, 166.5 in use. Cores of the two groups by minute (the worker's cgroup `cpu.stat`, 20 s samples): | at | CI's group | people | |---|---|---| | 09:14Z | 119 | 32 | | 09:16Z | 79 | 75 | | 09:19Z | 58 | 96 | | 09:21Z | 43 | 137 | | 09:23Z | 49 | 111 | | 09:25Z | 104 | 49 | | 09:28Z | 30 | 111 | | 09:29Z | 17 | 139 | Jobs started by five minutes (`job_history`): | from | CI jobs started | CI start wait p50 | p90 | people's jobs started | people's wait p50 | |---|---|---|---|---|---| | 09:10Z | 934 | 400 s | 452 s | 52 | 0 s | | 09:15Z | 364 | 485 s | 618 s | 121 | 0 s | | 09:20Z | 591 | 865 s | 1,032 s | 110 | 0 s | | 09:25Z | 103 | 1,130 s | 1,205 s | 372 | 0 s | The heads at 09:28Z: 21 asked in the hour, 4 judged, 20 open, CI 1.3 h behind against 0.8 h an hour before; one head was judged between 08:53Z and 09:28Z. This wave lands on the backlog the stop of issue 102 left (2,578 asks), which is why the lag grows faster than in the waves above. Two things the figures say. The rule works as written: people first, entering on memory alone, and CI gets what is left, here a ninth of the node. The wide run is not thin, as I first wrote here: see the correction below. Same question as at the top of this issue, with one more case: a floor for CI's group, or a width one run or session may take at once. Neither is mine to set. **09:48Z, a correction and the mechanism.** The view's running entries are checks in progress, most without a job of their own: 13 of the wide run's 665 carried a job id. I first wrote 665 running jobs and a fifth of a core a job; both are withdrawn. Jobs on the node, counted from `job_history` rows that have ended since (so long jobs still running are missing): | at | CI's jobs on the node | people's jobs on the node | CI's group, cores | people, cores | |---|---|---|---|---| | 09:14Z | 86 | 22 | 119 | 32 | | 09:21Z | 19 | 39 | 43 | 137 | | 09:29Z | 8 | 64 | 17 | 139 | | 09:33Z | 11 | 69 | 19 | 135 | | 09:35Z | 6 | 63 | 9 | 147 | | 09:38Z | 11 | 65 | 8 | 148 | | 09:40Z | 30 | 36 | 61 | 95 | So people's jobs had about two cores each and CI went from 86 jobs on the node to 6. The wide run's own jobs: 428 between 09:26:51Z and 09:46:39Z, 10.4 CPU hours, 51 s the median job; a second wide run of the same session (rd0099a812f, 298 checks listed, `clippy/*` 273) followed it. Where CI is held: not by the kernel. Read on the node at 09:39Z and 09:45Z, the two class groups have the same weight (`t-jobs/ci` and `t-jobs/people` both `cpu.weight` 100) and CI's group shows little CPU pressure (some avg10 37% and 13%, people's 26% and 45%) while it uses 8 to 21 cores. CI's jobs are not on the node at all: its asks wait for room, one core short, while people's jobs enter on their memory alone and use the cores CI's asks are waiting for. A floor for CI is therefore an admission rule, not a cgroup weight. The half hour in the priority checks: CI's start wait p50 was 115 s at 09:13Z, 500 s at 09:28Z and 1,730 s at 09:43Z (684 CI jobs started in the 15 minutes before); cores by ten minutes, CI's group and people: 09:20Z 54 and 100, 09:30Z 35 and 122, 09:40Z 51 and 110; CPU hours of jobs ended from 09:00Z to 09:43Z: people 57.3, CI 52.8, the spare tier 9.1. No CI job ended with a cause of t's own in the wave. ## 13:00Z 11-18 (production d748ed8d): what a head's time to verdict is made of, with tilo's main compiling again Not a wave this time: two ordinary hours. Until about 09:00Z tilo's main did not compile in two crates and most of a head's tests were skipped; since then they run. Heads asked an hour: 23, 23 (06:00Z, 07:00Z) and 21, 24 (11:00Z, 12:00Z), so the arrivals are the same. **A head, medians over the heads judged in the window** (`ci_runs` heads not stopped, their jobs in `job_history`): | judged | heads | jobs a head | its jobs' run time, summed | CPU hours | the longest wait of any of its jobs | time to verdict | |---|---|---|---|---|---|---| | 06:00Z to 08:00Z | 46 | 59 | 38.9 min | 0.88 | 1.6 min | 9.7 min | | 11:00Z to 13:00Z | 36 | 49 | 52.0 min | 1.37 | 19.3 min | 34.8 min | The work of a head grew by a third to a half. Its time to verdict grew 3.6 times, and the difference is the wait: 25 of the 35 minutes. **CI's jobs by the hour they ended:** | hour | jobs | start wait p50 | p90 | run p50 | p90 | waits summed | runs summed | CPU hours | |---|---|---|---|---|---|---|---|---| | 06:00Z | 900 | 0.9 min | 3.1 min | 0.2 min | 2.5 min | 18 h | 12 h | 22.0 | | 07:00Z | 1,565 | 0.3 min | 2.2 min | 0.2 min | 2.1 min | 18 h | 19 h | 32.2 | | 11:00Z | 3,052 | 7.8 min | 15.9 min | 0.3 min | 1.5 min | 408 h | 44 h | 53.7 | | 12:00Z | 3,359 | 8.8 min | 16.9 min | 0.4 min | 1.5 min | 467 h | 52 h | 68.6 | A test job of these two hours (5,739 of them) ran 0.3 minutes at the median and waited 8.7 for its start. In the hour from 12:00Z the jobs waited nine hours for every hour they ran. **Why they wait.** CI's group had 95, 75, 70 and 81 cores by half hour from 11:00Z, people 59, 78, 85 and 72 (the sampler above). CI's jobs alone used 53.7 and 68.6 CPU hours in the two hours, and the spare tier runs in the same group: CI uses all it is given, and the node is full. In the morning CI needed 22 to 32 CPU hours an hour of the same share and nothing queued. So at today's work a head, 21 to 24 heads an hour are what CI's half of the node carries, and each head pays for it in waits. **Which job a head ends on** (the last job to end in each head judged since 11:00Z): in 15 of 36 heads it is a job that ran under a minute and had waited 14 to 26 minutes for its start (`source-date-ci-sdk` 0.1 min after 23.4, `policy/unit/app_copy` 0.4 after 25.6, `suite-containerfile-sources` 0.4 after 21.7, `test-x86_64/fs-native` 0.1 after 17.7); in 4 the `test` driver (26.5 min, tilo's test build); in 3 the slow shard of `test/tilo-session` (23.3 min, tilo's failing tests). That first group is issue 93's half of it: a head one short job from its verdict stands in the same line as the bulk of the heads behind it. **What this adds to the question at the top.** With CI at its share's ceiling, the share decides how many heads an hour are judged, and the order decides how long each waits. Neither is mine to set. The figures are here so that the choice is made on them. ## 13:20Z to 13:47Z 11-18: a wave of many sessions, none of them wide The waves above had one wide run in them. This one had none: 23 sessions with a few dozen jobs each. | five minutes from | people's jobs started | CI's jobs started | CI's start wait p50 | |---|---|---|---| | 13:15Z | 36 | 13 | 75 s | | 13:20Z | 162 | 4 | 333 s | | 13:25Z | 156 | 168 | 150 s | | 13:30Z | 656 | 10 | 371 s | | 13:35Z | 138 | 121 | 816 s | | 13:40Z | 109 | 288 | 1,104 s | | 13:45Z | 202 | 459 | 1,483 s | | 13:50Z | 78 | 502 | 1,501 s | People's jobs ended from 13:25Z to 13:47Z by party: xemmerling 526 jobs in 19 sessions, 24.4 CPU hours; quinten 640 jobs in 4 sessions, 12.7 CPU hours. People's group used 141 to 146 cores at 13:33Z to 13:35Z and at 13:41Z, CI's 10 to 17; over the half hour from 13:30Z, 111 against 45. At 13:47Z the node held 22 of people's jobs and 2 of CI's, with 3,230 CI asks queued. No head was judged from 13:29:29Z to 13:48:18Z with 18 open; the next one to be judged, r0b050d41f8, had taken 54.2 minutes. What it adds to the question at the top: a ceiling on what one session holds would not have bound here, since no session held much. Only a floor for CI's class, or a ceiling on people's class, changes this case. ## 16:37Z to 17:00Z 11-18: CI's group at zero cores for fourteen minutes, this time one session's wave Cores used by each job group on the node, 20 s samples about every minute (`cpu.stat` of `t-jobs/ci` and `t-jobs/people`; the spare tier runs in CI's group): | at | CI's group | people | |---|---|---| | 16:30Z | 88 | 54 | | 16:32Z | 62 | 93 | | 16:37Z | 20 | 134 | | 16:41Z | 8 | 149 | | 16:45Z to 16:59Z, eight samples | 0 | 155 to 158 | | 17:01Z | 15 | 138 | - **Waiting meanwhile, 16:56Z:** 504 ci asks and 526 probe asks for room, four head runs open. CI was 0.2 h behind at 16:43Z and 0.5 h at 16:58Z. - **Who:** 113 people's jobs ran from 18 sessions. One session (party quinten, `claude:e20d44ec`) ran 55 tests and had 272 more queued for disk; the other 17 sessions ran 57 jobs. By 17:01Z that session was down to 4 jobs. - **Starts, 16:43Z to 16:58Z:** people 1,120 jobs, CI 160. - **Booking:** 296 to 331 cores booked of 157 offered, since people's jobs are placed without room. - **Against 13:20Z:** there many sessions shared the wave and a ceiling per session would not have bound. Here one session held half of the running jobs and every queued one, so a ceiling would have bound. A floor for CI's class binds in both. - **Same minutes:** three jobs could not be set up and the node was degraded for half a minute (issue 84's new section). **17:15Z, the same wave, now many sessions, and CI has started four jobs in fifteen minutes.** CI's group has been under 20 cores since 16:37Z and at 0 in most samples: | at | CI's group | people | |---|---|---| | 17:01Z to 17:07Z, seven samples | 2 to 18 | 138 to 152 | | 17:08Z to 17:15Z, seven samples | 0, 0, 4, 0, 0, 0, 0 | 150 to 158 | - **Starts, 16:58Z to 17:13Z:** people 664 jobs, CI 4. - **Heads:** five open, none judged in the last hour, CI 0.7 h behind against 0.0 h an hour before. - **Waiting:** 479 ci asks and 528 probe asks for room. No ci job runs. - **Who, 17:15Z:** 60 people's jobs from 18 sessions use every core (242 cores of use against 156 offered). The largest session has 14 jobs, the next 9, the rest 5 or fewer. Fourteen of the 60 are `test-x86_64/tilo-agent-session`. - **So the big single session was not what held CI out.** Sixty jobs from eighteen sessions are enough, because cores are booked up to the offer by people's jobs and CI is admitted only into room. No ceiling per session binds here. **17:30Z, across the 17:15:44Z promote of 31934c00: nothing changed for CI.** CI's group used 0 to 5 cores in every sample from 17:23Z to 17:30Z (23 and 36 at 17:21Z and 17:22Z), people 148 to 159. The 17:28Z check counts no CI job started in fifteen minutes against people's 666. No head run has been judged since 16:28Z: five are open and CI is 1.0 h behind, from 0.0 h an hour before. 423 ci asks wait for room and 549 probe asks are `held`. That is 53 minutes with CI's group under 20 cores in nearly every sample. **18:00Z, the same order on disk: when the node's disk came back, people's jobs took it and CI waited.** The node was under its disk floor from 17:45:50Z to about 17:57Z (issue 107) and started no job from 17:48Z. - Jobs started by minute: 17:56Z 1, 17:58Z 32, 17:59Z 219. At 17:59:39Z 75 people's jobs ran and no ci job. - The same view held 65 ci asks waiting with kind `disk`, each short by 1.1 to 4.1 GB, and 7 for room. The node offered 580 GB with 35 GB booked, but what it lets new jobs book above the floor (`t_node_disk_ceiling_bytes`) stood at 0 to 23 GB. - The 17:58Z check: in fifteen minutes people started 77 jobs and CI 1; three heads open, CI 1.2 h behind against 0.5 h an hour before. - So whichever resource is short, cores at 16:37Z or disk at 17:58Z, people's asks are served from it first and CI's wait for what is left. **18:11Z: 600 ci asks wait for disk while 53 cores are free.** The node's disk is back over its floor but only just (issue 107), so what it lets new jobs book above the floor is small, and people's asks take it as it appears. | minute | disk ceiling GB | jobs started | CI's group, cores | people, cores | |---|---|---|---|---| | 18:06 | 0 | 29 | 5 | 147 | | 18:07 | 0 | 0 | 0 | 156 | | 18:08 | 32 | 0 | 0 | 151 | | 18:09 | 101 | 111 | 0 | 155 | | 18:10 | 155 | 107 | 0 | 154 | - Jobs view 18:10:47Z: 36 people's jobs and 1 ci job running, cores booked 104 of 157 offered. - Waiting with kind `disk`: 600 ci asks, each short by 0.5 to 28 GB, 0.7 GB at the median, 672 GB together; and 22 people's asks, 153 GB together. - So in these minutes CI is not short of cores. It waits for a few hundred megabytes of disk a job, behind people's asks, on a node that hovers at its disk floor. - Head runs: four open, the oldest 1.3 h, none judged in the fifteen minutes to 18:08Z. **19:30Z: CI is 1.4 h behind again, the day's high, with the disk no longer in the way.** - CI's group used 2, 0, 8, 4, 2, 2 cores from 19:23Z to 19:28Z; people's 149 to 157. - The 19:28Z check: 830 ci asks wait for room; in fifteen minutes people started 985 jobs and CI 222, CI's median wait 1,224 s; five heads open, the oldest 1.4 h, none judged in the fifteen minutes to 19:29Z. - The jobs view at 19:30:13Z: 45 people's jobs and 3 ci jobs run. The 45 come from nine sessions; three sessions of one party hold 36 of them (18, 11 and 7), and fourteen are `test-x86_64/tilo-agent-session` or `test-idle/tilo-ui`. - CI's lag by check today: 0.0 h at 16:13Z and 16:28Z, 1.0 h at 17:28Z, 1.4 h at 18:13Z, 0.6 h at 18:43Z, 1.1 h at 19:13Z, 1.4 h at 19:28Z. **19:43Z: 1.6 h behind.** CI's group used 0, 0, 5, 0, 9, 0 cores from 19:38Z to 19:43Z, people's 148 to 158. 846 ci asks wait for room; in fifteen minutes people started 467 jobs and CI 168, CI's median wait 2,077 s. Five heads open; seven judged in the last hour, three asked. By half hour since 16:30Z CI's group averaged 17, 5, 7, 16, 23, 30 and 4 cores against people's 139, 149, 145, 139, 131, 125 and 152; from 13:30Z to 16:30Z it had 73 to 99. **19:58Z, after the 19:47:42Z promote of 67edf385: 1.9 h behind.** The restart gave CI's group 24, 50 and 27 cores for three minutes; from 19:53Z it has 7 to 12 again against people's 140 to 145. Eight heads are open, 402 ci asks wait for room, and in fifteen minutes people started 693 jobs and CI 210. CI's lag by check since 18:43Z: 0.6, 0.9, 1.1, 1.4, 1.6, 1.9 h. **20:05Z, three hours in two numbers.** My one-minute samples of the two job groups' cores, means over each run of the sampler: | three hours | CI's group, with the probes | people | |---|---|---| | 13:59Z to 16:59Z, 171 samples | 79 | 74 | | 17:01Z to 20:01Z, 166 samples | 15 | 139 | At 20:05Z: 59 people's jobs and one probe run, no ci job; 576 ci asks wait for room; CI was 1.9 h behind at 19:58Z. ## 20:30Z 11-18 addendum: no head judged in an hour, CI 2.4 h behind - Head runs asked in the last 1 h / 3 h / 24 h: 3 / 19 / 495. Judged: 0 / 15 / 495. Open: 8, the oldest 2.4 h. - CI behind by check: 2.4 h now, 1.4 h an hour ago, 1.0 h three hours ago. - CI's cgroup by minute, 20:16 to 20:29Z: 0 cores every minute, people's 154 to 159. Before that the node was short of disk (issue 107) and ran 47 to 132 cores for people, 2 to 5 for CI. - Jobs started in 15 minutes to 20:28Z: people 1,665 (wait p50 63 s), ci 34 (wait p50 403 s). Waiting: 657 ci asks for room, 557 probe asks held. - Running jobs by party at 20:28Z: quinten 542, xemmerling 472, t 206.
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#97
No description provided.