Skip to content

Dell E640 runner caches are ineffective: 22 min Tier 2 builds whether cold or warm (measurements and causes) #4953

Open

Description

@zackees

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-runner NixOS flake.
  • Persistent cache root: /var/cache/obs-runner. It has one slots/<runner>/ directory per runner, capped at 8 GB each, with a 150 GB free-space floor. The obs-runner-cache-scrub service 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:

  1. 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-rust and the crates it pulls in (obs-sys build.rs, the oracle). Nearly every port PR changes core or libobs-rust, so the per-module cache misses exactly the modules that matter.
  2. 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 as missing. Only the Tier 2 C build uses the persistent slot that ci: reuse Dell persistent caches for Tier 2 Linux builds #4916 wired in.
  3. 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.
  4. 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 RAC0182 with reason "ac" and PSU0003 (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 in forge-ci/gh-runner#3. On each boot, obs-runner-cache-scrub throws 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/cache restore and save: a round trip to GitHub's cache service over the WAN, for caches that could live on local NVMe or in RAM. 34 actions/cache uses in build-project.yaml alone.
  • 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

Asks

  1. 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.
  2. Physical: put PSU1 on a second circuit or a UPS and enable grid redundancy. Remove the host's network boot dependency on another workstation.

Activity

  1. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions