node/start: a job's set-up stood 30 s on something other than a CPU and was told setup, never run again; what it waited on is not named yet #84

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

Found on production (b7f14fd6) at 05:15:28Z 11-16. Nothing changed by me. The cause of the wait is not measured yet: a read-only sampler of kernel waits runs on the worker now and I will add its reading here.

What happened

policy/unit/catalogue_coverage of head run r11568420cc, job j583-1414: asked 05:10:21Z, started 05:14:57Z, ended 05:15:28Z as error | setup:

ERROR t::server::nodes::history: the job could not be set up: could not set up the job: the job did not start
within 30s (besides 0.0s waiting for a CPU) on t-worker-ci-x86-1 job=j583-1414 check="policy/unit/catalogue_coverage" cause="setup"

The check takes 1.5 s in other runs (three passes in the three hours before). A setup end is never run again (setup_never_retried, src/jobs/attempt.rs:474), so the head carries an error for a check that never ran. It is the second such end in three days (one on 11-13).

Where the bound is

The text is tilo-sandbox's, at the pinned revision 8b5a1f64f22: read_report_bytes in crates/platform/tilo-sandbox/src/job/linux/runner.rs:1171-1190 waits for the init's report for SETUP_TIMEOUT (30 s), not counting the time the init and its children stood ready to run or their cgroup's cpu.pressure. So this set-up stood thirty seconds on something that is not a CPU: by the constant's own comment "a mount that hangs, a lock that is never released". The worker writes no line for the job at all (no a job launched, no warning), so the node's log cannot say which step it was in.

The same minute on the worker

Launches and ends per five seconds (worker log, a job launched and a job ended on its node):

from ended launched
05:14:30 16 14
05:14:40 13 47
05:14:55 51 54
05:15:00 58 29
05:15:10 48 60
05:15:20 13 17
05:15:25 11 2
05:15:30 2 3
  • About 350 CI jobs of the new head launched within 50 s. Their launches took 1.1 to 1.7 s at the median, 4.6 s at most.
  • t::store::snapshots: flattened a session's build … bytes=13814296998 secs=15.09 ended at 05:15:28.9Z, so it ran from 05:15:13.8Z.
  • From 05:15:28.7Z a batch of probes began launching and took 23 to 46 s each, all of it in the launch step (the sandbox's process started, its mounts made in it). Twelve slowest: launch_ms 23,632 to 43,512, net_ms 166 to 2,978, every other step under a second. One person's job took 24 s the same way. These did not fail; I read that as their wait counting as waiting for a CPU, which the one failed job's did not.

How regular slow launches are

From the a job launched lines of the last eight hours:

hour (UTC) launches mean s over 5 s over 20 s
11-15 21 4,833 1.78 1.4% 1
22 6,282 1.61 0.7% 0
23 1,820 2.20 9.0% 21
11-16 00 5,786 2.07 6.0% 5
01 4,617 2.24 6.4% 9
02 3,623 1.37 0.9% 0
03 4,568 2.66 13.5% 11
04 3,171 1.60 3.0% 2
05 (to 05:23) 1,737 2.90 15.5% 18

Launching takes 4,000 to 12,000 s an hour in all, about half of it in the launch step and half in net in quiet hours; in the hours with stalls the launch step carries the rise.

Questions

  1. What does the init wait on in those seconds? The sampler's reading will follow.
  2. A set-up that ran out of time on the node's own lock is the node's time, as a Lost job's is. Should such an end be run again once instead of being told to the head as an error? The rule in attempt.rs is yours; I have not touched it.

The sampler's reading, 05:30Z to 06:10:02Z

Read-only, inside the worker container: every two seconds, what each process's main thread waits in (/proc/<pid>/wchan), keeping the waits three or more processes share and leaving out the idle ones. The set-up failure did not happen again in these forty minutes, so its wait is still not named. What the samples do say:

  1. The slow probe launches are not this fault. Of 1721 launches in the window, 191 took over 5 s and 13 took 15 s or more (Probe 13 ). During the batch of twelve probes that took 15 to 33 s from 06:04:19Z the samples show no shared wait at all: those launches stood ready to run and got no core, which the bound leaves out, and which is why none of them failed. The 23 to 46 s launches after 05:15:28Z above were probes too. I take back the link the title draws between them and the failed set-up.
  2. A wait that is not a CPU and that new processes share: the mount table. In 9 rounds, up to 46 processes at once, almost all of them started within that same round, waited in m_start of fs/namespace.c (the symbol sits beside clone_mnt in the node's kallsyms): reading /proc/<pid>/mounts or mountinfo while a mount or unmount holds the table for writing. Times and processes waiting: 05:36:03 (21), 05:36:08 (17), 05:37:39 (7), 05:38:10 (9), 05:47:38 (7), 05:47:48 (46), 06:02:28 (10), 06:03:48 (32), 06:03:54 (6). Each burst was gone by the next round or the one after, so I saw seconds, not thirty. The worker container sees 358 mounts; every job's start and end changes the table.
  3. Other shared waits, none of them in a job's set-up as far as the program names tell: d_alloc_parallel (up to 85 compiler wrappers at once looking the same name up), wrap_directory_iterator (rustc and clippy listing one directory), folio_wait_bit_common (linkers and wrappers reading pages), __tun_chr_ioctl and kernel_clone in bursts of 8 to 10 new processes at 05:38:44Z (the jobs' network helpers starting).

So the candidate for the thirty seconds is the mount table's lock held long by one writer, and it is not proven. To name it at the next occurrence without a sampler: where read_report_bytes gives up, the error could carry what the init and its children wait in (/proc/<pid>/wchan, or stack where it may read it). That is a change in tilo-sandbox, not in t.

10:44Z 11-17 (production f9cb88e3), one more case, and the node never names the job. j599-8095 (rpm-package-set, a person's run rc9c23e4da2, width 2) was handed at 10:43:48Z and ended at 10:44:20Z: "the job did not start within 30s (besides 0.0s waiting for a CPU)". In the worker's log from 10:43:30Z to 10:44:40Z (2,050 lines) no line names the job or its run, and it has no directory under the node's jobs or scratch; its neighbours j599-8092, 8093, 8094, 8096, 8097 and 8098 launched in 0.3 to 0.9 s in the same seconds. The same check passed three times in the six hours before, in 8 s. The only job ended with cause setup in six hours.

14:05Z 11-17 (production 2868c3f2): six checks of one head told error in one burst of starts. Head rcab9577d3e (asked 14:02:35Z) had 203 of its jobs started in the ten seconds from 14:04:40Z, beside 70 of people's: 273 starts in ten seconds. Six of them ended error | setup between 14:06:16Z and 14:06:33Z, each "the job did not start within 30s (besides 0.2 to 0.5s waiting for a CPU)":

job check width
j602-12246 policy/unit/ui_build_inputs 4
j602-12184 policy/unit/android_mediation 1
j602-12233 policy/unit/workflow_actions 1
j602-12349 policy/unit/commit_hooks 6
j602-12302 policy/unit/ci_wasm_clippy_conf 1
j602-12314 policy/unit/component_manifest 2

None was asked again; the head stands at 571 passed, 2 failed, 6 errors. Of the same run's 203 jobs started in those ten seconds, 195 passed.

What the node and the server say of that minute:

  • The worker's log from 14:03:30Z to 14:07:30Z (9,092 lines) names none of the six jobs, as at 10:44Z.
  • The server at 14:05:42Z: "degraded, so it gets no jobs: job j602-12184's processes are still in its cgroup 10 s after its kill (stuck in uninterruptible I/O), so its end waits for them"; healthy again 14:06:42Z. So the job did exist on the node, and what its set-up stood on was I/O it could not be interrupted in.
  • Of 320 jobs the node launched from 14:04:40Z to 14:06:20Z, 279 took under 5 s, 27 took 5 to 10 s, 9 took 10 to 20 s, 3 took 20 to 30 s and 2 took 30 s or more and still ran (72.2 s the longest); 21 had a launch step over 5 s (42.4 s the longest), 4 a network step over 5 s (29.8 s). In the half hour before, 2,513 jobs launched in 1.5 s at the median, 13.5 s at the 99th percentile, 24.5 s at most.
  • 95 "a job placed here waits ... every start under way" warnings from 14:05:07Z to 14:06:00Z.
  • The freer in the same minutes: 72 GB being freed at 14:05:02Z, 134 GB at 14:06:20Z, 138 GB at 14:06:51Z. The node's I/O pressure as its exporter counts it stayed under 1% until 14:06:30Z (5.4%), so whatever the six stood on does not show there.

Seven jobs ended this way today in two runs (this head and the one of 10:44Z), one on 11-16, one on 11-13, nine on 11-11. It is rare, and when it comes it comes to a head as errors that are t's own.

19:58Z 11-17 (production 2885a521): it came again, with no burst of starts, and this time the stuck process was read

Job j604-207 (a probe run's tilo-sh-tools, started 19:57:47Z) ended error | setup at 19:59:05Z: "start pasta: could not set up the job: the job did not start within 30s (besides 0.0s waiting for a CPU)". The server marked the node degraded at 19:58:37Z ("job j604-207's processes are still in its cgroup 10 s after its kill (stuck in uninterruptible I/O)") and healthy again at 19:59:17Z. Never asked again. The day's eighth such job.

No burst this time. The node launched 10 jobs from 19:57:55Z to 19:58:35Z (4 in the ten seconds from 19:58:00Z); 273 in ten seconds at 14:06Z. Three other jobs launched in those seconds spent 14.3, 14.9 and 17.8 s in their network step alone.

The one process left in the job's cgroup three seconds after the server's line (my capture, read on the node; /proc/<pid>/stack):

pid 3096047 comm=tilo-job-init state=D wchan=__flush_workqueue
    __flush_workqueue+0x208/0x500
    generic_shutdown_super+0x3a/0x130
    kill_anon_super+0x19/0xa0
    fuse_kill_sb_anon+0x87/0xd0
    deactivate_locked_super+0x3b/0x100
    cleanup_mnt+0x13a/0x190
    task_work_run+0x9d/0xd0
    exit_to_user_mode_loop+0xca/0xf0
    do_syscall_64+0x10d/0x1d0

The job's init is exiting, its mount namespace goes with it, and shutting down the job's FUSE superblock flushes a kernel workqueue and waits there uninterruptibly. The node runs kernel 6.18.51-talos. The mount is t's own: each job has one, source t-sources at /var/lib/t/jobs/<job>/sources (read-only, served by the worker process itself, which holds /dev/fuse open once per job), so it is the job's view of its sources whose last reference the exiting init drops.

It was already happening before this job started. A sampler of main threads' waits in the worker's container, every two seconds: four tilo-job-init processes stood in the same __flush_workqueue (same stack, pid 3077437 printed) in each of the six samples from 19:57:49Z to 19:58:00Z, and in no other sample of its two hours. After them: 46 and then 163 wrapper processes in d_alloc_parallel and wrap_directory_iterator at 19:58:19Z and 19:58:29Z, and at 19:58:42Z five passt.avx2 in tun_chr_close and three in rcu_barrier.

Reading, and what is not shown. Jobs that end tear down a FUSE mount, and that teardown can stand for ten seconds and more in a workqueue flush inside the kernel; while several stand there, other jobs' network helpers take 14 to 18 s to start and one passes tilo-sandbox's 30 s bound. Which workqueue it is I have not read: generic_shutdown_super flushes the queue that moves inodes between cgroups' writeback lists on every unmount while such moves are in flight (cgroup_writeback_umount: rcu_barrier(), then flush_workqueue), which would fit a node with a cgroup per job and the freer deleting tens of GB, and fit the helpers seen in rcu_barrier; that is a guess from the stack's shape, not a reading. Nor is it shown that the helper's start waits on the same flush. My capture and sampler now also record the kernel workers' stacks and the helper's stack at the next case.

What could be weighed now, none of it mine alone: the 30 s bound is tilo-sandbox's and counts this wait as the job's failure; t tells such a job error and never asks again (Cause::Setup => Rerun::No), where one more attempt a minute later would pass; and a job's FUSE mount could be unmounted by the node before its init is killed, outside the path that holds the cgroup.

21:21Z 11-17: the ninth, and this time the 30 seconds themselves were read: one mount call of the job's init

Job j604-16303 (a probe run's test/tilo-server, started 21:21:06Z) ended error | setup at 21:21:41Z: "could not set up the job: the job did not start within 30s (besides 0.0s waiting for a CPU)". No degraded node this time, and nothing else was slow: the node launched 30 jobs from 21:20:50Z to 21:21:50Z and every one took under 5 s (the slowest 1.3 s).

My sampler (every two seconds, now also showing a single job-init) saw one tilo-job-init, pid 3274668, in the same kernel wait in all fifteen samples from 21:21:09Z to 21:21:39Z, the failed job's whole 30 seconds, and no other job-init in one wait for more than a sample since 20:14Z:

__flush_work+0x28d/0x310
evict+0x2be/0x330
__dentry_kill+0xaa/0x200
dput+0x4e/0x90
ovl_get_workdir+0x475/0x910
ovl_fill_super+0x1f1/0x560
get_tree_nodev+0x5a/0xa0
vfs_get_tree+0x28/0xe0
do_new_mount+0x17d/0x3d0
__se_sys_mount+0x176/0x1f0

The job's init is mounting an overlay. Preparing the overlay's work directory drops a dentry, the inode behind it is evicted, and evict waits for a work item to finish. It waited until tilo-sandbox's 30 s were over. The pid cannot be tied to the job after the fact (its cgroup was gone when the server's line came), but the times are the job's.

Read with 19:58Z. There the wait was in the shutdown of the job's sources mount (generic_shutdown_super flushing a workqueue); here it is in the mount of the job's overlay (evict flushing one work item). Both are a mount-table call of the job's init standing uninterruptibly on kernel work that belongs to an inode, on kernel 6.18.51-talos, on a node whose volume is under constant writeback and freeing. I have not read which work it is; an inode being moved between cgroups' writeback lists would fit both stacks, and it is still a guess.

What follows for t, to weigh: a single hung mount call ends a job as t's error for good. One more attempt would have passed (30 other launches in the same minute took about a second), so asking a setup end again once is the cheapest relief, and it is your rule. The other is what the node hands the init: an overlay work directory that needs no cleaning at mount (never reused, or emptied by the node beforehand) would take ovl_get_workdir's eviction off this path.

03:22Z to 03:30Z 11-18: eight minutes of it, five set-up failures and a stuck kill, the last four at a promote

What ended. j606-11078 (test-idle/tilo-ui): at 03:23:43Z the server said the node was degraded because the job's processes were "still in its cgroup 10 s after its kill (stuck in uninterruptible I/O)", and at 03:24:55Z "the job did not start within 30s" on start nft. Then four jobs at once, handed about 03:28:50Z and failed 30 s later: j606-10861 test-x86_64/tilolang-cli, j606-11090 test-idle/tilo-ui, j606-11291 test/tilo-workspace-agent on start nft, and j606-10840 test-x86_64/tilo-agent-session on start pasta. The worker had them ended by 03:29:21Z and could not post their ends until the new server answered, which recorded all four at 03:29:48Z.

What the node showed (my sampler, every two seconds in the worker's container): from 03:22:20Z to 03:30:30Z there was a tilo-job-init in an uninterruptible wait in nearly every ten-second span, one to three at a time, 192 of 207 samples in __flush_workqueue. The stack, 189 times: __flush_workqueue <- generic_shutdown_super <- kill_anon_super <- fuse_kill_sb_anon, the shutdown of a job's sources mount, as at 19:58Z on 11-17; then it lasted about ten seconds, now eight minutes. Others in the same window: rcu_barrier <- netdev_run_todo <- tun_chr_close (10 samples) and synchronize_rcu_expedited <- kern_unmount_array <- ovl_free_fs (8). My capture at 03:23:44Z has the stuck job's own init in that stack, and two more job-inits in it node-wide.

What coincided. The last four fall into your promote of 7d7c6593: the old server pod, which runs on this node, was killed at about 03:28:40Z and the new one created at 03:29:27Z; the worker could not reach a server from 03:28:44Z to 03:29:44Z. The episode began six minutes before that, so the promote is not its cause, but every launch handed in the half minute after the kill stood its 30 s. The freer ran one pass a minute at 03:24Z and 03:25Z (96 and 65 GB by its count) and none after; I have nothing that explains the start at 03:22Z.

The cost, as the rule stands: five checks ended as t's error and were not asked again (Cause::Setup is Rerun::No). The proposal above stands, and this adds a second measure of it: a set-up bound that every launch of half a minute hits at once is the node's state, not the jobs'.

11:54Z to 11:57Z 11-18 (production d748ed8d): 371 of people's jobs handed in one minute, every launch on the node slow, one set-up failure

What ended. j611-20912 (policy/unit/build_web_examples, a person's job, session claude:4a828a1b): asked 11:54:56Z, held for a start for 73 s ("every start under way"), admitted 11:56:14Z, told at 11:56:54Z "the job did not start within 30s (besides 0.4s waiting for a CPU)", cause setup. It was the only job told so; my capture read the node 75 s after the line and found its cgroup gone.

The minute before it. Jobs by the minute they were handed (job_history):

handed people's jobs median from handed to started longest CI's jobs handed
11:52Z 10 1.3 s 2.2 s 61
11:53Z 7 0.8 s 1.5 s 0
11:54Z 371 90.5 s 160.8 s 2
11:55Z 62 129.7 s 153.9 s 0
11:56Z 47 105.3 s 120.2 s 0
11:57Z 8 53.0 s 53.3 s 0

Of the 483 handed from 11:53Z to 11:57Z, 295 are one session's (claude:4a828a1b); the next three have 68, 63 and 27.

What a launch took (the worker's "a job launched" lines, total_ms):

launched in jobs under 1 s 1 to 10 s 10 to 30 s over 30 s longest
11:53Z 96 25 71 0 0 5.9 s
11:54Z 81 17 50 14 0 26.4 s
11:55Z 74 0 23 39 12 40.8 s
11:56Z 147 0 142 5 0 19.9 s
11:57Z 176 0 176 0 0 9.4 s

In the twelve launches over 30 s the time is in one step: launch_ms 32.7 s at the median, net_ms 2.2 s, every other step under 30 ms. The worker warned 368 times in these minutes that a job placed there waited because every start was under way.

What processes stood in (my sampler in the worker's container, 11:53Z to 11:58Z, samples naming each): tilo-job-init in __flush_work 23, in do_lock_mount 19, in clone_private_mount 10; tilo-session in __flush_workqueue 24; bash and bwrap in m_start 26 and 15 (reading a mount table); passt in kernel_clone 15 and rcu_barrier 11; a compile's wrapper in __fuse_simple_request 13. So the launches wait on each other in the kernel's mount paths, as in the readings above, this time under load alone, with no promote and no kill.

Beside it. Job directories on the node rose from 110 at 11:54:15Z to 460 at 11:55:44Z; free disk fell from 1,232 GB at 11:52Z to 1,004 GB at 12:00Z, the lowest of the day, with 220 to 280 directories in deletion from 11:57Z; the goal line at 12:00Z has 191 cores booked of 156 offered. CI was handed two jobs in four minutes (issue 97).

What it adds. The bound on starts under way did its work as a queue: 371 jobs waited a minute and a half for a start and one failed. What is missing is that a launch behind many others is still given the same 30 s, counted from when it is admitted, while the kernel serves the mounts one after another: twelve launches passed 30 s and passed by luck of which step the bound covers. Either fewer starts at once when launches slow, measured by the launches' own times, or a set-up failure asked once more, as proposed above, would have kept this job. Yours to weigh; the session that sent the 295 is yours too.

12:53Z and 13:51Z 11-18 (production d748ed8d): the node degraded twice for seconds, neither a failed set-up

The same server line ("processes are still in its cgroup 10 s after its kill") came twice more, each time for a job that had ended in the ordinary way. Neither is the unmount flush read on 11-17.

server's line job check class how it ended read on the node
12:53:24Z j611-29150 test/settings ci pass, 12:53:28Z cgroup already gone; node-wide one passt.avx2 in state D in rcu_barrier, under netdev_run_todo and tun_chr_close, in its exit
13:51:48Z j611-38911 test/tilo-server people cancelled, 13:51:57Z one rustc left in the cgroup, its leader a zombie; my capture read no threads, so what the live thread stood in is not known
  • The node's health series in Prometheus (t_node_health, 15 s steps) shows it not healthy in 3 of 1,931 samples since 08:20Z: 12:53:45Z, 13:52:00Z and 13:52:15Z. The cost today was seconds without starts, not minutes.
  • The first shape is a network helper closing its tap device and waiting for the kernel's RCU barrier. A job that passed took about 14 s to leave its cgroup after its kill.
  • My capture now reads every thread of a process left in the cgroup, so the next zombie leader names what its thread waits in.
  • The server pod's log on the node reaches back only about ten minutes (2,551 lines for the last four and a half hours at 16:20Z), so "healthy again" times for these two could not be read afterwards.

16:52Z to 16:55Z 11-18 (production d748ed8d): three more, and this time the samples name what a set-up stood in

Three jobs ended error | setup ("the job did not start within 30s"), none asked again. Today's count is nine: five at 03:24Z to 03:29Z, one at 11:56Z, these three.

ended job check class
16:52:36Z j611-58212 test-x86_64/tilo-agent-session people
16:54:06Z j611-58386 test/chat probe
16:54:48Z j611-58461 test/tilo-app-launch people

The node was degraded from 16:54:36Z to about 16:55:10Z for j611-58461's job-init, which would not die. At 16:54:52Z all 1,357 queued asks waited with kind degraded (people 327, ci 504, probe 526).

What ran in those minutes

minute jobs started (Prometheus) launches in the worker's log "every start under way"
16:52 43 100 0
16:53 588 197 153
16:54 91 114 114
16:55 220 175 76
  • The store's freer at 16:54:56Z: "the volume needs 248.5 GB more free", freeing=290 GB, available 1,128 GB against a keep line of 1,319 GB.
  • Booked cores stood at 266 to 331 of 157 offered, with 220 "placed without room" lines in the minute 16:54.

What stuck processes waited in. Two-second samples of every process in state D on the node, 16:51:30Z to 16:56:00Z, against a quiet window, 16:30Z to 16:34Z. Counts are stacks holding the frame.

frame burst quiet
evict 94 0
__flush_work 159 0
ovl_fill_super (mount of an overlay) 41 0
ovl_get_workdir 39 0
vfs_rmdir with ovl_destroy_inode 23 0
xlog_cil_commit 58 0
rcu_barrier 9 7

The job-init of j611-58461, read in its cgroup while the node was degraded (the same process was seen node-wide 30 s earlier):

__flush_work
evict
__dentry_kill
dput
ovl_get_workdir
ovl_fill_super
get_tree_nodev
vfs_get_tree
do_new_mount
__se_sys_mount

So the set-up stands in the mount of the job's overlay. The mount clears its work directory, drops the last reference to an inode on the store's XFS, and evict waits for a work item to finish. Removing a directory of an overlay waits the same way. On 11-17 it was the unmount side (generic_shutdown_super, __flush_workqueue).

Read, and not read

  • Read: the stacks and counts above, the freer's line, kernel 6.18.51-talos, XFS with project quota on /dev/nvme0n1p5.
  • Not read: which work evict flushes. The frames between are inlined. From the kernel source as I remember it, this is XFS's deferred inode clean-up: xfs_inodegc_queue makes the caller flush its per-CPU worker when the backlog is long. That would tie the wait to how many inodes the node is deleting at once, which here is the freer's 290 GB and the ended jobs' directories. I have not seen that worker's stack. My capture now looks for it.

What this would mean for a fix. The set-up's 30 s is spent waiting for the filesystem to clean up after deletions the node itself makes in the same seconds. The invariant would be: a job's set-up never waits on the node's own deleting. Three places could hold it: the freer's pace, the removal of ended jobs' directories, or the work directory the mount clears. The freer and the start path are yours, so I commission nothing. Say which you would take, or whether you read the wait differently.

18:15:46Z 11-18 (production 31934c00): the tenth today, with no burst of starts, while directories were being removed

Job j612-8886 (test/tilo-desktop-surface, people's, run r80bf4ec902) ended error | setup: "the job did not start within 30s (besides 0.3s waiting for a CPU)". My capture found its cgroup gone 16 s later. The two-second samples of stuck processes hold the minute:

frames in stacks, state D 18:14:50Z to 18:16:00Z quiet, 18:00:00Z to 18:01:10Z
__flush_work 44 0
evict 17 0
xlog_cil_commit 10 2
ovl_fill_super with do_new_mount 7 4
rcu_barrier 8 1
stuck, by command and what it waits in (sample counts) 18:14:50Z to 18:16:00Z
rm in do_rmdir 253
rm in __flush_work 195
tilo-job-init in do_lock_mount 35
tilo-job-init in __flush_work 26
  • In the quiet minute no rm and no job-init shows in the top eight; the stuck processes there are compilers reading directories.
  • The node launched 48, 93 and 75 jobs in the minutes 18:14Z to 18:16Z, and the worker logged no "every start under way". The node deleted 269 GB in the minute 18:15Z.
  • So again a job's set-up stood while inodes were being dropped on the same filesystem, this time by rm processes removing directories, and job-inits waited both for the mount lock and in the same flush.
  • Not read: whose rm these are. I look for them on the node.
  • The three failures of 16:52Z to 16:54Z were checked against the job rows at 18:08Z: no job of the same run and check started after them. This one is too young to say.

18:21Z, whose rm: not t's. On 31934c00 nothing under src or crates starts a program named rm; the node removes directories with remove_dir_all in its own threads. So the rm processes of 18:15Z are commands of the jobs themselves.

  • The minute's rows name 20 distinct rm pids, waiting in do_rmdir, __flush_work and xfs_trans_dqresv.
  • rm rows in my samples since 17:42Z, by minute: 17:58Z 31, 17:59Z 3, 18:02Z 6, 18:09Z 32, 18:10Z 14, 18:11Z 7, 18:14Z 8, 18:15Z 471, 18:18Z 165, 18:19Z 177.
  • So a check that removes a large tree with rm can hold other jobs' set-up on this filesystem, as the node's own deleting can. Which check it is I have not read yet; a catcher on the node is looking for the next one and its job.

18:44Z: the rm processes caught, and a correction to how I ruled t out.

Caught on the node between 18:25Z and 18:42Z, each in state D in __flush_work, each a child of bash:

at job check class session
18:25:21Z j612-9397 test/tilo-app people claude:438d01c5
18:41:49Z j612-10724 test/tilo-desktop-surface people claude:40f3c876
18:42:15Z j612-10725 test/tilo-desktop-surface people claude:40f3c876
18:42:15Z j612-10661 cargo test -p canvas --test it … people claude:72447be4
  • So they are test jobs of people's sessions: a test, or a script a test starts, removes a tree with rm and waits for the filesystem like everything else that drops inodes there. The jobs are short, 18 to 27 seconds for the three that have ended.
  • Correction of my evidence, not of the conclusion: my search of t's source at 18:21Z used a word-boundary pattern that this machine's regex does not know, so it could match nothing. Searched properly, t does write rm into job scripts: rm -f of single list files in a build job (src/drivers/cargo/exec/build.rs), and rm -rf in the capture a micro-VM step runs inside its guest (src/node/setup.rs:128). Neither is a host process under bash in a test job's cgroup, which is what was caught.
  • Tilo's own t.toml has rm -rf in several checks' run lines (screenshots, mounted-resource recovery), none of them these three checks; .config/nextest.toml has none. Where in these tests the rm comes from I have not read.
  • What this adds to the question above: the set-up of one job can be held by any job's deleting on the shared filesystem, not only by the node's own.

18:45Z, read in the job rows: no job of run r80bf4ec902's test/tilo-desktop-surface has started since its set-up failure at 18:15:46Z, twenty-nine minutes on. So this one too was not asked again, unlike the jobs that ended at their disk limit in the same hour, which t ran again (issue 107). No other job has ended for a cause of t's own since 18:16Z.

19:11:31Z 11-18: the eleventh today, in the minutes the delete queue stood at a thousand trees

Job j612-14802 (test/tilo-server, people's, run rc5076a34f4): "the job did not start within 30s (besides 0.1s waiting for a CPU)". The capture found its cgroup gone a minute later. The two-second samples:

stuck, by command and what it waits in (sample counts) 19:10:30Z to 19:11:40Z steady, 18:45:00Z to 18:46:10Z
rm in do_rmdir 85 0
rm in __flush_work 59 0
tilo-job-init in __flush_work 18 0
tilo-job-init in synchronize_rcu_expedited 15 0
frames __flush_work / evict / do_rmdir in stacks 38 / 17 / 13 0 / 0 / 0
  • The node's own delete queue held 826 to 1,074 trees from 19:10Z to 19:13Z and free disk was falling (issue 107's second fall). Launches ran at 142, 67 and 210 a minute with no "every start under way".
  • So three of today's eleven now have samples, 16:52Z, 18:15Z and 19:11Z, and all three show the same thing: job-inits waiting in the filesystem's flush while inodes are being dropped beside them, by the node's deleter, by jobs' rm, or both.

19:35:22Z: the twelfth today. Job j612-17181 (test-x86_64/tilolang-tilo, people's, run re0e0d49b05), "did not start within 30s"; cgroup gone when the capture looked. Samples from 19:34:20Z to 19:35:30Z: frames __flush_work 35, evict 19, ovl_fill_super with ovl_get_workdir and do_new_mount 13 each, do_lock_mount 7, do_rmdir 5; tilo-job-init 17 samples in do_lock_mount and 17 in __flush_work, rm 10 in __flush_work. The node launched 105 jobs in the minute 19:34Z with no "every start under way"; its delete queue held 300 to 465 trees and free disk was steady near 825 GB. Four of today's twelve now have samples, and all four show job-inits in the overlay mount's flush.

20:23:23Z 11-18: the thirteenth today, while the delete queue grew

  • j613-4622, test/tilo-workspace-service, people's, run rde34ec489f: asked 20:14:00Z, started 20:19:23Z by its row, told setup at 20:23:23Z ("the job did not start within 30s (besides 0.3s waiting for a CPU)").
  • My capture came after its cgroup was gone. The one job-init not idle on the node then was exiting (do_exit > free_nsproxy > namespace_unlock > synchronize_rcu_expedited). What this job waited in is not read.
  • The node around it: 1,665 of people's jobs started in the 15 minutes to 20:28Z. The delete queue grew from 0 trees at 20:17Z to 875 at 20:25Z and 1,942 at 20:31Z, while the node deleted 1 to 84 GB a minute (475 GB a minute at 20:13Z). At 20:31Z 12 to 15 of the 16 deleter threads waited in __flush_work, the freer's thread too. Free disk fell from 637 GB to 428 GB (issue 107).
Found on production (b7f14fd6) at 05:15:28Z 11-16. Nothing changed by me. The cause of the wait is not measured yet: a read-only sampler of kernel waits runs on the worker now and I will add its reading here. ## What happened `policy/unit/catalogue_coverage` of head run `r11568420cc`, job `j583-1414`: asked 05:10:21Z, started 05:14:57Z, ended 05:15:28Z as `error | setup`: ``` ERROR t::server::nodes::history: the job could not be set up: could not set up the job: the job did not start within 30s (besides 0.0s waiting for a CPU) on t-worker-ci-x86-1 job=j583-1414 check="policy/unit/catalogue_coverage" cause="setup" ``` The check takes 1.5 s in other runs (three passes in the three hours before). A `setup` end is never run again (`setup_never_retried`, `src/jobs/attempt.rs:474`), so the head carries an error for a check that never ran. It is the second such end in three days (one on 11-13). ## Where the bound is The text is tilo-sandbox's, at the pinned revision 8b5a1f64f22: `read_report_bytes` in `crates/platform/tilo-sandbox/src/job/linux/runner.rs:1171-1190` waits for the init's report for `SETUP_TIMEOUT` (30 s), not counting the time the init and its children stood ready to run or their cgroup's `cpu.pressure`. So this set-up stood thirty seconds on something that is not a CPU: by the constant's own comment "a mount that hangs, a lock that is never released". The worker writes no line for the job at all (no `a job launched`, no warning), so the node's log cannot say which step it was in. ## The same minute on the worker Launches and ends per five seconds (worker log, `a job launched` and `a job ended on its node`): | from | ended | launched | |---|---|---| | 05:14:30 | 16 | 14 | | 05:14:40 | 13 | 47 | | 05:14:55 | 51 | 54 | | 05:15:00 | 58 | 29 | | 05:15:10 | 48 | 60 | | 05:15:20 | 13 | 17 | | 05:15:25 | 11 | 2 | | 05:15:30 | 2 | 3 | - About 350 CI jobs of the new head launched within 50 s. Their launches took 1.1 to 1.7 s at the median, 4.6 s at most. - `t::store::snapshots: flattened a session's build … bytes=13814296998 secs=15.09` ended at 05:15:28.9Z, so it ran from 05:15:13.8Z. - From 05:15:28.7Z a batch of probes began launching and took 23 to 46 s each, all of it in the `launch` step (the sandbox's process started, its mounts made in it). Twelve slowest: `launch_ms` 23,632 to 43,512, `net_ms` 166 to 2,978, every other step under a second. One person's job took 24 s the same way. These did not fail; I read that as their wait counting as waiting for a CPU, which the one failed job's did not. ## How regular slow launches are From the `a job launched` lines of the last eight hours: | hour (UTC) | launches | mean s | over 5 s | over 20 s | |---|---|---|---|---| | 11-15 21 | 4,833 | 1.78 | 1.4% | 1 | | 22 | 6,282 | 1.61 | 0.7% | 0 | | 23 | 1,820 | 2.20 | 9.0% | 21 | | 11-16 00 | 5,786 | 2.07 | 6.0% | 5 | | 01 | 4,617 | 2.24 | 6.4% | 9 | | 02 | 3,623 | 1.37 | 0.9% | 0 | | 03 | 4,568 | 2.66 | 13.5% | 11 | | 04 | 3,171 | 1.60 | 3.0% | 2 | | 05 (to 05:23) | 1,737 | 2.90 | 15.5% | 18 | Launching takes 4,000 to 12,000 s an hour in all, about half of it in the `launch` step and half in `net` in quiet hours; in the hours with stalls the `launch` step carries the rise. ## Questions 1. What does the init wait on in those seconds? The sampler's reading will follow. 2. A set-up that ran out of time on the node's own lock is the node's time, as a `Lost` job's is. Should such an end be run again once instead of being told to the head as an error? The rule in `attempt.rs` is yours; I have not touched it. ## The sampler's reading, 05:30Z to 06:10:02Z Read-only, inside the worker container: every two seconds, what each process's main thread waits in (`/proc/<pid>/wchan`), keeping the waits three or more processes share and leaving out the idle ones. The set-up failure did not happen again in these forty minutes, so its wait is still not named. What the samples do say: 1. **The slow probe launches are not this fault.** Of 1721 launches in the window, 191 took over 5 s and 13 took 15 s or more (Probe 13 ). During the batch of twelve probes that took 15 to 33 s from 06:04:19Z the samples show no shared wait at all: those launches stood ready to run and got no core, which the bound leaves out, and which is why none of them failed. The 23 to 46 s launches after 05:15:28Z above were probes too. I take back the link the title draws between them and the failed set-up. 2. **A wait that is not a CPU and that new processes share: the mount table.** In 9 rounds, up to 46 processes at once, almost all of them started within that same round, waited in `m_start` of `fs/namespace.c` (the symbol sits beside `clone_mnt` in the node's `kallsyms`): reading `/proc/<pid>/mounts` or `mountinfo` while a mount or unmount holds the table for writing. Times and processes waiting: 05:36:03 (21), 05:36:08 (17), 05:37:39 (7), 05:38:10 (9), 05:47:38 (7), 05:47:48 (46), 06:02:28 (10), 06:03:48 (32), 06:03:54 (6). Each burst was gone by the next round or the one after, so I saw seconds, not thirty. The worker container sees 358 mounts; every job's start and end changes the table. 3. Other shared waits, none of them in a job's set-up as far as the program names tell: `d_alloc_parallel` (up to 85 compiler wrappers at once looking the same name up), `wrap_directory_iterator` (rustc and clippy listing one directory), `folio_wait_bit_common` (linkers and wrappers reading pages), `__tun_chr_ioctl` and `kernel_clone` in bursts of 8 to 10 new processes at 05:38:44Z (the jobs' network helpers starting). So the candidate for the thirty seconds is the mount table's lock held long by one writer, and it is not proven. To name it at the next occurrence without a sampler: where `read_report_bytes` gives up, the error could carry what the init and its children wait in (`/proc/<pid>/wchan`, or `stack` where it may read it). That is a change in tilo-sandbox, not in t. **10:44Z 11-17 (production f9cb88e3), one more case, and the node never names the job.** j599-8095 (`rpm-package-set`, a person's run rc9c23e4da2, width 2) was handed at 10:43:48Z and ended at 10:44:20Z: "the job did not start within 30s (besides 0.0s waiting for a CPU)". In the worker's log from 10:43:30Z to 10:44:40Z (2,050 lines) no line names the job or its run, and it has no directory under the node's jobs or scratch; its neighbours j599-8092, 8093, 8094, 8096, 8097 and 8098 launched in 0.3 to 0.9 s in the same seconds. The same check passed three times in the six hours before, in 8 s. The only job ended with cause `setup` in six hours. **14:05Z 11-17 (production 2868c3f2): six checks of one head told `error` in one burst of starts.** Head rcab9577d3e (asked 14:02:35Z) had 203 of its jobs started in the ten seconds from 14:04:40Z, beside 70 of people's: 273 starts in ten seconds. Six of them ended `error | setup` between 14:06:16Z and 14:06:33Z, each "the job did not start within 30s (besides 0.2 to 0.5s waiting for a CPU)": | job | check | width | |---|---|---| | j602-12246 | policy/unit/ui_build_inputs | 4 | | j602-12184 | policy/unit/android_mediation | 1 | | j602-12233 | policy/unit/workflow_actions | 1 | | j602-12349 | policy/unit/commit_hooks | 6 | | j602-12302 | policy/unit/ci_wasm_clippy_conf | 1 | | j602-12314 | policy/unit/component_manifest | 2 | None was asked again; the head stands at 571 passed, 2 failed, 6 errors. Of the same run's 203 jobs started in those ten seconds, 195 passed. What the node and the server say of that minute: - The worker's log from 14:03:30Z to 14:07:30Z (9,092 lines) names none of the six jobs, as at 10:44Z. - The server at 14:05:42Z: "degraded, so it gets no jobs: job j602-12184's processes are still in its cgroup 10 s after its kill (stuck in uninterruptible I/O), so its end waits for them"; healthy again 14:06:42Z. So the job did exist on the node, and what its set-up stood on was I/O it could not be interrupted in. - Of 320 jobs the node launched from 14:04:40Z to 14:06:20Z, 279 took under 5 s, 27 took 5 to 10 s, 9 took 10 to 20 s, 3 took 20 to 30 s and 2 took 30 s or more and still ran (72.2 s the longest); 21 had a launch step over 5 s (42.4 s the longest), 4 a network step over 5 s (29.8 s). In the half hour before, 2,513 jobs launched in 1.5 s at the median, 13.5 s at the 99th percentile, 24.5 s at most. - 95 "a job placed here waits ... every start under way" warnings from 14:05:07Z to 14:06:00Z. - The freer in the same minutes: 72 GB being freed at 14:05:02Z, 134 GB at 14:06:20Z, 138 GB at 14:06:51Z. The node's I/O pressure as its exporter counts it stayed under 1% until 14:06:30Z (5.4%), so whatever the six stood on does not show there. Seven jobs ended this way today in two runs (this head and the one of 10:44Z), one on 11-16, one on 11-13, nine on 11-11. It is rare, and when it comes it comes to a head as errors that are t's own. ## 19:58Z 11-17 (production 2885a521): it came again, with no burst of starts, and this time the stuck process was read Job j604-207 (a probe run's `tilo-sh-tools`, started 19:57:47Z) ended `error | setup` at 19:59:05Z: "start pasta: could not set up the job: the job did not start within 30s (besides 0.0s waiting for a CPU)". The server marked the node degraded at 19:58:37Z ("job j604-207's processes are still in its cgroup 10 s after its kill (stuck in uninterruptible I/O)") and healthy again at 19:59:17Z. Never asked again. The day's eighth such job. **No burst this time.** The node launched 10 jobs from 19:57:55Z to 19:58:35Z (4 in the ten seconds from 19:58:00Z); 273 in ten seconds at 14:06Z. Three other jobs launched in those seconds spent 14.3, 14.9 and 17.8 s in their network step alone. **The one process left in the job's cgroup three seconds after the server's line** (my capture, read on the node; `/proc/<pid>/stack`): ``` pid 3096047 comm=tilo-job-init state=D wchan=__flush_workqueue __flush_workqueue+0x208/0x500 generic_shutdown_super+0x3a/0x130 kill_anon_super+0x19/0xa0 fuse_kill_sb_anon+0x87/0xd0 deactivate_locked_super+0x3b/0x100 cleanup_mnt+0x13a/0x190 task_work_run+0x9d/0xd0 exit_to_user_mode_loop+0xca/0xf0 do_syscall_64+0x10d/0x1d0 ``` The job's init is exiting, its mount namespace goes with it, and shutting down the job's FUSE superblock flushes a kernel workqueue and waits there uninterruptibly. The node runs kernel 6.18.51-talos. The mount is t's own: each job has one, source `t-sources` at `/var/lib/t/jobs/<job>/sources` (read-only, served by the worker process itself, which holds `/dev/fuse` open once per job), so it is the job's view of its sources whose last reference the exiting init drops. **It was already happening before this job started.** A sampler of main threads' waits in the worker's container, every two seconds: four `tilo-job-init` processes stood in the same `__flush_workqueue` (same stack, pid 3077437 printed) in each of the six samples from 19:57:49Z to 19:58:00Z, and in no other sample of its two hours. After them: 46 and then 163 `wrapper` processes in `d_alloc_parallel` and `wrap_directory_iterator` at 19:58:19Z and 19:58:29Z, and at 19:58:42Z five `passt.avx2` in `tun_chr_close` and three in `rcu_barrier`. **Reading, and what is not shown.** Jobs that end tear down a FUSE mount, and that teardown can stand for ten seconds and more in a workqueue flush inside the kernel; while several stand there, other jobs' network helpers take 14 to 18 s to start and one passes tilo-sandbox's 30 s bound. Which workqueue it is I have not read: `generic_shutdown_super` flushes the queue that moves inodes between cgroups' writeback lists on every unmount while such moves are in flight (`cgroup_writeback_umount`: `rcu_barrier()`, then `flush_workqueue`), which would fit a node with a cgroup per job and the freer deleting tens of GB, and fit the helpers seen in `rcu_barrier`; that is a guess from the stack's shape, not a reading. Nor is it shown that the helper's start waits on the same flush. My capture and sampler now also record the kernel workers' stacks and the helper's stack at the next case. **What could be weighed now, none of it mine alone:** the 30 s bound is tilo-sandbox's and counts this wait as the job's failure; t tells such a job `error` and never asks again (`Cause::Setup => Rerun::No`), where one more attempt a minute later would pass; and a job's FUSE mount could be unmounted by the node before its init is killed, outside the path that holds the cgroup. ## 21:21Z 11-17: the ninth, and this time the 30 seconds themselves were read: one `mount` call of the job's init Job j604-16303 (a probe run's `test/tilo-server`, started 21:21:06Z) ended `error | setup` at 21:21:41Z: "could not set up the job: the job did not start within 30s (besides 0.0s waiting for a CPU)". No degraded node this time, and nothing else was slow: the node launched 30 jobs from 21:20:50Z to 21:21:50Z and every one took under 5 s (the slowest 1.3 s). My sampler (every two seconds, now also showing a single job-init) saw one `tilo-job-init`, pid 3274668, in the same kernel wait in all fifteen samples from 21:21:09Z to 21:21:39Z, the failed job's whole 30 seconds, and no other job-init in one wait for more than a sample since 20:14Z: ``` __flush_work+0x28d/0x310 evict+0x2be/0x330 __dentry_kill+0xaa/0x200 dput+0x4e/0x90 ovl_get_workdir+0x475/0x910 ovl_fill_super+0x1f1/0x560 get_tree_nodev+0x5a/0xa0 vfs_get_tree+0x28/0xe0 do_new_mount+0x17d/0x3d0 __se_sys_mount+0x176/0x1f0 ``` The job's init is mounting an overlay. Preparing the overlay's work directory drops a dentry, the inode behind it is evicted, and `evict` waits for a work item to finish. It waited until tilo-sandbox's 30 s were over. The pid cannot be tied to the job after the fact (its cgroup was gone when the server's line came), but the times are the job's. **Read with 19:58Z.** There the wait was in the shutdown of the job's sources mount (`generic_shutdown_super` flushing a workqueue); here it is in the mount of the job's overlay (`evict` flushing one work item). Both are a mount-table call of the job's init standing uninterruptibly on kernel work that belongs to an inode, on kernel 6.18.51-talos, on a node whose volume is under constant writeback and freeing. I have not read which work it is; an inode being moved between cgroups' writeback lists would fit both stacks, and it is still a guess. **What follows for t, to weigh:** a single hung mount call ends a job as t's error for good. One more attempt would have passed (30 other launches in the same minute took about a second), so asking a `setup` end again once is the cheapest relief, and it is your rule. The other is what the node hands the init: an overlay work directory that needs no cleaning at mount (never reused, or emptied by the node beforehand) would take `ovl_get_workdir`'s eviction off this path. ## 03:22Z to 03:30Z 11-18: eight minutes of it, five set-up failures and a stuck kill, the last four at a promote **What ended.** j606-11078 (`test-idle/tilo-ui`): at 03:23:43Z the server said the node was degraded because the job's processes were "still in its cgroup 10 s after its kill (stuck in uninterruptible I/O)", and at 03:24:55Z "the job did not start within 30s" on `start nft`. Then four jobs at once, handed about 03:28:50Z and failed 30 s later: j606-10861 `test-x86_64/tilolang-cli`, j606-11090 `test-idle/tilo-ui`, j606-11291 `test/tilo-workspace-agent` on `start nft`, and j606-10840 `test-x86_64/tilo-agent-session` on `start pasta`. The worker had them ended by 03:29:21Z and could not post their ends until the new server answered, which recorded all four at 03:29:48Z. **What the node showed** (my sampler, every two seconds in the worker's container): from 03:22:20Z to 03:30:30Z there was a `tilo-job-init` in an uninterruptible wait in nearly every ten-second span, one to three at a time, 192 of 207 samples in `__flush_workqueue`. The stack, 189 times: `__flush_workqueue <- generic_shutdown_super <- kill_anon_super <- fuse_kill_sb_anon`, the shutdown of a job's sources mount, as at 19:58Z on 11-17; then it lasted about ten seconds, now eight minutes. Others in the same window: `rcu_barrier <- netdev_run_todo <- tun_chr_close` (10 samples) and `synchronize_rcu_expedited <- kern_unmount_array <- ovl_free_fs` (8). My capture at 03:23:44Z has the stuck job's own init in that stack, and two more job-inits in it node-wide. **What coincided.** The last four fall into your promote of 7d7c6593: the old server pod, which runs on this node, was killed at about 03:28:40Z and the new one created at 03:29:27Z; the worker could not reach a server from 03:28:44Z to 03:29:44Z. The episode began six minutes before that, so the promote is not its cause, but every launch handed in the half minute after the kill stood its 30 s. The freer ran one pass a minute at 03:24Z and 03:25Z (96 and 65 GB by its count) and none after; I have nothing that explains the start at 03:22Z. **The cost, as the rule stands:** five checks ended as t's error and were not asked again (`Cause::Setup` is `Rerun::No`). The proposal above stands, and this adds a second measure of it: a set-up bound that every launch of half a minute hits at once is the node's state, not the jobs'. ## 11:54Z to 11:57Z 11-18 (production d748ed8d): 371 of people's jobs handed in one minute, every launch on the node slow, one set-up failure **What ended.** j611-20912 (`policy/unit/build_web_examples`, a person's job, session `claude:4a828a1b`): asked 11:54:56Z, held for a start for 73 s ("every start under way"), admitted 11:56:14Z, told at 11:56:54Z "the job did not start within 30s (besides 0.4s waiting for a CPU)", cause `setup`. It was the only job told so; my capture read the node 75 s after the line and found its cgroup gone. **The minute before it.** Jobs by the minute they were handed (`job_history`): | handed | people's jobs | median from handed to started | longest | CI's jobs handed | |---|---|---|---|---| | 11:52Z | 10 | 1.3 s | 2.2 s | 61 | | 11:53Z | 7 | 0.8 s | 1.5 s | 0 | | 11:54Z | 371 | 90.5 s | 160.8 s | 2 | | 11:55Z | 62 | 129.7 s | 153.9 s | 0 | | 11:56Z | 47 | 105.3 s | 120.2 s | 0 | | 11:57Z | 8 | 53.0 s | 53.3 s | 0 | Of the 483 handed from 11:53Z to 11:57Z, 295 are one session's (`claude:4a828a1b`); the next three have 68, 63 and 27. **What a launch took** (the worker's "a job launched" lines, `total_ms`): | launched in | jobs | under 1 s | 1 to 10 s | 10 to 30 s | over 30 s | longest | |---|---|---|---|---|---|---| | 11:53Z | 96 | 25 | 71 | 0 | 0 | 5.9 s | | 11:54Z | 81 | 17 | 50 | 14 | 0 | 26.4 s | | 11:55Z | 74 | 0 | 23 | 39 | 12 | 40.8 s | | 11:56Z | 147 | 0 | 142 | 5 | 0 | 19.9 s | | 11:57Z | 176 | 0 | 176 | 0 | 0 | 9.4 s | In the twelve launches over 30 s the time is in one step: `launch_ms` 32.7 s at the median, `net_ms` 2.2 s, every other step under 30 ms. The worker warned 368 times in these minutes that a job placed there waited because every start was under way. **What processes stood in** (my sampler in the worker's container, 11:53Z to 11:58Z, samples naming each): `tilo-job-init` in `__flush_work` 23, in `do_lock_mount` 19, in `clone_private_mount` 10; `tilo-session` in `__flush_workqueue` 24; `bash` and `bwrap` in `m_start` 26 and 15 (reading a mount table); `passt` in `kernel_clone` 15 and `rcu_barrier` 11; a compile's wrapper in `__fuse_simple_request` 13. So the launches wait on each other in the kernel's mount paths, as in the readings above, this time under load alone, with no promote and no kill. **Beside it.** Job directories on the node rose from 110 at 11:54:15Z to 460 at 11:55:44Z; free disk fell from 1,232 GB at 11:52Z to 1,004 GB at 12:00Z, the lowest of the day, with 220 to 280 directories in deletion from 11:57Z; the goal line at 12:00Z has 191 cores booked of 156 offered. CI was handed two jobs in four minutes (issue 97). **What it adds.** The bound on starts under way did its work as a queue: 371 jobs waited a minute and a half for a start and one failed. What is missing is that a launch behind many others is still given the same 30 s, counted from when it is admitted, while the kernel serves the mounts one after another: twelve launches passed 30 s and passed by luck of which step the bound covers. Either fewer starts at once when launches slow, measured by the launches' own times, or a set-up failure asked once more, as proposed above, would have kept this job. Yours to weigh; the session that sent the 295 is yours too. ## 12:53Z and 13:51Z 11-18 (production d748ed8d): the node degraded twice for seconds, neither a failed set-up The same server line ("processes are still in its cgroup 10 s after its kill") came twice more, each time for a job that had ended in the ordinary way. Neither is the unmount flush read on 11-17. | server's line | job | check | class | how it ended | read on the node | |---|---|---|---|---|---| | 12:53:24Z | j611-29150 | test/settings | ci | pass, 12:53:28Z | cgroup already gone; node-wide one `passt.avx2` in state D in `rcu_barrier`, under `netdev_run_todo` and `tun_chr_close`, in its exit | | 13:51:48Z | j611-38911 | test/tilo-server | people | cancelled, 13:51:57Z | one `rustc` left in the cgroup, its leader a zombie; my capture read no threads, so what the live thread stood in is not known | - The node's health series in Prometheus (`t_node_health`, 15 s steps) shows it not healthy in 3 of 1,931 samples since 08:20Z: 12:53:45Z, 13:52:00Z and 13:52:15Z. The cost today was seconds without starts, not minutes. - The first shape is a network helper closing its tap device and waiting for the kernel's RCU barrier. A job that passed took about 14 s to leave its cgroup after its kill. - My capture now reads every thread of a process left in the cgroup, so the next zombie leader names what its thread waits in. - The server pod's log on the node reaches back only about ten minutes (2,551 lines for the last four and a half hours at 16:20Z), so "healthy again" times for these two could not be read afterwards. ## 16:52Z to 16:55Z 11-18 (production d748ed8d): three more, and this time the samples name what a set-up stood in Three jobs ended `error | setup` ("the job did not start within 30s"), none asked again. Today's count is nine: five at 03:24Z to 03:29Z, one at 11:56Z, these three. | ended | job | check | class | |---|---|---|---| | 16:52:36Z | j611-58212 | test-x86_64/tilo-agent-session | people | | 16:54:06Z | j611-58386 | test/chat | probe | | 16:54:48Z | j611-58461 | test/tilo-app-launch | people | The node was degraded from 16:54:36Z to about 16:55:10Z for j611-58461's job-init, which would not die. At 16:54:52Z all 1,357 queued asks waited with kind `degraded` (people 327, ci 504, probe 526). **What ran in those minutes** | minute | jobs started (Prometheus) | launches in the worker's log | "every start under way" | |---|---|---|---| | 16:52 | 43 | 100 | 0 | | 16:53 | 588 | 197 | 153 | | 16:54 | 91 | 114 | 114 | | 16:55 | 220 | 175 | 76 | - The store's freer at 16:54:56Z: "the volume needs 248.5 GB more free", `freeing=290 GB`, available 1,128 GB against a keep line of 1,319 GB. - Booked cores stood at 266 to 331 of 157 offered, with 220 "placed without room" lines in the minute 16:54. **What stuck processes waited in.** Two-second samples of every process in state D on the node, 16:51:30Z to 16:56:00Z, against a quiet window, 16:30Z to 16:34Z. Counts are stacks holding the frame. | frame | burst | quiet | |---|---|---| | `evict` | 94 | 0 | | `__flush_work` | 159 | 0 | | `ovl_fill_super` (mount of an overlay) | 41 | 0 | | `ovl_get_workdir` | 39 | 0 | | `vfs_rmdir` with `ovl_destroy_inode` | 23 | 0 | | `xlog_cil_commit` | 58 | 0 | | `rcu_barrier` | 9 | 7 | The job-init of j611-58461, read in its cgroup while the node was degraded (the same process was seen node-wide 30 s earlier): ``` __flush_work evict __dentry_kill dput ovl_get_workdir ovl_fill_super get_tree_nodev vfs_get_tree do_new_mount __se_sys_mount ``` So the set-up stands in the mount of the job's overlay. The mount clears its work directory, drops the last reference to an inode on the store's XFS, and `evict` waits for a work item to finish. Removing a directory of an overlay waits the same way. On 11-17 it was the unmount side (`generic_shutdown_super`, `__flush_workqueue`). **Read, and not read** - Read: the stacks and counts above, the freer's line, kernel 6.18.51-talos, XFS with project quota on `/dev/nvme0n1p5`. - Not read: which work `evict` flushes. The frames between are inlined. From the kernel source as I remember it, this is XFS's deferred inode clean-up: `xfs_inodegc_queue` makes the caller flush its per-CPU worker when the backlog is long. That would tie the wait to how many inodes the node is deleting at once, which here is the freer's 290 GB and the ended jobs' directories. I have not seen that worker's stack. My capture now looks for it. **What this would mean for a fix.** The set-up's 30 s is spent waiting for the filesystem to clean up after deletions the node itself makes in the same seconds. The invariant would be: a job's set-up never waits on the node's own deleting. Three places could hold it: the freer's pace, the removal of ended jobs' directories, or the work directory the mount clears. The freer and the start path are yours, so I commission nothing. Say which you would take, or whether you read the wait differently. ## 18:15:46Z 11-18 (production 31934c00): the tenth today, with no burst of starts, while directories were being removed Job j612-8886 (`test/tilo-desktop-surface`, people's, run r80bf4ec902) ended `error | setup`: "the job did not start within 30s (besides 0.3s waiting for a CPU)". My capture found its cgroup gone 16 s later. The two-second samples of stuck processes hold the minute: | frames in stacks, state D | 18:14:50Z to 18:16:00Z | quiet, 18:00:00Z to 18:01:10Z | |---|---|---| | `__flush_work` | 44 | 0 | | `evict` | 17 | 0 | | `xlog_cil_commit` | 10 | 2 | | `ovl_fill_super` with `do_new_mount` | 7 | 4 | | `rcu_barrier` | 8 | 1 | | stuck, by command and what it waits in (sample counts) | 18:14:50Z to 18:16:00Z | |---|---| | `rm` in `do_rmdir` | 253 | | `rm` in `__flush_work` | 195 | | `tilo-job-init` in `do_lock_mount` | 35 | | `tilo-job-init` in `__flush_work` | 26 | - In the quiet minute no `rm` and no job-init shows in the top eight; the stuck processes there are compilers reading directories. - The node launched 48, 93 and 75 jobs in the minutes 18:14Z to 18:16Z, and the worker logged no "every start under way". The node deleted 269 GB in the minute 18:15Z. - So again a job's set-up stood while inodes were being dropped on the same filesystem, this time by `rm` processes removing directories, and job-inits waited both for the mount lock and in the same flush. - Not read: whose `rm` these are. I look for them on the node. - The three failures of 16:52Z to 16:54Z were checked against the job rows at 18:08Z: no job of the same run and check started after them. This one is too young to say. **18:21Z, whose `rm`: not t's.** On 31934c00 nothing under `src` or `crates` starts a program named `rm`; the node removes directories with `remove_dir_all` in its own threads. So the `rm` processes of 18:15Z are commands of the jobs themselves. - The minute's rows name 20 distinct `rm` pids, waiting in `do_rmdir`, `__flush_work` and `xfs_trans_dqresv`. - `rm` rows in my samples since 17:42Z, by minute: 17:58Z 31, 17:59Z 3, 18:02Z 6, 18:09Z 32, 18:10Z 14, 18:11Z 7, 18:14Z 8, 18:15Z 471, 18:18Z 165, 18:19Z 177. - So a check that removes a large tree with `rm` can hold other jobs' set-up on this filesystem, as the node's own deleting can. Which check it is I have not read yet; a catcher on the node is looking for the next one and its job. **18:44Z: the `rm` processes caught, and a correction to how I ruled t out.** Caught on the node between 18:25Z and 18:42Z, each in state D in `__flush_work`, each a child of `bash`: | at | job | check | class | session | |---|---|---|---|---| | 18:25:21Z | j612-9397 | test/tilo-app | people | claude:438d01c5 | | 18:41:49Z | j612-10724 | test/tilo-desktop-surface | people | claude:40f3c876 | | 18:42:15Z | j612-10725 | test/tilo-desktop-surface | people | claude:40f3c876 | | 18:42:15Z | j612-10661 | `cargo test -p canvas --test it …` | people | claude:72447be4 | - So they are test jobs of people's sessions: a test, or a script a test starts, removes a tree with `rm` and waits for the filesystem like everything else that drops inodes there. The jobs are short, 18 to 27 seconds for the three that have ended. - **Correction of my evidence, not of the conclusion:** my search of t's source at 18:21Z used a word-boundary pattern that this machine's regex does not know, so it could match nothing. Searched properly, t does write `rm` into job scripts: `rm -f` of single list files in a build job (`src/drivers/cargo/exec/build.rs`), and `rm -rf` in the capture a micro-VM step runs inside its guest (`src/node/setup.rs:128`). Neither is a host process under `bash` in a test job's cgroup, which is what was caught. - Tilo's own `t.toml` has `rm -rf` in several checks' `run` lines (screenshots, mounted-resource recovery), none of them these three checks; `.config/nextest.toml` has none. Where in these tests the `rm` comes from I have not read. - What this adds to the question above: the set-up of one job can be held by any job's deleting on the shared filesystem, not only by the node's own. **18:45Z, read in the job rows:** no job of run r80bf4ec902's `test/tilo-desktop-surface` has started since its set-up failure at 18:15:46Z, twenty-nine minutes on. So this one too was not asked again, unlike the jobs that ended at their disk limit in the same hour, which t ran again (issue 107). No other job has ended for a cause of t's own since 18:16Z. ## 19:11:31Z 11-18: the eleventh today, in the minutes the delete queue stood at a thousand trees Job j612-14802 (`test/tilo-server`, people's, run rc5076a34f4): "the job did not start within 30s (besides 0.1s waiting for a CPU)". The capture found its cgroup gone a minute later. The two-second samples: | stuck, by command and what it waits in (sample counts) | 19:10:30Z to 19:11:40Z | steady, 18:45:00Z to 18:46:10Z | |---|---|---| | `rm` in `do_rmdir` | 85 | 0 | | `rm` in `__flush_work` | 59 | 0 | | `tilo-job-init` in `__flush_work` | 18 | 0 | | `tilo-job-init` in `synchronize_rcu_expedited` | 15 | 0 | | frames `__flush_work` / `evict` / `do_rmdir` in stacks | 38 / 17 / 13 | 0 / 0 / 0 | - The node's own delete queue held 826 to 1,074 trees from 19:10Z to 19:13Z and free disk was falling (issue 107's second fall). Launches ran at 142, 67 and 210 a minute with no "every start under way". - So three of today's eleven now have samples, 16:52Z, 18:15Z and 19:11Z, and all three show the same thing: job-inits waiting in the filesystem's flush while inodes are being dropped beside them, by the node's deleter, by jobs' `rm`, or both. **19:35:22Z: the twelfth today.** Job j612-17181 (`test-x86_64/tilolang-tilo`, people's, run re0e0d49b05), "did not start within 30s"; cgroup gone when the capture looked. Samples from 19:34:20Z to 19:35:30Z: frames `__flush_work` 35, `evict` 19, `ovl_fill_super` with `ovl_get_workdir` and `do_new_mount` 13 each, `do_lock_mount` 7, `do_rmdir` 5; `tilo-job-init` 17 samples in `do_lock_mount` and 17 in `__flush_work`, `rm` 10 in `__flush_work`. The node launched 105 jobs in the minute 19:34Z with no "every start under way"; its delete queue held 300 to 465 trees and free disk was steady near 825 GB. Four of today's twelve now have samples, and all four show job-inits in the overlay mount's flush. ## 20:23:23Z 11-18: the thirteenth today, while the delete queue grew - j613-4622, `test/tilo-workspace-service`, people's, run rde34ec489f: asked 20:14:00Z, started 20:19:23Z by its row, told `setup` at 20:23:23Z ("the job did not start within 30s (besides 0.3s waiting for a CPU)"). - My capture came after its cgroup was gone. The one job-init not idle on the node then was exiting (`do_exit > free_nsproxy > namespace_unlock > synchronize_rcu_expedited`). What this job waited in is not read. - The node around it: 1,665 of people's jobs started in the 15 minutes to 20:28Z. The delete queue grew from 0 trees at 20:17Z to 875 at 20:25Z and 1,942 at 20:31Z, while the node deleted 1 to 84 GB a minute (475 GB a minute at 20:13Z). At 20:31Z 12 to 15 of the 16 deleter threads waited in `__flush_work`, the freer's thread too. Free disk fell from 637 GB to 428 GB (issue 107).
xemmerling changed title from node/start: a job's set-up stood 30 s on something other than a CPU and was told setup, never run again; launches of 23 to 46 s follow in the same minute to node/start: a job's set-up stood 30 s on something other than a CPU and was told setup, never run again; what it waited on is not named yet 2026-11-16 06:10:14 +00:00
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#84
No description provided.