Skip to content

spec: desk open-fast, the band re-run on main (board #108) - #327

Merged
SSFSKIM merged 3 commits into
mainfrom
band-rerun
Oct 21, 2026
Merged

SSFSKIM merged 3 commits into
mainfrom
band-rerun

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Board #108: the desk-open-fast 100–300 band, re-run on main with the Linux read_proc_start fix in. A4's pair is sized to the loaded host. Docs only, so there is no version bump.

What changed

  • The spec's Surprises & Discoveries has two new observations:
    • The re-run, compared with the first run. Same host shape (GCE c2d-standard-16 Spot), same instruments (byte-identical to 218aa51), same load method. New is a control at each load point: stress-ng at nice 19, which keeps load1 but gives the benches their CPU back.
    • A4's pair at the band. Why the pair as written cannot block a hub write on a loaded host, how it was sized, what the sized pair showed, and a machine-side cost it exposed.
  • The spec's Outcomes answers the band paragraph's open question.
  • The report gets a band section: the table, the causes, and the run's cost.
  • A runbook (2026-10-20-desk-open-fast-band-runbook.md) holds the scripts, since their /tmp copies do not last.

Results

check first run, 150 / 280 this run, 150 / 280 now
A1 idle (≤ 0.6 s) pass / 2 of 10 over (1.67 s) 0.19–0.25 / 0.15–0.51 s passes at both
A2 mid-message (0.3 s) ≤ 0.24 / 0.30–1.02 s ≤ 0.29 / 0.30–0.63 s passes at 150, misses at 280
A2 after-prompt (0.3 s) 4 of 5 / 4 of 5 over 2 of 5 / 3 of 5 over (≤ 0.61 s) misses
A2 long-answer holds holds passes
A3 +30 s (0.3 s) 46–120 s, 15 of 40 never at 280 small ≤ 1.0 / 1.5 s; large up to 13 / 30 s misses on large opens
A3 +0.5 s incomplete incomplete (stream ready 5.3 / 10.0 s, was 27.6 / 79 s) incomplete
A3 index passes passes passes
A4 pair, as written incomplete incomplete cannot block a write at load on this host
A4 pair, sized — blocked write seen; POSTs all 200; stream survives; open after the resume 4.36 / 7.24 s; chunk lag 1.43 s at 280 misses the open after the resume, and chunk lag at 280
A6 kill (0.5 s) 1.0–3.4 / 4.6–5.5 s 0.96–2.95 / 2.07–5.79 s misses

Causes:

  • The ps fork (most likely). It accounted for A3's stream readiness and its small +30 s opens, and for A1's misses at 280. A1's N at 280 went from 1.35 s to ≤ 0.09 s. It was not behind A6.

  • CPU starvation. A6, A3's large +30 s opens and A2 at 280 all pass in the control at the same load1:

    • A6 0.35–0.49 s;
    • A3 +30 s ≤ 0.22 s;
    • A2 ≤ 0.10 s.

    A6's time is the successor bridge child's Python start. Its imports alone took 1.0–1.1 s wall at 150 and 2.2–2.4 s at 280, against 0.06 CPU-s unloaded.

  • A sminos cost, described and not fixed here. A4's open after the resume waits on the uplink's main thread, which verifies the inbound backlog's codes before it reaches the subscribe:

    • py-spy put the main thread in that check in 10 of the 14 dumps of the wait;
    • the check's canonical encoder walks each string one character at a time in Python, at 0.047 CPU-s per MiB on the MacBook, against 0.003 for json.dumps.

The run

  • One c2d-standard-16 Spot host in us-east4-c, 08:47–10:25Z (98 minutes).
  • About 0.30 USD at the first run's rate.
  • Torn down, and the teardown confirmed through the API.

Validation Evidence

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)

The 100–300 band again at load 150 and 280 on a GCE Spot host, on main
(aec6f74, sminos 1.5.1, the Linux read_proc_start fix in), with the first
run's instruments and load method, plus a control at each point (stress-ng
at nice 19: load1 kept, the benches' CPU share restored).

- Surprises & Discoveries: the comparison with the first run; what the
  /proc fix moved (A3's stream and +30 s small opens, A1 at 280); what
  remains and why (A6, A3's large +30 s opens, A2 at 280: each passes in
  the control, so CPU starvation); A4's pair sized to the host (buffers
  capped, heartbeat lengthened), which sees the blocked write and shows a
  machine-side cost: the uplink verifies an inbound backlog's codes on its
  main thread, ahead of the opens behind it, in a per-character encoder.
- Outcomes: the band paragraph's open question answered.
- The report: the band section, its table, causes and the run's cost.
- The runbook, with its scripts, since their /tmp copies do not last.

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T11:06:38.889350Z 1b63109 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 470d83d into main Oct 21, 2026
4 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1b6310983f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

R=us-east4
D=/tmp/dsk-scripts/band2
MYIP="$1"
[[ -f $D/key/id_dof ]] || ssh-keygen -q -t ed25519 -N '' -f $D/key/id_dof -C $N

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Create the key directory before invoking ssh-keygen

On a fresh rerun, mk-tars.sh creates only $D/tar, so $D/key does not exist when this command tries to write id_dof; ssh-keygen then fails before any GCE resources are created. Since the runbook is intended to reconstruct the expired /tmp/dsk-scripts/ working copy, create $D/key before generating the key and metadata.

Useful? React with 👍 / 👎.

Comment on lines +71 to +74
## The 100–300 band (board #108)

The band was re-run on main on the same GCE host shape as the first band
run, at load 150 and 280. Main was aec6f74c, sminos 1.5.1, which carries the

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the report summary after completing the band rerun

Adding the completed rerun here leaves the same report internally contradictory: its opening “What's left” list still says the 100–300 band is waiting for a host, and the figures heading still labels that band incomplete. Readers relying on the report summary will therefore see the opposite status from this new section, so update those earlier status lines alongside the results.

Useful? React with 👍 / 👎.

Comment on lines +13 to +14
read. It is never enrolled at a hub: every bench runs `--hub local`, the
hub's own Worker on a local runtime. The API key reaches the host only

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Limit the local-hub claim to benchmarks that use it

This blanket description is false for the recorded A3 runs: in the reviewed aec6f74c tree, bench_scale.py opens starts hub_standin.py via standin(env), while bench_index.py uses no hub at all. Saying every bench uses the hub's real Worker can make readers interpret the A3 figures as exercising the real local-hub path, so qualify this statement to the bench_open.py runs.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant