server: memory follows the open runs (about 74 MB a run, 3 GB an hour): the container is at its 64 GiB limit and anonymous memory reaches it in about eight hours #69
Open
opened 2026-11-14 03:17:11 +00:00 by xemmerling
·
0 comments
No Branch/Tag specified
main
sched/probe-floor
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#69
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?
The production server's memory grows by about 3 GB an hour and it follows the number of open runs, not the read sets. Its container is already at its 64 GiB limit through file cache, and anonymous memory alone reaches that limit in about eight hours at the present rate. Nothing is failing yet. Read 03:16Z 11-14 on
c2d52b34(server pod started 00:22Z).The container (cgroup, one line a minute)
The first quarter hour is the restore of every open run. After it: 9.6 GB in 2 h 36 min. It reaches the limit more often as it goes: about 150 times per quarter hour early, 430 to 670 now.
What grows (the server's own "what the server holds" line)
known_readsfell between 01:42Z and 02:42Z while resident memory rose 3.4 GB.What the open runs are (03:16Z,
t.runswith no end)probestarts almost nothing (14 probe jobs ended in six hours, 937 waiting).t.jobsholds 56 rows for open runs while the server counts 58,835 jobs waiting.Why I change nothing
Related: #48 (claims held by runs that never finish), #53 (the scheduler's pass over the same queue, past 5 s since 02:47Z).
03:27Z: the cluster's own measure of the server pod (
kubectl top, its working set) passed 45 GiB: 45,019 MiB at 03:26:58Z, of a 64 GiB limit. No restart: the pod is the one started at 00:22:16Z with 0 container restarts, and the server answers.A restart does not empty it (promote of
618f31ea, 04:39Z 11-14)Three starts side by side (08:00Z 11-14)
Anonymous memory in GB by minutes since the server started:
c2d52b34, started 00:22Z618f31ea, started 04:39Z67588367, started 06:21Zacae515a, in67588367) changed neither the level nor the growth in its first 97 minutes.c6dca088holds more at the same age, with the same runs (09:31Z 11-14)Anonymous memory in GB by minutes since the server started:
c2d52b34, started 00:22Z618f31ea, started 04:39Z67588367, started 06:21Zc6dca088, started 08:56ZThe servers' own holdings line about thirty minutes after each start:
618f31ea67588367c6dca088c6dca088holds about 10% more resident and 18% more committed memory at the same age. Its runs, checks, claims, waiters and listeners are within a few percent of the builds before it.lookup_entries, which had already grown on67588367. So the line does not say where the extra 3 to 4 GB sit.c6dca088changes what a waiter keeps between reads; that state has no count in the line.One hour on
c6dca088(10:00Z): 45.7 GB anonymous, against 39.2, 42.0 and 39.6 GB at one hour forc2d52b34,618f31eaand67588367. From 30 to 60 minutes it grew 1.4 GB, about 2.8 GB an hour, as the builds before it did. So the extra 4 to 6 GB is a level set at the takeover, not faster growth.2026-11-14 16:10Z: a constant 41 to 42 MB an open run through six server starts; the backlog is what grows it
From the server's own line ("what the server holds") and its container's
memory.stat, for each of today's server pods:A restart gives nothing back: each start is at 40 to 48 GB again within ten minutes. What moves the figure is the count of open runs, about 14 more an hour today as head runs arrive faster than they finish (#74). Anonymous memory was 49.0 GB at 16:08Z under a 64 GiB limit, the container itself at the limit with file cache (
memory.eventsmax rising about 50 a minute, memory stalls about 0.1 s a minute). At 14 runs an hour that is roughly 0.6 GB an hour, so about a day of room if the backlog keeps growing as today, less with the two to three GB a start adds at its peak.18:21Z: under the 17:09Z server (
b087f0ab), 70 minutes up, resident reached 48.25 GB (committed 60.7 GB) with 1,133 open runs, the day's highest; it rose about 1 GB in twenty minutes while open runs fell from 1,146 to 1,133, so there is growth with uptime on top of the 41 to 43 MB a run. Container: anon by minutes of uptime: +10 47.5, +20 48.7, +30 49.1, +40 49.4, +50 49.4, +60 49.9, +70 50.4; last 50.4 GB; over the last 30 min +1.0 GB, over the last 60 min +2.9 GB. Limit 64 GiB.2026-11-14 18:22Z: what grows with uptime is not the read sets
The server's own line ("what the server holds"), from its second reading after a start to its last, for four of today's servers:
Under the current server (17:09Z, 65 minutes between the readings) open runs went 1,137 to 1,133 and known read sets FELL (2,646,709 to 2,558,243, the bound of
c9a90033at work), while resident rose 6.7 GB. What rose with it: unit graphs kept (508 to 799 graphs, 1.47 M to 2.09 M graph units), claims (keys +53,000, waiters +66,000, listeners +66,000) and tasks (214,047 to 239,229). Read with the table, most of that rise is the refill after a restart: the two afternoon servers were read while still filling (graph units 0.90 M and 1.47 M at the second reading) and end near the 2.0 to 2.1 M the morning's reached. The drift proper shows in the two long-lived morning servers: graph units +6.5% and +7.6%, claim keys +5.6% and +6.3%, tasks +6.5% and +6.9% in 100 to 110 minutes, with open runs +2.3%. Resident at each server's last reading is 41 to 43 MB an open run throughout. So: memory is set by open runs; graphs, claims and tasks drift a few percent an hour beyond them; read sets do not grow. Anonymous memory by minutes of uptime under this server: +10 47.5, +20 48.7, +30 49.1, +40 49.4, +50 49.4, +60 49.9, +70 50.4 GB; about 2 GB an hour now, nine hours of room under the 64 GiB limit if nothing restarts it.2026-11-15 03:50Z: the same server with 170 open runs instead of 1,130: about 30 to 35 MB a run on a base, and memory that only half comes back
Between 23:26Z and 23:34Z on 11-14 someone stopped 567 head runs and 535 other runs through the API (not me; see #74), and at 00:06Z I promoted
22b5bc22(#77). So for the first time there are readings of this server with few runs open.Three things follow.
The "41 to 43 MB an open run" above was a ratio at one size, not a slope. At the same age, 15 to 20 minutes: 12.2 GB at 164 runs against 43.7 to 46.5 GB at about 1,125, which is about 35 MB a run on a base of about 6 GB. Settled, after an hour or more: 20 GB at about 170 runs against 47.5 to 49.5 GB at about 1,130, which is about 30 MB a run on a base of about 15 GB. Two sizes cannot say more than that; either way it is not 41 to 43 MB times the runs (resident a run here is 74 MB at 00:26Z and 113 MB at 03:41Z).
The drift is smaller with fewer runs open, about in proportion. Anonymous memory of this pod each half hour from 00:20Z: 12.5, 17.9, 20.4, 20.3, 20.2 GB, then 21.2 GB at 03:20Z: level within 1 GB for two hours after the first 75 minutes, against about 2 GB an hour with 1,130 runs open.
What the server lets go of does not come back to the container. On this pod from 01:26Z to 03:41Z its own counts fell (graph units 341,655 to 254,094, claim keys 77,280 to 46,892, claim holders 38,181 to 19,935, run checks 79,474 to 60,219, tasks 24,246 to 17,355) while resident went from 19,777 to 20,111 MB and committed from 28,611 to 31,436 MB. On the pod before it the cancel took open runs from 1,154 (23:19Z) to 160 (23:59Z) and run checks from 776,512 to 49,885; resident fell only from 49,550 to 24,375 MB and committed went from 59,830 to 60,106 MB. So only part of what is let go comes back: after 86% of the runs and 94% of the run checks were gone, the server still held half its resident memory and all of its committed memory, and a backlog that has drained keeps costing that until the next restart.
For the limit this means: at today's 160 to 180 open runs the server sits at 20 GB of 64; it is the backlog of open runs (1,100 on 11-14) that takes it to the limit, at about 30 to 35 MB a run plus about 2 MB a run an hour. I change nothing here; the figures are for whoever bounds what an open run holds.