Repository navigation
Description
Environment
2x DGX Spark (GB10, sm_121, 121.6 GiB unified each), direct CX7 RoCE, 2 rails (GID 3, MTU 9000).
flare v0.5.0 controller (orbit run) + agents on both nodes; also reproduced on v0.4.4.
Both agents run with --config whose [paths].core_cache = /home/pfnguyen/flare/cache/cores, and that store already contains the complete TP2 core (both ranks) being served.
Steps
flare --config <cfg> orbit run --name glm53f --transfer-streams 16(group core points into the configured store).- Sample
du -sh ~/.cache/flare/cores(the default root) alongside the controller process's/proc/<pid>/ioread_bytes.
Observed
orbit run materializes the entire peer rank-1 core under the default root ~/.cache/flare/cores/<deploy-id>-<rev>/... on the controller (rank-0) host: 101 files, 167.5 GiB, nlink=1, byte-identical to the files already in the configured store (md5 match on layer-018.safetensors).
Falling du of the default root tracks the controller's read_bytes 1:1 while it re-hashes:
| elapsed | written to default root | controller read_bytes |
|---|---|---|
| 10 s | 4.8 GiB | 9 GiB |
| 222 s | 88.5 GiB | 88 GiB |
| 438 s | 161.8 GiB | 160 GiB |
| final | 167.5 GiB (101/101 files) | — |
This happened even when both of the following were true at the same time:
- the controller passed explicit
--core-cache /home/pfnguyen/flare/cache/cores - every agent carried
--configwith[paths].core_cachepointing at the same store
i.e. the --core-cache help text's [default: paths.core_cache, else ~/.cache/flare/cores] is not honored for orbit rank-core staging; the write goes to the hard-coded default root regardless.
Asymmetry worth noting: on the receiving node no bytes were written at all (its configured store already held the blobs and dedup applied). Only the controller-side staging wrote a fresh duplicate. Same behavior on v0.4.4.
Side effects seen in the same runs:
- free disk fell 350 GiB → 14 GiB during back-to-back orbit runs before we noticed and
rm -rf'd the duplicate; Distribute rank cores over CX7took 247.2 s in the run that staged a fresh duplicate vs 2.3–6.1 s when the peer already held the core — the staging read dominates distribution.
Expected
Staging should honor --core-cache / configured core_cache, and skip materializing rank cores the cluster already holds by content digest.
Related
#361 plans to move orbit rank files into the shared model cache (helios/src/core/cache.rs, "designed, not implemented"). This report is the narrower, current-behavior defect: until that lands, staging ignores both the flag and the configured root.
Activity
Unify Orbit rank cache, fix GB10 page-cache KV sizing, consolidate NV…
pfn commentedon Dec 1, 2026
Correction: retracted — the duplicate is NOT gone on
maine85019b9.My "verified fixed" comment below was checked against the wrong path. #646 moved orbit's peer-rank staging out of
~/.cache/flare(which is why it stayed empty: it now holds only the by-designpublishers/trust JSON) — but the ~168 G duplicate itself still happens, inside the configured core cache, as an orphan deployment-id directory that survivesorbit stop:Facts from
orbit run --name glm53f(thenorbit stop) on the TP2 GB10 pair:dfdropped ~168 G; not reclaimed byorbit stop(group exited cleanly); had torm -rfthe directory manually;paths.core_cachenow instead of the default root.So the
--core-cache/[paths].core_cachehonoring half of #629 is fixed, but the duplicate-core half is not: distribution materializes a second physical copy where content-addressed dedup against existing blobs was expected. Please reopen (or point me at the intended dedup step so I can check whether our env is skipping it). Happy to rerun with any instrumentation.pfn commentedon Dec 1, 2026
Addendum — quantifying the staging cost per
orbit run(TP2 GB10 pair,e85019b9).Following up on my correction below with exact numbers now that we've audited both nodes:
<paths.core_cache>/models/<model>/gb10-tp2-<deployment-id>-<session>/— 167.5 GiB, 103 files, all link-count 1.<paths.core_cache>/models/<model>/gb10-tp2-<timestamp>/— 83.7 GiB, byte-identical (sha256-verified) weight blobs that already exist in the same node's content-addressed store. Created while the group was serving, survivesorbit stop.models listas an ordinary version (owndeployments/dir and everything), so it silently accumulates unless you know the signature of a staging dir. Worth a marker, a gc rule, or cleanup at group exit.mirror_filepath:File::create+set_len+write_all_at) with no content-address pass afterwards — locally-produced installs do go through the blob store and hardlink correctly (our locally-exported version is 100/101 files linked, ~0 exclusive). So locally-installed cores dedupe perfectly; fabric-received staging copies never do. A post-transfer "link if content matches an existing blob, else write" pass would have kept the peer copy at ~0 bytes here.orbit runon this 2-node setup: ~251 GiB of duplicate disk against cores already resident, on both nodes combined, unreclaimed byorbit stop.pfn commentedon Dec 2, 2026
Re-tested on
v0.5.1(1fbcc3c9, #667): the peer half is fixed — confirmed on real GB10 hardware; the controller half still leaks exactly as before. Numbered so it's easy to reference:Peer: fixed. Distributed the rank-1 half (~83.8 GiB over CX7 fabric) to the peer.
dfused-bytes identical before distribution and afterorbit stop(524 GiB), blob store unchanged (181.5 GiB), no new version directory,staging/empty. The pre-Harden Orbit payload integrity, multi-deployment TP seams, GB10 page-cache release, Unix flock drop, and multi-host peer exports #667 symptom (raw<model>/gb10-tp2-<timestamp>/rank-half — sha-identical to resident blobs, zero hardlinks, masquerading inmodels list) is gone. "Zero orphan weight blobs on peer hosts" holds here.Controller: still broken.
orbit runstaged the full core a second time under the configured cache:<core_cache>/models/GLM-5.3-Flash-FP4-Local/gb10-tp2-<deployment-id>-<session>/= 167.53 GiB, 103 files, every one link-count 1, zero blob links, byte-identical to resident blobs (spot-check: rank-1layer-018=3bc389c7…on both sides — the same digest we reported as shared across all versions/nodes in the addendum). It survivesorbit stopand appears inmodels listas an ordinary fourth version under the same deployment id as the real default version, so nothing marks it as garbage. Reclaim needed a registry-awaremodels remove 'MODEL@<version>'(the layout moved undermodels/<model>/<version>/in v0.5.1, so the orphan lands there too).Net per orbit run: peer +0 GiB (was +84), controller +167.5 GiB (unchanged). The controller-side copy is pure waste even without content-addressing — the identical payload already exists referenced-by-blob in the same store seconds before staging starts — but content-addressing it, or unlinking it at group exit, would both fix the accounting.
Side note, same PR: the new envelope-digest binding also behaved correctly here — with a pre-existing peer-side cached unit for this core, the agent re-transferred and re-verified (
stored data verified) instead of taking the stalereceived: 0, verified: falsecache hit that motivated that fix.