Skip to content

E9: run the deployment-tier comparison — VM supervisor+mux vs Knative one-session-per-pod #12

Closed as not planned

Description

@mrsabath

Summary

Run E9 — deployment-tier comparison (P6 §5.3): the VM supervisor+mux arm against the Knative
one-session-per-pod arm, same host class and same workload, to isolate what the deployment tier
costs. No issue tracks this today; the epic lists it as outstanding and it is the only P6 experiment
with neither a spec-amendment issue nor a driver issue.

E9 compares capacity, not cost. E1-style economics on the VM is round two (§7).

The two pins — and the second one is easy to get wrong

Isolating one tier means pinning every other. E9 has two such constraints:

1. The model tier. E6's existing numbers were taken against a real model and are not comparable
to stub-driven ones
. The Knative arm must be re-run against the same stub — cheap, via
ANTHROPIC_BASE_URL on the ksvc, and E6's driver already manipulates and restores ksvc env
(restore_ksvc_env on its EXIT trap).

2. The tool tier. Left to their defaults the arms do not match: the Knative arm resolves pods
and gets persistentExecInPod's fast channel, while the VM arm runs over gRPC and has none (§3.1a).
The comparison would then charge the deployment tier for a transport difference, biased against the
VM
. So both arms run the relay + gRPC transport — SH_REMOTE_SANDBOX=1 against the in-cluster
relay, which relay-leaf-smoke.sh already exercises. Configuration, not code.

The invariant a reviewer should check: E9 varies the deployment tier and nothing else. Any future arm
inherits both pins.

Preconditions

# Gate Why
1 E8 run first E9 reuses E8's rungs, stub and knee-detection; comparing two tiers before either arm's own knee is understood produces a ratio nobody can attribute
2 #10 merged Same two-arm methodology and the same reporting discipline apply here
3 PR rossoctl/moca#253 merged Both arms need /turn tool calls actually reaching the sandbox pool
4 Model stub deployable to the cluster It lives at deploy/knative/model-stub/ — not under deploy/vm/ — precisely because both arms must drive the same stub (§5.4). The VM arm runs the same image locally
5 Same duty basis row on both arms §2.3, named in each run record

Step 7 of P6 §3's build order is exactly this: "E9 second arm on a cluster — both arms against the
same stub and the same gRPC transport."

Acceptance

  • Both arms run on the same host class, same workload, same duty-basis row
  • Both arms recorded as running the relay + gRPC transport; neither arm on persistentExecInPod
  • Both arms against the same stub, with the profile recorded and pinned per arm
  • Connections per session recorded on every rung of both arms and required to match across
    arms
    (§3.4) — a mismatch charges one policy for the other's connection budget
  • The reported figure is a deployment-tier comparison, with the model and tool tiers shown pinned
  • Per-arm knee attribution, not just a ratio
  • No cost/resource-seconds claim (out of scope per §7)
  • Results in deploy/vm/EXPERIMENTS.md, pointer from docs/experiment-results.md

Note on P5

Like E8, E9 is measurable single-subject (§3.6). Mixed-subject rungs and the isolation claim need
rossoctl/moca#239; the comparison itself does not. State which was run.

Related: E8 run, #10, PR rossoctl/moca#253, rossoctl/moca#240 (ScaledJob → elastic pod pool, which changes what the Knative
arm is — if rossoctl/moca#240 lands first, record which deployment model the cluster arm measured).

Activity

  1. pdettori commented on Sep 22, 2026

    @pdettori
    Member

    Unblocked — the "one worker or N" dependency is answered: one

    This issue was sequenced behind the microVM throughput campaign's answer to worker-process count. That answer is in.

    One worker process per host. Holding total slots constant and varying only the process count, on srv-r16b14s16:

    arm total slots aggregate Exec/s host CPU
    1 x 64 (anchor) 64 580.60 65.3%
    2 x 32 64 580.58 68.2%
    2 x 64 128 561.60 72.7%
    1 x 64 (drift repeat) 64 563.66 67.2%

    A 0.02 Exec/s difference against 2.9% measured session drift, for +2.9 points of host CPU. This also corrected rossoctl/moca#259's "scale out" recommendation, whose 1.82x had been measured under a 4-slot per-process cap (#305).

    What to configure for the VM-supervisor+mux arm

    • One microvm-worker per host, not N. Fewer ports, relays, Redises, admission budgets and supervision paths — and none of the seven separations a multi-worker setup needs to get right.
    • The tier ships at 16 slots (microvmDefaultConcurrency, feat(microvm-worker): default the slot count per tier, not from the library (#305) moca#313), deliberately below the measured 64-slot peak. Decide and record which value this arm runs at, because it is the single largest throughput determinant and an unrecorded default is exactly what confounded the earlier ladders.
    • Reference point for the mux arm on this host class: ~580 Exec/s at 66% CPU and 8.3 GiB of 754 GiB, p95 145 ms, with the bound being the pool's replenishment rate rather than CPU or memory.

    Two of this issue's acceptance criteria are worth re-reading in light of the campaign

    • "Per-arm knee attribution, not just a ratio." The microVM arm's knee attribution is now known and is not density: the earlier c=8 knee was the 4-slot cap (#305, corrected in docs(e11): the c=8 knee reproduces — and it is the 4-slot cap (#305), not density moca#300). Do not carry that knee into this comparison.
    • "Connections per session recorded on every rung and required to match across arms." Still the right gate. Note that every microVM Exec includes two host-to-guest vsock dials (Resume's mount and Run's command), which is per-connection cost the mux arm may or may not amortise — worth recording explicitly rather than inferring from the ratio.

    If this arm is run before PR rossoctl/moca#300 merges, take the knee reading from rossoctl/moca#305 rather than from EXPERIMENTS.md section E11, which still carries the pre-correction banner.

  2. transferred this issue fromrossoctl/mocaon Oct 2, 2026
  3. pdettori commented on Oct 2, 2026

    @pdettori
    Member

    Transferred from rossoctl/moca on 2026-10-02, along with the other experiment issues, because their drivers moved here on 2026-09-25 (deploy/microvm/EXPERIMENTS-MOVED.md, deploy/knative/EXPERIMENTS-MOVED.md, experiments/MOVED.md in moca).

    Bare #N references in this issue's body and earlier comments point to rossoctl/moca, not to this repo. GitHub doesn't rewrite them on transfer. For example, #253 means rossoctl/moca#253. The issues moved together, old number to new:

    rossoctl/moca here title
    #130 #2 SWE-bench measurement driver polish
    #256 #3 P4 next-experiments epic
    #257 #4 real model think-time distribution
    #261 #5 E11 with a real model in the loop
    #262 #6 test the admission gate (sealed prediction 1)
    #280 #7 E13 root cause
    #306 #8 rename coldAcquireRate
    #298 #9 E11 bash/Go cause-vocabulary drift guard
    #254 #10 E8 capacity/realism arms
    #275 #11 E8 run
    #276 #12 E9 run

    Product-code issues they reference stay in moca, for example rossoctl/moca#274 (per-Exec VM lifetime), #277 (P4.1 egress), #297 (vmpool test flakes), #307 (Destroy cost) and #338 (workspace lifetime).

  4. pdettori commented on Nov 12, 2026

    @pdettori
    Member

    Closing as obsolete. The Knative/KEDA deployment was removed in November 2026 (moca ADR-0041), so the one-session-per-pod arm cannot be built. The two pinning constraints recorded here remain the right ones for any future deployment-tier comparison.

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