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
No Branch/Tag specified
main
sim/session-home
speed/session-home-main
overbook-reland
overbook-demand
speed/sources
speed/end-cost
speed/session-home
speed/storage
speed/delivery
overbook
roots-hotfix
privileged-vm
image-store
sandbox-bump
found-by-package
mac-node
dev/schema-step-order
t-join-release
t-work-booking
t-ahead-deadlock-wip
t-hotfix-9ae
t-width-work
t-id-token-renew
t-claim-unkept
t-resume-live
t-run-record
t-all-lockfiles
t-relay-offset
t-blame-event
t-freer-links
t-load-tests
t-jobserver2
t-starved-timeout
t-client-pack
t-offline-config
t-test-plan
t-told-resume2
t-jobserver
t-told-resume
t-outbound2
t-crash-open-bench
t-told-once
guest-never-below-given
admit-page-cache-active
pooled-admission
driver-give-back
no-sizes
one-driver-per-check
archive/vm-root-share
archive/build-out-kept
archive/cargo-perf
archive/virtiofs-readdir-alloc
archive/vm-outputs-stream
archive/stable-verify-priority
archive/agents-1
archive/stack-parallel
archive/cpu-admission
archive/narrow-from-every-log
archive/old-t
archive/worker-store-gc
archive/failing-builds-kept
archive/vm-cargo-home
archive/lifecycle
archive/bench-own-cores
archive/place-test-binaries-nocopy
archive/vm-net-upload-stall
archive/booking-current-use
archive/archive-dep-out-dirs
archive/any-arch-shards
archive/prepare-stall-progress-ns20
archive/s2
archive/next-set-20
archive/store-full-waits
archive/fetch-caps-by-node
archive/vm-step-phases
archive/arm-only-for-arm
archive/deploy-all-workers
archive/lifecycle-staging
archive/lifecycle-1-wire
archive/fast-gate
archive/cargo-key-narrow
archive/log-leads-followup
archive/gate-limit
archive/prepare-stall-vm-bytes
archive/lifecycle-2-ends
archive/cache-hits-bind
archive/failing-reused
archive/oci-archive-direct
archive/prepare-stall-progress
archive/test-quarantine
archive/crash-safe-on-18
archive/build-script-etxtbsy
archive/old-release
archive/next-set-19c
archive/wait-reasons
archive/cache-put-best-effort
archive/hang-not-t-time
archive/shard-test-results
archive/vm-carry-on-17
archive/check-test-filter
archive/artifact-path-beneath
archive/stall-room-xfs
archive/build-dir-no-recopy
archive/cache-hits-link
archive/outputs-no-follow-on-copy
archive/outputs-no-follow
archive/next-set-19
archive/hang-detect
archive/stable-verify-stable-plan
archive/freer-target-only
archive/lease-pricing-narrow
archive/vm-outputs-once
archive/queue-place-starved
archive/publish-reads
archive/disk-warning-scratch
archive/outputs-no-copy
archive/wd-probe-3min
archive/watchdog-on-d65
archive/log-leads-with-excerpt
archive/queue-place
archive/prep-watchdog-progress
archive/cache-put-stack-room
archive/cache-put-stack
archive/place-by-pace
archive/nested-sync-helper
archive/next-set-18y
archive/archive-bins-by-env-19
archive/next-set-18
archive/disk-want-held
archive/young-booking-back
archive/flaky-tests-1027b
archive/next-set-17
archive/prep-start-at-close
archive/unpack-error-on-17
archive/server-memory-high
archive/vm-start-held
archive/vm-carry-on-14
archive/space-trim-registry-room
archive/file-cache-ns16
archive/unpack-error-final
archive/crash-safe-worker
archive/server-space-trim
archive/status-big-runs
archive/nested-tmp-volatile
archive/publish-refresh
archive/gc-cache-quiet-reads
archive/next-set-16
archive/vm14-proof
archive/csw-node-kill
archive/unpack-link
archive/vm-tests-15
archive/seccomp-allow-field
archive/flaky-tests-1027-ns15
archive/shard-fail-fast
archive/server-node-check
archive/live-log-restart
archive/unpack-no-orphans
archive/flaky-tests-1027
archive/fetch-share-images
archive/fetch-images-red4
archive/forget-cached
archive/put-file-once-ns15
archive/recheck-rank-15
archive/fetch-images-red3
archive/unpack-no-orphans-red2
archive/fetch-io-pass-followups
archive/sandbox-no-fallback-ns15
archive/unpack-no-orphans-red
archive/archive-bins-by-env-ns15
archive/ns15-proof
archive/next-set-15
archive/archive-bins-by-env
archive/vm-guest-panic-15
archive/sandbox-no-fallback
archive/recheck-rank
archive/placement-ahead-bound
archive/carry-keeps-listing
archive/registry-parallel-pull
archive/sandbox-tests-15
archive/attempt-log-live-15
archive/follow-progress-16
archive/follow-progress-15
archive/ns15-archive-base
archive/fetch-io-max-on-13
archive/fetch-images-red2
archive/transient-build-fail-15
archive/test-ended-early-15
archive/archive-keep-cleanup
archive/main-merge-14
archive/sandbox-clone3-fallback
archive/vm-carry-on-13
archive/fetch-io-sweep-15
archive/vm-root-disk-fixes
archive/vm-guest-panic
archive/follow-progress-14
archive/archive-keep-on-demand
archive/vm-exit-unseen
archive/file-cache-share
archive/bwrap-root-userns
archive/transient-build-fail
archive/fetch-io-max
archive/file-cache-guard-11
archive/fetch-io-sweep
archive/archive-build-dir-skip
archive/next-set-14
archive/wrapper-one-read
archive/archive-tmp-links
archive/attempt-log-live
archive/fetch-share-and-order
archive/vm-hang-io-wait
archive/vm-carry-fixes
archive/image-cancel
archive/test-ended-early
archive/sim-on-train3-bundle
archive/hits-layer-wip
archive/t-old-putfile
archive/archive-links
archive/stall-on-13
archive/carried-prep-completes
archive/put-file-once
archive/preview-14
archive/follow-progress
archive/gc-reads-dont-protect
archive/admission-replay-people
archive/people-pickup
archive/gc-pass-visible
archive/hits-layer
archive/own-build-priced
archive/compact-stamps-followup
archive/prepare-timing
archive/sim-on-train3
archive/next-set-13
archive/next-set-12b
archive/sim-on-next-set-12
archive/deploy-doc-no-kill
archive/next-set-12
archive/attempt-logs-real
archive/sim-tests-green
archive/shard-label-index
archive/young-booking
archive/next-set-11
archive/data-dir-config-env
archive/vm-sync-not-host-store
archive/attempt-logs
archive/wrapper-ro
archive/tests-wait-on-events
archive/blame-git-optional-needs
archive/job-file-headroom-impl
archive/next-set-10
archive/blame-verdict-fresh-parent
archive/compact-touched-stamps
archive/interactive-incremental-off
archive/follow-lost-lines-counted
archive/evict-test
archive/next-set-trial
archive/keys-cover-output-bytes
archive/file-cache-guard
archive/blame-after-parent
archive/test-filter-matching-nothing-fails
archive/s1-on-d96
archive/draining-node-queues
archive/tprev-checks-prod-next
archive/s1-dead
archive/follow-live-run
archive/guard-stopped-setup-text
archive/io-error-cause
archive/source-layer-whole
archive/clippy-groups
archive/worker-silence-grace
archive/price-touched
archive/prod-next
archive/batch1
archive/s1-on-prod-next
archive/vmcache/sandbox-copyup-pin
archive/s1-xfs-store
archive/warm-script-builds
archive/vmcache/setup-tag-digest
archive/vmcache/setup-should-fixes
archive/vmcache/setup-any-arch
archive/guard-livelock
archive/host-budget
archive/wire-format-test
archive/admission-replay
archive/switch-safe
archive/stall-window
archive/upgrade-carries-preparing
archive/static-init
archive/switch-proof-b
archive/carry-tokens
archive/seals-together
archive/switch-safe-storage
archive/switch-safe-worker
archive/batch-b-prev
archive/vmcache/batch-b
archive/carry-vm-helpers
archive/small-llvm-args-failed-log
archive/batch-a
archive/stall-hotfix
archive/prev-pacing
archive/u-try-wip
archive/u-try
archive/u-try-wip2
archive/flatten-verify
archive/poll-free
archive/flatten-tiers
archive/hotfix-cross
archive/pool-stall
archive/disk-pacing
archive/u-builds-from-graph
archive/mac-idle
archive/ship-direct
archive/vmcache/shards
archive/soft-margin
archive/behind-no-target
archive/filtered-binaries
archive/vmcache/setup-layers
archive/direct-off-prev
archive/probe-budget
archive/vm-helper-exit
archive/jobs-soft-bound
archive/vmcache/vm-disks
archive/vmcache/failure-outputs
archive/narrowed-not-verdict
archive/scratch-direct-off
archive/handover-holds
archive/memory-lines
archive/drain-destroys
archive/pool-size
archive/drain-own-frees
archive/test-schema-drop
archive/deploy-disk
archive/deploy-disk-lines
archive/clone-aware-freeing
archive/absolute-headroom
archive/zfs-pool-size
archive/u-int5
archive/u-load
archive/u-warn
archive/u-steer
archive/revert-stall-once
archive/guard-headroom
archive/u-int3
archive/u-readsets
archive/u-hermetic
archive/mem-virtio
archive/u-buildjobs
archive/u-waits
archive/u-three
archive/u-zfs-stall
archive/u-config
archive/u-lean
archive/u-e2e
archive/u-integrate2
archive/u-jobenv
archive/u-cache-blobs
archive/u-observe2
archive/u-sched-nospread
archive/u-node-bound
archive/u-sched-oom
archive/u-review-store
archive/u-observe
archive/u-review-engine
archive/u-review-srv
archive/u-review-node
archive/u-review-sched
archive/preempt-measured
archive/u-integrate
archive/u-eng
archive/lock-off-runtime
archive/u-vm
archive/u-gone
archive/u-offline
archive/ready-starve
archive/u-notices
archive/heads-never-superseded
archive/u-learn
archive/int
archive/u-graph
archive/u-umount
archive/supersede-followed
archive/preparing-booking
archive/u-xdev
archive/u-env
archive/u-poll
archive/u-wrap
archive/u-room
archive/u-wrap-try
archive/u-fixed
archive/unstall
archive/u-fix3
archive/u-cwd
archive/resume-supersedes
archive/server-heap
archive/u-harness
archive/u-macos
archive/u-node
archive/u-eng2
archive/u-leader
archive/u-cutover
archive/u-cache
archive/u-sched
archive/u-engine
archive/chore/agpl-license
archive/note-x86-disk-room
archive/pass-cost
archive/prod-defects
archive/clippy-false-greens
archive/t-pace-variance-prototype
archive/outputs-reattach
archive/fix-retry-needs
archive/no-supersede-uncached
archive/fix/promoted-view-mtime
archive/rb-merge
archive/ft-sched
archive/ft-node
archive/ft-engine
archive/fx-sim
archive/fx2-mem
archive/fx2-store
archive/fx2-ci
archive/fx-work
archive/fx-ci
archive/fx-sched
archive/fx-req
archive/fx-store
archive/fx-cache
archive/rb-storage
archive/rb-scheduling
archive/rb-sweep
archive/rb-tracking
archive/rb-workers
archive/rb-client
archive/rb-profiles
archive/rebuild
archive/batch-deploy
archive/fix-roll
archive/work
archive/fix-busy
archive/fix-perf
archive/fix-suite
archive/fix-spread
archive/fix-sig
archive/fix-wait
archive/fix-init
archive/sizing
archive/fix-drift
archive/delivery
archive/fix-snap
archive/fix-own
archive/fix-rollout
archive/fix-hang
archive/fix-tree
archive/images
archive/fill
archive/sched-gate-preparing-after
archive/takeover-sim
archive/image-d244b22
archive/image-ce8a09e
archive/image-c9ff4f7
archive/image-489bec9
archive/image-7e07ffb
archive/image-583ea93
archive/image-8e1cd2c
archive/image-fbf0a9c
archive/image-6924e11
archive/image-29cabc3
archive/image-97ebb0e
archive/image-d0e23ac
archive/image-319fce9
archive/image-4f689e1
archive/image-feacbcd
archive/image-d5d9446
archive/image-6b86940
archive/fix/dedup-priority-promotion
archive/image-a5b0fe3
archive/image-462afb1
archive/image-f39d42c
archive/image-6e71fb4
archive/image-0c62329
archive/resources
archive/image-112b6a6
archive/image-8b06530
archive/image-5ae7cd8
archive/fmt-fix-in-t-toml
archive/image-arm64
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_coverageof head runr11568420cc, jobj583-1414: asked 05:10:21Z, started 05:14:57Z, ended 05:15:28Z aserror | setup:The check takes 1.5 s in other runs (three passes in the three hours before). A
setupend 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_bytesincrates/platform/tilo-sandbox/src/job/linux/runner.rs:1171-1190waits for the init's report forSETUP_TIMEOUT(30 s), not counting the time the init and its children stood ready to run or their cgroup'scpu.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 (noa 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 launchedanda job ended on its node):t::store::snapshots: flattened a session's build … bytes=13814296998 secs=15.09ended at 05:15:28.9Z, so it ran from 05:15:13.8Z.launchstep (the sandbox's process started, its mounts made in it). Twelve slowest:launch_ms23,632 to 43,512,net_ms166 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 launchedlines of the last eight hours:Launching takes 4,000 to 12,000 s an hour in all, about half of it in the
launchstep and half innetin quiet hours; in the hours with stalls thelaunchstep carries the rise.Questions
Lostjob's is. Should such an end be run again once instead of being told to the head as an error? The rule inattempt.rsis 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:m_startoffs/namespace.c(the symbol sits besideclone_mntin the node'skallsyms): reading/proc/<pid>/mountsormountinfowhile 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.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_ioctlandkernel_clonein 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_bytesgives up, the error could carry what the init and its children wait in (/proc/<pid>/wchan, orstackwhere 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 causesetupin six hours.14:05Z 11-17 (production
2868c3f2): six checks of one head tolderrorin 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 endederror | setupbetween 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)":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:
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 readJob j604-207 (a probe run's
tilo-sh-tools, started 19:57:47Z) endederror | setupat 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):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-sourcesat/var/lib/t/jobs/<job>/sources(read-only, served by the worker process itself, which holds/dev/fuseopen 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-initprocesses 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 163wrapperprocesses ind_alloc_parallelandwrap_directory_iteratorat 19:58:19Z and 19:58:29Z, and at 19:58:42Z fivepasst.avx2intun_chr_closeand three inrcu_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_superflushes the queue that moves inodes between cgroups' writeback lists on every unmount while such moves are in flight (cgroup_writeback_umount:rcu_barrier(), thenflush_workqueue), which would fit a node with a cgroup per job and the freer deleting tens of GB, and fit the helpers seen inrcu_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
errorand 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
mountcall of the job's initJob j604-16303 (a probe run's
test/tilo-server, started 21:21:06Z) endederror | setupat 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:The job's init is mounting an overlay. Preparing the overlay's work directory drops a dentry, the inode behind it is evicted, and
evictwaits 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_superflushing a workqueue); here it is in the mount of the job's overlay (evictflushing 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
setupend 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 takeovl_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" onstart nft. Then four jobs at once, handed about 03:28:50Z and failed 30 s later: j606-10861test-x86_64/tilolang-cli, j606-11090test-idle/tilo-ui, j606-11291test/tilo-workspace-agentonstart nft, and j606-10840test-x86_64/tilo-agent-sessiononstart 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-initin 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) andsynchronize_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::SetupisRerun::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 failureWhat ended. j611-20912 (
policy/unit/build_web_examples, a person's job, sessionclaude: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)", causesetup. 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):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):In the twelve launches over 30 s the time is in one step:
launch_ms32.7 s at the median,net_ms2.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-initin__flush_work23, indo_lock_mount19, inclone_private_mount10;tilo-sessionin__flush_workqueue24;bashandbwrapinm_start26 and 15 (reading a mount table);passtinkernel_clone15 andrcu_barrier11; a compile's wrapper in__fuse_simple_request13. 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-upThe 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.
passt.avx2in state D inrcu_barrier, undernetdev_run_todoandtun_chr_close, in its exitrustcleft in the cgroup, its leader a zombie; my capture read no threads, so what the live thread stood in is not knownt_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.16:52Z to 16:55Z 11-18 (production
d748ed8d): three more, and this time the samples name what a set-up stood inThree 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.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
freeing=290 GB, available 1,128 GB against a keep line of 1,319 GB.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.
evict__flush_workovl_fill_super(mount of an overlay)ovl_get_workdirvfs_rmdirwithovl_destroy_inodexlog_cil_commitrcu_barrierThe job-init of j611-58461, read in its cgroup while the node was degraded (the same process was seen node-wide 30 s earlier):
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
evictwaits 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
/dev/nvme0n1p5.evictflushes. The frames between are inlined. From the kernel source as I remember it, this is XFS's deferred inode clean-up:xfs_inodegc_queuemakes 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 removedJob j612-8886 (
test/tilo-desktop-surface, people's, run r80bf4ec902) endederror | 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:__flush_workevictxlog_cil_commitovl_fill_superwithdo_new_mountrcu_barrierrmindo_rmdirrmin__flush_worktilo-job-initindo_lock_mounttilo-job-initin__flush_workrmand no job-init shows in the top eight; the stuck processes there are compilers reading directories.rmprocesses removing directories, and job-inits waited both for the mount lock and in the same flush.rmthese are. I look for them on the node.18:21Z, whose
rm: not t's. On31934c00nothing undersrcorcratesstarts a program namedrm; the node removes directories withremove_dir_allin its own threads. So thermprocesses of 18:15Z are commands of the jobs themselves.rmpids, waiting indo_rmdir,__flush_workandxfs_trans_dqresv.rmrows 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.rmcan 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
rmprocesses 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 ofbash:cargo test -p canvas --test it …rmand 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.rminto job scripts:rm -fof single list files in a build job (src/drivers/cargo/exec/build.rs), andrm -rfin the capture a micro-VM step runs inside its guest (src/node/setup.rs:128). Neither is a host process underbashin a test job's cgroup, which is what was caught.t.tomlhasrm -rfin several checks'runlines (screenshots, mounted-resource recovery), none of them these three checks;.config/nextest.tomlhas none. Where in these tests thermcomes from I have not read.18:45Z, read in the job rows: no job of run r80bf4ec902's
test/tilo-desktop-surfacehas 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:rmindo_rmdirrmin__flush_worktilo-job-initin__flush_worktilo-job-initinsynchronize_rcu_expedited__flush_work/evict/do_rmdirin stacksrm, 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_work35,evict19,ovl_fill_superwithovl_get_workdiranddo_new_mount13 each,do_lock_mount7,do_rmdir5;tilo-job-init17 samples indo_lock_mountand 17 in__flush_work,rm10 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
test/tilo-workspace-service, people's, run rde34ec489f: asked 20:14:00Z, started 20:19:23Z by its row, toldsetupat 20:23:23Z ("the job did not start within 30s (besides 0.3s waiting for a CPU)").do_exit > free_nsproxy > namespace_unlock > synchronize_rcu_expedited). What this job waited in is not read.__flush_work, the freer's thread too. Free disk fell from 637 GB to 428 GB (issue 107).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 minuteto 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