Repository navigation
docs(e259): worker-parallelism runbook + results, with the recommendation corrected - #301
Conversation
Issue rossoctl#259 asks a binary question -- is the ~62 Exec/s aggregate ceiling a property of the worker PROCESS or of the HOST -- and the two answers point at completely different follow-up work, so the experiment is worth setting up precisely. This is the operator document for it, in the same shape as docs/notes/e11-go-exec-client-comparison-runbook.md. Written after the issue rossoctl#291 re-run, which changed the numbers rossoctl#259 was drafted against and turned up three instrument defects that will abort this experiment if they are not accounted for. What the runbook fixes relative to the issue as drafted: - Corrected baselines. rossoctl#259 says "39.04/s -> expect ~78/s"; those are pre-rossoctl#291. The current single-worker c=8 figure is 80.62 Exec/s, so the two-worker target is ~161. - Three prerequisites, each load-bearing: PR rossoctl#299 in the tree (without it the dying-VMM PSS refusal is fatal in the idle-standby poll and killed a run at c=4), the Go Exec client (grpcurl was up to 23.7% of microVM p95 at low c), and SH_E11_COLD_LATENCY_MS=94 derived from the Go client's own warm floor. - A decision rule fixed in advance, with three rows rather than two, so the partial-scaling outcome cannot be rounded into either story. - SH_MAX_COMMITTED_MB is per worker PROCESS: two workers at 409600 can commit 800 GiB against 754 GiB of RAM, and a budget above installed memory means every density number becomes a measurement of the OOM killer. It also records a per-session ceiling that rossoctl#259 does not mention and that is NOT what the experiment tests: runPool.execGate is a one-slot channel per run pool, held from acquire until destroy whenever the launcher reports SerializesExecsPerRun() -- true for Firecracker, because the workspace ext4 image is not a shared-disk filesystem (spec section 4.3). So one session runs one Exec at a time and cannot exceed ~21 Exec/s, which is what the measured 17.56 at c=1 is. It does not serialize across users (different workspace_keys, different gates), but it is a hard capacity-planning fact. Traps section carries the seven failure modes observed on this rig, including that SH_E11_VMM_PROC_PATTERN must be left unset, that arm order is randomized every run, that the sampler slows as standbys multiply, and that a microVM rung can still record pssBytes: 0 with pssRefusedTicks: 0 and exit 0. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
…llision
Corrects a wrong claim in the first draft of this runbook. It said starting two
microVM stacks concurrently "is the code change this experiment needs". It is not:
`e11-density.sh` can simply be run twice, concurrently, with four things
separated. Verified on the rig rather than argued.
The claim that mattered and was missing: `pool.nextIDLocked` mints VM ids as
`vmIDPrefix + p.seq` where `p.seq` is a PER-PROCESS counter starting at zero, so
two worker processes both mint vm-1, vm-2, ... and collide on the jail directory
and the API socket -- which the launcher refuses by design ("a live VMM already
holds this VM id's API socket"). Anyone running this experiment would have hit
that refusal partway in and had no reason to suspect the id counter.
Separating SH_CHROOT_BASE namespaces the paths so repeated ids are harmless. That
var is NOT in the explicit env list start_microvm_stack builds for the worker, but
it reaches the worker anyway by inheritance, because bash's `VAR=val cmd` prefix
adds to the inherited environment rather than replacing it. Verified:
`sudo SH_CHROOT_BASE=/srv/jail-w1 driver` -> the grandchild worker reads
/srv/jail-w1. So no code change is required.
Also records that every chroot base must stay on the same filesystem device as
SH_SNAPSHOT_DIR (the snapshot build hardlinks between them, METAL-RUNBOOK.md §2),
and that SANDBOX_ID is derived and NOT overridable, so both workers register under
one id -- expected to be harmless since each has its own relay, but to be
confirmed in the smoke pass rather than assumed, because it is the last shared
name and a worker attaching to the wrong relay is precisely the silently-wrong-data
failure METAL-RUNBOOK.md §3a exists for.
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
…1.82x Answers issue rossoctl#259's falsifiable question on bare metal (srv-r16b14s16, metal substrate, 2026-09-21). The ceiling is a property of the WORKER PROCESS, not the host, so the decision rule's first row fires: scale out. control, 1 worker c=8 67.76 Exec/s host 3.996 of 72 cores treatment, 2 workers c=8 123.57 Exec/s host 7.57 of 72 cores (10.5%) T2 / T1 = 1.824 (rule: >= 1.8 x T1 = 121.96) A second, independently instrumented pair gave 1.92 (128.99 vs 67.03), and the control reproduced to within 1% across both pairs. Reported as measured rather than rounded to "it scales": 1.824 is only 1.3% above the rule's boundary, and per-worker throughput fell 67.76 -> ~61.8 (-8.8%) when sharing the host, so a small shared component exists. At T2 the host was still ~90% idle, so N should be found by extending this experiment, not by assuming linearity. The per-session execGate cap of ~20 Exec/s per user is unchanged, and the isolated-snapshot variant was correctly not run: it is gated on the shared run showing no scaling, and the shared run scaled. Overlap of the two ~8-10s c=8 windows is proven rather than assumed. hostCpuFraction, coresBusy and processCount are host-wide (host_cpu_fraction diffs /proc/stat's aggregate cpu line), so both workers recording identical DOUBLED values can only happen if they ran concurrently: processCount 24 against the control's 12, hostCpuFraction 0.105 against 0.0555, with an independent 3s /proc/stat sampler agreeing (peak 3.26 -> 6.22 cores). Corollary recorded in the note: coresBusy must not be summed across workers, and standbysResident is misleading with two. Three instrument findings, all worth acting on separately: - PR rossoctl#299 is incomplete. pid_mm_is_gone excuses only a readable-AND-empty /proc/<pid>/cmdline; a VMM whose smaps_rollup read fails transiently during teardown while its cmdline still reads therefore still trips the refusal. Seen 3x across 2 runs with no added sampler load. Both times the die fired inside a command substitution and was swallowed, surviving only as pssRefusedTicks. - SH_PARENT_CGROUP is a FIFTH separation the runbook's four omit. Both workers sweep it at startup (one logged "swept 692 VM cgroup(s)"); safe here only because they start simultaneously. A worker starting while another runs would sweep the live worker's VM cgroups — which directly affects the scale-out recommendation this experiment makes. - Trap 6 reconfirmed: pssBytes 0 with pssRefusedTicks 0 and exit 0, twice. Run tree was main 45dbeae + PR rossoctl#299 (still open), a fast-forward to 023571b. deploy/microvm/predictions.json and EXPERIMENTS.md deliberately untouched; microvm-predictions passes 3/3. EXPERIMENTS.md numbers are a separate pass, as issue rossoctl#291's re-run did. Refs rossoctl#259 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
…s the ceiling The measurements reproduce; the recommendation does not survive. The per-process component this experiment found was a hard-coded constant, `session.DefaultConcurrency = 4` — a fixed pool of 4 goroutines draining the Exec queue in each worker, which `e11-density.sh` never overrode. So the two arms compared 8 slots with 4, and the 1.82x is what that ratio looks like once per-worker throughput drops the measured 8.8%. Scale-out "worked" by multiplying the constant. Two later measurements on the same host settle it. Raising `WORKER_MAX_CONCURRENT` to 16 on ONE worker gives 172.88 Exec/s, beating this whole two-worker result (123.57) by 1.40x at +3.6% p95. And with the cap raised, a second worker adds nothing: holding total slots at 64 and varying only process count, 2x32 = 580.58 against 1x64 = 580.60, a 0.02 Exec/s difference against 2.9% session drift, for +2.9 points of host CPU. Revised guidance: one worker per host with the cap raised. Add hosts, not processes; raise per-host throughput by needing fewer restores per Exec (rossoctl#274). The document's own instruction — "N should be found by extending this experiment, not by assuming linearity" — was followed, and the answer is N=1. Kept and credited: the overlap proof, the "coresBusy must not be summed" corollary (which is what later made the two-worker comparison auditable), the foreign-load sampling discipline, the instrument defects, and the per-session execGate ceiling. Refs rossoctl#259 rossoctl#305 #306 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
0afb549 to
85d6255
Compare
mrsabath
left a comment
There was a problem hiding this comment.
Docs-only, two new experiment notes, all CI green, all commits signed off. I verified the code-level claims against origin/main (fetched this session, 70ab2c8) and they hold:
| Claim | Verdict |
|---|---|
session.DefaultConcurrency = 4 |
✅ remote-worker/internal/session/loop.go:41 |
runPool.execGate is a one-slot channel per run pool |
✅ vmpool/runpool.go:58, pool.go:504-505 (make(chan struct{}, 1)) |
Firecracker SerializesExecsPerRun() = true, ext4 not shared-disk |
✅ launcher_firecracker.go:215-218; CHV returns false at launcher_chv.go:294 |
pool.nextIDLocked mints vmIDPrefix + p.seq, per-process counter |
✅ cgroup.go:99-105, cgroup_pool.go:27 |
SH_CHROOT_BASE default /srv/jail |
✅ launcher_env.go:178 |
SANDBOX_ID derived e11-microvm-d${d}-ram${ram_mb}, not overridable |
✅ e11-density.sh:1790 |
Trap 6: require_vmm passed only by post-load call sites, not the in-rung sampler |
✅ e11-density.sh:1141-1153 vs 2235 |
| Prerequisites #299, #291, #295 landed | ✅ all closed |
The instrument-defect catalogue is accurate and the sort of thing that only gets written down once. Superseding by strikethrough rather than deletion is the right shape for an experiment log — it makes the reversal auditable. The coresBusy-must-not-be-summed corollary is correct and load-bearing, and the overlap proof (both workers independently reading processCount 24 = 2× the control's 12) is genuinely sound reasoning.
What blocks merge is not accuracy but collision and internal inconsistency:
mainalready carriesdocs/notes/2026-09-22-exec-throughput-campaign-results.md, merged, with a section "A second worker does not help (issue #259 revisited)" and a subsection "This corrects #259's interpretation" — the same 2×32 arm, the same 580.58/580.60, the same overlap-verification and don't-sum-coresBusycorollary, the sameexecGatecarve-out, the same one-worker-per-host guidance.- Within this PR, the results doc discovers a fifth required separation (
SH_PARENT_CGROUP) that the runbook shipped beside it still omits — whilemainindependently puts the true count at seven, includingSH_E11_STATS_ADDR, which this PR never mentions and whose absence makes both drivers scrape worker 1's counters and attribute plausible numbers to the wrong process.
An operator following this runbook as written would get plausible, wrong data. All three must-fixes are resolvable by reconciling against the merged campaign doc and syncing the separations table — nothing here needs re-measuring.
Areas reviewed: Docs, commit conventions, PR format, cross-doc consistency, code-claim verification against origin/main
Commits: 4, all signed-off ✅, all using docs(e259): conventional prefixes
CI: 13/13 passing
Findings: 3 must-fix, 2 suggestions, 1 nit — all inline
| > reproducible and correctly reported, and still meant the opposite of what it said, because | ||
| > `MaxConcurrent=4` was not in the frame. Record the configuration next to the number. | ||
| > | ||
| > Refs: #305 (the cap), #306 (`coldAcquireRate`), #274 (the remaining lever). |
There was a problem hiding this comment.
must-fix — this correction block collides with already-merged prose.
main carries docs/notes/2026-09-22-exec-throughput-campaign-results.md, which has a section "A second worker does not help (issue #259 revisited)" and a subsection "This corrects #259's interpretation". It contains the same 2×32 arm, the same 580.58 vs 580.60 anchor, the same "Overlap was verified, not assumed" heading with the same don't-sum-coresBusy corollary, the same per-session execGate carve-out, and the same one-worker-per-host guidance.
The PR body claims the overlap proof, the sampling discipline, the instrument defects and the execGate ceiling as "what this PR contributes and keeps" — but the first and last are already merged, in more detail.
Either state explicitly which of the two documents is canonical and have the other link to it, or reduce this correction block to a pointer at the campaign doc. Two documents independently narrating the same correction is precisely how they drift apart, and this file's own closing lesson is about interpretations losing their frame.
There was a problem hiding this comment.
Fixed in 9c0770a. The campaign doc is now named canonical and linked, and the correction block keeps only what a reader of this document must know before acting on it. Both duplicated tables are gone; the figures that remain are this document's own 123.57 and the two comparisons that overturn its conclusion.
One correction to the finding, which changed what I removed. The overlap evidence is not already merged — the two documents prove overlap from different measurements:
- canonical doc: matching per-worker
coresBusy(49.1/49.1, 52.5/52.2) inside its 2×32 arm at 64 slots - this document:
processCount24 against the control's 12,hostCpuFraction0.105 against 0.0555, and an independent 3 s/proc/statsampler at 1.91x — at c=8, in the two-worker run
Same corollary, different runs and different counters. The corollary was duplicated and is now stated once, with a pointer; the evidence stayed, and the block says which document proves what. Deleting it would have removed the only record of the c=8 overlap check.
The execGate ceiling is genuinely in both, so it is now a one-line mention here rather than an argument.
| `pssRefusedTicks`, so the ladder survived. It should not be relied on to. | ||
| 2. **Trap 6 reconfirmed**: `pssBytes: 0` with `pssRefusedTicks: 0` and exit 0, on | ||
| `.results-control3-w1` c=1 and `.results-smoke-w2` c=1. Still unfixed; treat as suspect. | ||
| 3. **A fifth separation the runbook's four omit: `SH_PARENT_CGROUP`.** Both workers share |
There was a problem hiding this comment.
must-fix — this defect is found here and not propagated to the runbook in the same PR.
This item is headed "a fifth separation the runbook's four omit", and the failure it describes is concrete: a worker starting while another is already running sweeps the live worker's VM cgroups (one run logged "swept 692 VM cgroup(s)"). I confirmed the mechanism — microvm-worker reads SH_PARENT_CGROUP at remote-worker/cmd/microvm-worker/main.go:582 and the service ships microvm.slice/microvm-vms.slice at deploy/microvm/microvm-worker.service:147, so both workers do share it by default.
But e259-worker-parallelism-runbook.md (line 101 in this PR) still heads its table "need four things separated" and lists four rows. Shipping a results doc that discovers a fifth prerequisite alongside a runbook that teaches four sends the next operator into exactly this failure.
Add SH_PARENT_CGROUP to the runbook's table.
There was a problem hiding this comment.
Fixed in 9c0770a — SH_PARENT_CGROUP is in the runbook's table, marked ⚠ silently destructive, and in the new copy-ready per-worker env block.
Two mechanism details I verified while adding it, both now recorded because they change what an operator should do:
- It must be slice-relative — jailer refuses an absolute
--parent-cgroup(main.go:575-582,vmpool.ValidateParentCgroup). - Outside systemd an absent path is a warning, not fatal:
microvm-workerkeys that onINVOCATION_ID(main.go:592-599), and the driver starts the worker undersudo. So the slices need not be pre-created, and if they are absent the destructive sweep cannot fire at all. The separation is still required — the failure it prevents is the sweep firing correctly against a path the live worker shares.
This item's own heading in the results doc no longer says "a fifth separation the runbook's four omit", since that count is now stale.
| serializer, and it is the difference between "the host cannot go faster" and "the host cannot go | ||
| faster _through one snapshot file_". | ||
|
|
||
| ### Two concurrent workers need four things separated, and NO driver change |
There was a problem hiding this comment.
must-fix — the separations table is short by three, and one of the omissions silently corrupts the measurement.
main's merged campaign doc states:
Two workers need seven separations, not the five in #259's runbook:
SH_WORKSPACE_ROOT,SH_CHROOT_BASE(which must pre-exist),SH_PARENT_CGROUP,SH_E11_RELAY_PORT,SH_E11_REDIS_PORT,SH_E11_STATS_ADDRand a dividedSH_MAX_COMMITTED_MB.
Three gaps against this table:
SH_E11_STATS_ADDRappears nowhere in this PR. Per main, without it "both drivers scrape worker 1's counters and produce plausible numbers attributed to the wrong process". That is the silently-wrong-data class of failure this runbook's own METAL-RUNBOOK.md §3a reference exists to guard against — and it is the worst kind to omit, because the run completes and the numbers look fine.SH_CHROOT_BASE"must pre-exist" is not stated here. Worth adding, given the section correctly explains thevm-Ncollision this variable fixes.- The count itself. Main reads this list as five; the table says four; the results doc in this PR says the runbook's four omit a fifth. Three different numbers for one list.
Bring the table to seven and reconcile the count with the results doc.
There was a problem hiding this comment.
Fixed in 9c0770a. The table is now one list with a definite count, and I verified SH_E11_STATS_ADDR end to end before adding it:
e11-density.sh:219—STATS_ADDR="${SH_E11_STATS_ADDR:-127.0.0.1:6061}", a fixed default:1791— passed to the worker asSH_DIAG_STATS_ADDR:708— scraped by the driver
So two drivers at the default do both reach worker 1. Marked ⚠ silently wrong data, which is the class you named.
Also added: SH_CHROOT_BASE "must pre-exist", and SH_MAX_COMMITTED_MB as divide, do not separate — the budget paragraph now matches the values in the block instead of saying 409600 above and "drop to ~262144" below.
On the count — I landed on nine rather than seven, deliberately. Adopting "seven" while listing nine variables would have made a fourth number. The table carries all nine, and a note reconciles: main's seven is the same list drawn at the worker-facing boundary — it omits RESULTS and SH_E11_NULL_RESPONDER_PORT, which are the driver's own, and counts the divided budget among the seven. Eight separated + one divided. The results doc now points at the table instead of carrying its own count, so there is one list and one explained discrepancy rather than three numbers. Happy to flip to seven and drop the two driver-side rows if you prefer the boundary drawn main's way.
I also added a per-worker env block, since the shared block an operator would actually copy contained none of these.
| > leaves 65–73% across one or two processes and 64/128/256 slots, so **the idle third of the host | ||
| > is not reachable by adding workers** — what serialises is host-wide, in the restore path. | ||
| > | ||
| > **Revised guidance: one worker process per host, with `WORKER_MAX_CONCURRENT` raised.** Fewer |
There was a problem hiding this comment.
suggestion — the shipped default is no longer 4, so this framing is already dated.
Since #305 landed (PRs #312/#313) the microVM tier has its own constant: microvmDefaultConcurrency = 16 at remote-worker/cmd/microvm-worker/main.go:87, deliberately 4× below the measured peak on the "the default must not wander past the evidence" principle. main_test.go:311 even pins session.DefaultConcurrency != 4 as a tripwire so this exact framing cannot silently rot. e11-density.sh also grew SH_E11_WORKER_MAX_CONCURRENT (line 1691), with an inherited WORKER_MAX_CONCURRENT honoured as the lower-precedence source.
The correction block reads as though the shipped default were still 4 and raising the var were the outstanding action. Worth noting the current default is 16, and that reaching 64 requires setting the variable explicitly.
There was a problem hiding this comment.
Fixed in 9c0770a. The correction block now records that since #313 this tier defaults to microvmDefaultConcurrency = 16 (remote-worker/cmd/microvm-worker/main.go:87), deliberately 4x below the measured peak, that main_test.go:311 pins session.DefaultConcurrency != 4 as a tripwire, and that reaching 64 still needs the variable set explicitly.
Verified both, plus e11-density.sh:1691's SH_E11_WORKER_MAX_CONCURRENT with the inherited WORKER_MAX_CONCURRENT as the lower-precedence source.
The surrounding text keeps MaxConcurrent=4 where it is describing what this experiment ran under — that is the historical fact the correction turns on — and only the forward-looking guidance moved to 16.
| E10 rung 3's pinned restore p50 (23.06/2). The 145 carries ~42 ms of grpcurl cost the Go client | ||
| never pays. | ||
|
|
||
| ## Corrected baselines |
There was a problem hiding this comment.
suggestion — the headline comparison point is an unexplained anomaly, and this table does not say so.
This table gives one-worker c=8 as 80.62 Exec/s and projects ~161 for two workers, and the section below calls c=8 "the single-worker peak and the known-healthy operating point". But main's campaign doc files that same figure under Open:
c=8peaks at 80.62 Exec/s in the pre-#305 ladder, which is ~4.9 effective slots against a 4-slot cap. Unexplained.
Exceeding a 4-slot cap by 22% is not a healthy operating point; it is an open instrument question. Since the whole decision rule is anchored on T1 at c=8, one line cross-referencing that open item would stop the next operator from anchoring on it unaware.
There was a problem hiding this comment.
Fixed in 9c0770a. "Known-healthy operating point" is gone, and the table now carries a blockquote right beneath it: these rungs all ran at the default 4 slots, so 80.62 is ~4.9 effective slots against a 4-slot cap — 22% more than the cap can produce — filed under Open ("Unexplained") in the campaign doc.
It also cross-references the other side of the same fact, which I fixed in #300 in parallel: EXPERIMENTS.md's corrected §E11 preamble now names c=8 as the one rung the 4-slot model does not predict (64.3 predicted against 80.62). Previously that paragraph quoted c=8 as 67.76, which made the cap look like it explained the rung.
The wording keeps c=8 usable as the anchor — it is still the peak that was measured — while saying plainly that the baseline itself is not understood, and that "peak" must not be read as "healthy".
| > comparison auditable at all), the foreign-load sampling discipline, the instrument defects, and | ||
| > the per-session `execGate` ceiling. The experiment was sound; only its frame was incomplete. | ||
| > | ||
| > **The lesson:** an interpretation inherits every configuration it ran under. This result was |
There was a problem hiding this comment.
nit — the best paragraph in the PR, and it stops one step short of applying to itself.
"An interpretation inherits every configuration it ran under... Record the configuration next to the number" is the durable takeaway from this whole campaign. Main's campaign doc reaches for the same sentence and then turns it reflexively on its own headline table ("This document's own lesson applies to its own headline table") to explain why its gains multiply to 56× against an actual 9.2×.
Worth either the same reflexive turn here — the 1.82× and the 1.96× in the correction table each inherited a configuration too — or a pointer to where that argument is already made.
There was a problem hiding this comment.
Turned it on itself in 9c0770a, rather than pointing elsewhere — the paragraph now reads that the lesson "applies to this correction too", naming the 1.82x here and the 2.74x above as each having inherited a configuration, and the 2.74x specifically as 16 slots against 4 on one host rather than a property of the worker. It then notes the canonical doc makes the same reflexive turn on its own headline table.
…separations table Addresses the three must-fixes and three suggestions from review of rossoctl#301. Docs only; no measurement is changed or removed. must-fix 1 -- the correction block duplicated already-merged prose. docs/notes/2026-09-22-exec-throughput-campaign-results.md is on main with a section written specifically to correct this experiment's interpretation, and this block independently narrated the same tables, the same 580.60/580.58 anchor and the same guidance. It now names that document CANONICAL, links to it, and keeps only what a reader of this document must know before acting on it. The two duplicated tables are gone; the figures that remain are this document's own 123.57 and the two comparisons that overturn its conclusion. Not removed: the overlap EVIDENCE. The canonical doc proves overlap from matching per-worker coresBusy inside its 2x32 arm; this document proves it from processCount 24 against the control's 12, hostCpuFraction 0.105, and an independent 3s /proc/stat sampler at 1.91x. Different measurements, same corollary, and the corollary -- coresBusy must not be summed -- is what made the later comparison auditable. The block now says which is which. must-fix 2 and 3 -- the runbook's separations table was short by three and one omission silently corrupts the measurement. It taught four rows while the results doc beside it discovered a fifth and main's campaign doc put the count at seven. One list now, nine variables, with the two later additions marked as the silent kind: - SH_E11_STATS_ADDR (new here). Defaults to a fixed 127.0.0.1:6061 (e11-density.sh:219), is scraped by the driver (:708) and passed to the worker as SH_DIAG_STATS_ADDR (:1791). Left at the default, both drivers scrape worker 1's counters and attribute plausible numbers to the wrong process -- the run completes and the data looks fine. - SH_PARENT_CGROUP (found by this experiment). Also recorded: it must be slice-relative, because jailer refuses an absolute --parent-cgroup, and outside systemd an absent path is a warning rather than fatal, so the sweep no-ops. The separation is still required -- the failure it prevents is the sweep firing CORRECTLY against a path the live worker shares. - SH_CHROOT_BASE must pre-exist; SH_MAX_COMMITTED_MB is divided rather than separated, and the budget paragraph now matches the values in the block. Added a copy-ready per-worker env block, since the shared block an operator would copy contained none of these. The count is reconciled in all three places rather than replaced by a fourth number: the table carries nine, and a note explains that the campaign doc's seven is the same list drawn at the worker-facing boundary (it omits RESULTS and SH_E11_NULL_RESPONDER_PORT, which are the driver's own). suggestions: - The shipped default is no longer 4. Since rossoctl#313 this tier defaults to microvmDefaultConcurrency = 16, deliberately 4x below the measured peak, with main_test.go pinning session.DefaultConcurrency != 4 as a tripwire. Recorded, along with the fact that reaching 64 still needs the variable set explicitly. - c=8's 80.62 is not a "known-healthy operating point". It is ~4.9 effective slots against a 4-slot cap, filed under Open in the campaign doc and named in EXPERIMENTS.md as the one rung the 4-slot model does not predict. The runbook's headline table now says so, since the whole decision rule anchors on it. - The "record the configuration next to the number" lesson now turns on this correction's own figures: the 2.74x is 16 slots against 4 on one host, not a property of the worker. pre-commit run --files <both>: all hooks pass, including the pinned Prettier. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
Follow-up to the previous commit. Tracing the two figures further while addressing rossoctl#301's review found the provenance of one of them, which the review of rossoctl#300 asked for ("If they are from the D=2 sweep or another run, say so"). 67.76 Exec/s is a real measurement: it is the ONE-WORKER CONTROL of rossoctl#259's two-worker experiment (docs/notes/e259-worker-parallelism-results.md, arm control3), run at D=2 with ACTIVE_RUNS="1 8" rather than this section's full c=1..64 ladder. It reproduced across two pairs there (67.03, 67.76), so it is sound -- it just describes a different run, and this section's own c=8 rung is 80.62. That is why the mix-up mattered rather than being a typo: a figure from a shorter, differently-configured ladder made the 4-slot model look like it explained the one rung this section admits it cannot. Recorded in a parenthesis so the next reader who finds 67.76 in the history does not have to re-derive it. 18.18 remains untraced -- it appears in no committed table in this repo, and 1/55 ms = 18.18 exactly, so it is most likely the model's own output recorded as if it were the measurement. Correcting my own previous commit message: it said both figures "appear in no table in this repo". That is right for 18.18 and wrong for 67.76. pre-commit run --files deploy/microvm/EXPERIMENTS.md: all hooks pass. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
mrsabath
left a comment
There was a problem hiding this comment.
Re-review — all six findings addressed, no new ones
Re-reviewing after 9c0770a, which addresses the three must-fixes and three suggestions from my earlier review. All six are fixed substantively rather than acknowledged, and every new claim the fix commit introduces verifies against main.
| # | Prior finding | Status |
|---|---|---|
| must-fix 1 | Correction block duplicated already-merged campaign prose | Fixed — both duplicated tables removed; campaign doc named canonical and linked; only this document's own 123.57 and the two overturning comparisons remain |
| must-fix 2 | SH_PARENT_CGROUP found here, not propagated to the runbook |
Fixed — now in the runbook table marked ⚠ silently destructive, plus the copy-ready per-worker env block |
| must-fix 3 | Separations table short by three | Fixed — nine variables, count reconciled across all three documents |
| suggestion 1 | Shipped default is no longer 4 | Fixed — records microvmDefaultConcurrency = 16 and the main_test.go tripwire |
| suggestion 2 | c=8's 80.62 is not a "known-healthy operating point" |
Fixed — phrase gone; blockquote now states ~4.9 effective slots against a 4-slot cap, filed under Open |
| suggestion 3 | The lesson stopped short of applying to itself | Fixed — now "applies to this correction too", naming the 1.82x and the 2.74x |
Source verification of the new claims
deploy/microvm/e11-density.sh:219—STATS_ADDR="${SH_E11_STATS_ADDR:-127.0.0.1:6061}", a fixed default;:708scrapes it;:1791passes it to the worker asSH_DIAG_STATS_ADDR. The "both drivers scrape worker 1" failure is real as described.remote-worker/cmd/microvm-worker/main.go:87—microvmDefaultConcurrency = 16;:144uses it as theWORKER_MAX_CONCURRENTfallback.main.go:575-582— slice-relative requirement andvmpool.ValidateParentCgroup;:590-594— theINVOCATION_IDgating that makes an absent path a warning outside systemd. Both mechanism details are as recorded.main_test.go:311— pinssession.DefaultConcurrency != 4as a tripwire.remote-worker/internal/vmpool/cgroup.go:161—DefaultParentCgroup = "microvm.slice/microvm-vms.slice", matching the table's stated default.- Default ports verified: relay 8444, Redis 6381, responder 8445.
The nine-vs-seven reconciliation is exactly right: the campaign doc's seven is this list minus RESULTS and SH_E11_NULL_RESPONDER_PORT, which are driver-side only. Stating that rather than silently introducing a fourth number is the right call.
Arithmetic all holds: 123.57/67.76 = 1.824 against the rule's 121.97, 172.88/123.57 = 1.40x, 172.88/62.99 = 2.74x, 128.99/67.03 = 1.924, per-worker 61.78 (−8.8%), and 2 × 204800 MB = 400 GiB inside 754 GiB against the 800 GiB hazard the note describes. The 62.99 (c=16 ladder) and 67.76 (this experiment's c=8 control) baselines are used consistently, each matching its own source.
One note on must-fix 1
The pushback was correct and changed the right thing. Keeping the overlap evidence while removing the duplicated tables is the better fix: the canonical doc proves overlap from matching per-worker coresBusy inside its 2 × 32 arm, while this document proves it from processCount 24 against the control's 12, hostCpuFraction 0.105, and an independent 3 s /proc/stat sampler at 1.91x. Two independent measurements supporting the same corollary — coresBusy must not be summed — is not duplication, and the block now says which is which. Insisting on removing it would have been wrong.
Summary
Docs-only, purely additive (501 insertions, 0 deletions, two new files). A results document that records its own conclusion being overturned, keeps the measurements that survived, and credits what the correction reused — with the separations count reconciled across three documents rather than left to diverge.
Areas reviewed: Docs (markdown only), commit/PR conventions, source verification of every new code claim, numeric self-consistency, cross-document reconciliation with the merged campaign doc
Commits: 5, all signed-off (DCO pass)
CI status: 13/13 passing
No new findings; dismissing my earlier CHANGES_REQUESTED.
Summary
Operator document for issue #259's experiment, in the same shape as
docs/notes/e11-go-exec-client-comparison-runbook.md.#259 asks a binary question — is the ~62 Exec/s aggregate ceiling a property of the worker
process or of the host? The two answers point at completely different follow-up work, so
it is worth setting up precisely. Written after the #291 re-run, which changed the numbers #259
was drafted against and found three instrument defects that will abort this experiment if they
are not accounted for.
Why it is the next experiment
Sixty-four sessions get the throughput of about four, on a box that is 93% idle. Restores are not
serialized by the pool mutex (
replenishOneunlocks beforep.warm), yet 62 Exec/s againstE10's 23.06 ms restore implies only ~1.4-way effective restore concurrency. Something serializes
and it is not
pool.mu. Two workers at ~161 Exec/s means per-process and scale-out is the answer;two workers at ~62 means host-wide and scale-out is the P6 trap #259 itself warns about.
What this fixes relative to the issue as drafted
80.62, so the two-worker target is ~161.
refusal is fatal in the idle-standby poll — it killed a run at c=4), the Go Exec client (grpcurl
was up to 23.7% of microVM p95 at low c), and
SH_E11_COLD_LATENCY_MS=94derived from the Goclient's own warm floor rather than the published 145.
rounded into either story.
SH_MAX_COMMITTED_MBis per worker process — two workers at 409600 can commit 800 GiBagainst 754 GiB of RAM, and a budget above installed memory makes every density number a
measurement of the OOM killer.
SnapshotDir(production-realistic, and the memory objectionis measured away at 1.44 GB Σ PSS), falling back to per-worker copies only if the shared run
shows no scaling — which is what discriminates snapshot I/O from every other host serializer.
A per-session ceiling #259 does not mention
runPool.execGateis a one-slot channel per run pool, held from acquire until destroywhenever the launcher reports
SerializesExecsPerRun()—truefor Firecracker, because theworkspace ext4 image is not a shared-disk filesystem and two guests mounting it rw would corrupt
it (spec §4.3). So one session runs one Exec at a time and cannot exceed ~21 Exec/s; the
measured 17.56 at c=1 is that ceiling, not a mystery.
It is not the multi-user bottleneck (different users → different
workspace_keys → differentgates), but it is a hard capacity-planning fact: do not size a per-user SLO above ~20 Exec/s
without moving to a shared-disk workspace filesystem.
Traps
Seven, all observed on this rig —
SH_E11_VMM_PROC_PATTERNmust be left unset (the jailerchroots, so the absolute path matches nothing, and any value passed is matched inside
sudo's ownargv);
pgrep -flies over ssh; oneITERS_PER_SLOTcannot serve two arms; arm order israndomized every run; the sampler slows as standbys multiply; a microVM rung can still record
pssBytes: 0withpssRefusedTicks: 0and exit 0; andcp -aonto an existing directory nestsit.
Docs only — no code, no driver change. The two-concurrent-microVM-stacks change
e11-density.shneeds is the implementation work this plan describes, not part of this PR.
🤖 Generated with Claude Code
2026-09-22 — corrected before merge: the measurements stand, the recommendation does not
Phase 1 of the throughput campaign found what the "per-process" component actually was, so the
results doc now opens with a correction. No measurement is changed or removed.
The per-process ceiling was a hard-coded constant:
session.DefaultConcurrency = 4, a fixed poolof 4 goroutines draining the Exec queue in each worker, which
e11-density.shnever overrode. Thetwo arms therefore compared 8 slots with 4, and the 1.82x is what that ratio produces once
per-worker throughput drops the measured 8.8%. Scale-out "worked" by multiplying the constant.
MaxConcurrent=4(default)MaxConcurrent=16One environment variable on a single worker beats this entire two-worker result by 1.40x, at
+3.6% p95, with none of the separations two workers need.
And with the cap lifted, scale-out is worth nothing. Holding total slots constant and varying only
the process count (same host, 2026-09-22):
0.02 Exec/s apart, against 2.9% session drift, for +2.9 points of host CPU. Revised guidance: one
worker per host with the cap raised. Add hosts to add capacity; raise the per-host number by
needing fewer restores per Exec (#274).
What this PR contributes and keeps
This document's own instruction — "N should be found by extending this experiment, not by assuming
linearity continues" — was followed, and the answer is N = 1. Also kept and used downstream:
coresBusymust NOT be summed" corollary. This is the part thatmade the later two-worker comparison auditable at all; summing would have destroyed the only
evidence that the workers genuinely ran concurrently.
execGateceiling (~20 Exec/s per user), which nothing in the campaign has raised.
Ready to merge with the correction in place. #259 can be closed as answered — noting the 1.82x came
from 8 slots against 4.