Repository navigation
Description
Summary
The self-hosted Dell PowerEdge E640 merge-queue runner (dell-fsx3mn2, six runners) gets almost no benefit from its "persistent" build caches. A Tier 2 Linux build takes about 22 min there, the same as on a hosted runner, whether its cache is cold or warm. This issue records the measurements from 2026-11-17, the causes, and where we are. The redesign is filed separately (see the linked design issue).
Refs #4896 (agentic workflow throughput) and #4839 (merge-queue runner routing).
Hardware
- 64 cores, 109 GB RAM (about 94 GB available while 6 runners are busy), and 566 GB free NVMe.
- Six GitHub runners in docker containers, configured from the private
forge-ci/gh-runnerNixOS flake. - Persistent cache root:
/var/cache/obs-runner. It has oneslots/<runner>/directory per runner, capped at 8 GB each, with a 150 GB free-space floor. Theobs-runner-cache-scrubservice empties every slot on each boot.
Measurements: Tier 2 Linux build job, merge queue, 2026-11-17
| Job | Runner | Slot at start | zccache | Build step |
|---|---|---|---|---|
| 133785149342 | dell-fsx3mn2-2 | 1 MiB (cold) | 0 / 6865 cached (0.0%) | 1313 s |
| 133801354463 | dell-fsx3mn2-1 | 2606 MiB (warm) | 1843 / 6936 cached (26.7%) | 1320 s |
Step breakdown (both jobs):
| Step | Time |
|---|---|
| Install Git | 22–28 s |
actions/checkout + submodules |
up to 50 s |
| Install Tier 2 packages | 50–93 s (the apt archive is shared, but packages are still unpacked into a fresh container every time) |
zackees/setup-soldr |
71–86 s |
| Build Tier 2 (libobs and libobs-c-reference) | 1313–1320 s |
| Upload Tier 2 tree | 183–194 s |
Inside the build step:
- configure: about 2 min 20 s
- libobs module cache: restores 3 of 7 modules (
image-decode-adapter,media,platform-posix) and rebuilds 4 (core,graphics,platform-linux,libobs-rust) in about 16 min, with build output suppressed - MCP graphics/plugin build and the tail: about 4 min
Are we missing the cache all the time, or only some of the time?
Effectively all the time. A warm slot raised the hit rate from 0% to 26.7% and saved no wall time. Four causes:
- Rust is not cached. zccache deliberately doesn't cache Rust rlibs (rustc: source edited with unchanged size+mtime replays stale cached output (HIT) forge-ci/zccache#1943). The likely bulk of the 16 minutes is
libobs-rustand the crates it pulls in (obs-sysbuild.rs, the oracle). Nearly every port PR changescoreorlibobs-rust, so the per-module cache misses exactly the modules that matter. - setup-soldr's compiler cache is ephemeral. setup-soldr sets
ZCCACHE_CACHE_DIR=/__w/_temp/setup-soldr-soldr/cache/zccache, a per-job temp dir seeded from an embedded source (SETUP_SOLDR_ZCCACHE_SEED_SOURCE=embedded). Its final session stats are reported asmissing. Only the Tier 2 C build uses the persistent slot that ci: reuse Dell persistent caches for Tier 2 Linux builds #4916 wired in. - Each runner has its own cache. A job only warms its own runner's slot, so with six runners most jobs start cold. At 06:00Z only 2 of 6 slots held anything.
- Every boot wipes every slot. The host lost AC power at 2026-11-13 00:48 PST and 2026-11-16 21:48 PST. iDRAC recorded
RAC0182with reason "ac" andPSU0003(input lost on PSU1). Only one PSU is fed, and redundancy is "Not Redundant". This is a power problem, not a software one; telemetry landed inforge-ci/gh-runner#3. On each boot,obs-runner-cache-scrubthrows away every warm cache, kills the in-flight merge-queue jobs and takes the runners offline for about 20 minutes. Load, memory errors, OOM and thermal were ruled out.
Other costs we pay on the Dell that hosted runners also pay
actions/cacherestore and save: a round trip to GitHub's cache service over the WAN, for caches that could live on local NVMe or in RAM. 34actions/cacheuses inbuild-project.yamlalone.- Tier 2 tree upload: about 3 min per build job, uploaded as an artifact for a test job that very likely runs on the same host.
- setup-soldr toolchain download: 70–90 s per job.
- Package install: a fresh container per job means apt unpacks about 560 packages every time.
Theoretical best
A typical port PR changes one Rust crate plus one C unity group. With a shared warm cache for C objects and Rust artifacts in RAM, the build floor is roughly 3–5 min (configure, recompile the changed crate and the dependents that must rebuild, recompile one unity group, link), and network steps fall to about 0. Today it is about 22 min of build plus about 5 min of network. A measured floor (same build twice, then a build after touching one Rust file) is being taken on the Dell now.
Where we are
- ci: reuse Dell persistent caches for Tier 2 Linux builds #4916 (merged): per-runner persistent slot for the Tier 2 C zccache, plus a shared apt archive.
forge-ci/gh-runner#2(merged, not deployed): heals truncated caches at container start.forge-ci/gh-runner#3(merged, deployed): journald syncs every 15 s, and power, thermal and memory telemetry are logged every minute.- fix(ci): use the last idle merge-queue runner by default #4940 and the
MQ_RUNNER_MIN_IDLE=1variable: route merge-queue runs to the Dell at 1 idle runner. Still a single snapshot at run start; ci: prefer online merge-queue runners when explicitly configured #4952 (MQ_RUNNER_MODE=prefer) fixes that. - Merge queue ruleset: HEADGREEN grouping and a 120-min timeout (2026-11-17), so one flaky entry no longer ejects the queue.
Asks
- Fix the cache design, not just the plumbing (see the design issue): shared rather than per-runner slots, RAM-backed, Rust artifacts included, no GHA cache round trip on self-hosted runners, survives power loss, and a hit rate we measure.
- Physical: put PSU1 on a second circuit or a UPS and enable grid redundancy. Remove the host's network boot dependency on another workstation.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriage
Activity
zackees commentedon Nov 17, 2026
Correction: forge-ci/zccache#1943 is not a decision to skip Rust caching. It is a closed stale-hit bug: a rustc compile was served from cache after an edit that kept the file's size and mtime the same. Rust artifacts still miss in practice here, but the reason for that is to be measured in phase 0 of the design in #4954. Rust cache keys must be content hashes (see #4954).