Standard login benchmark: new terminal to shell started (D229, D231) #159
Open
opened 2026-10-11 06:13:24 +00:00 by kayg
·
22 comments
No Branch/Tag specified
main
j470b-server-mesh-rejoin
mesh-compat-382
j444b-d381-key-wins-flood
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/infraternal#159
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Standard benchmark for new terminal to shell started under D229 and D231.
Build one harness at scripts/bench/login covering the current production session-shim path, prototype PAM login/session reuse variants, and reference login tools. Report stage timings and machine/load metadata in human and JSON forms. Document root-run prerequisites and verify stage boundaries with an injected delay. Measurement only; no product behavior changes.
Started on
bench-loginat baseprod-batchSHAebcc73a0ec22f8498a0466b2d8641ac569f87e77. Issue #159 is new and has no comments or parent issue; D229/D231 were read fromorigin/dev.Finding on infraternal-dev: the real
kaygzsh startup did not reach the prompt marker within 20 s in the shell-only--shell-mode real_rc --runs 1probe. It ran in a systemd scope withCPUWeight=10000,IPAddressDeny=any, andIPAddressAllow=localhost; load average was 48.41/31.68/25.03 at start and 52.95/33.85/25.89 at finish. The harness retained no terminal output. A controlled generated zsh fixture reached its prompt marker in 14.360 ms.Real-rc probe finding:
shell-startup --shell-mode real_rc --runs 1stayed active beyond 90 s; the 20 s prompt deadline reached cleanup, but the shell process did not exit after SIGTERM. I stopped only the two benchmark scopes (run-p1469064-i47560672.scopeandrun-p1481754-i47573362.scope); the output file remained empty. Updated cleanup to bound the wait and escalate the shell process group to SIGKILL. Rechecking before the full run.Real-rc probe after bounded cleanup:
scripts/bench/login --variant shell-startup --runs 1 --shell-mode real_rc --jsoncompleted withshell real-rc startup timed out before promptafter the 20 s sample deadline. Report path:/home/kayg/.cache/codex-scratch/bench-login/real-rc-probe.json. Hostinfraternal-dev, Linux6.12.111+deb13-amd64, 8 logical CPUs; load average 16.483/15.178/15.094 before and 17.639/15.484/15.193 after. The report correctly emits no timing for this unobserved prompt.Default local report completed on infraternal-dev (8 cores, Linux 6.12.111+deb13-amd64), under CPUWeight=10000 and loopback-only networking; report:
/home/kayg/.cache/codex-scratch/bench-login/local-login-bench-all.json. Load average was 9.931/16.403/16.141 before and 8.139/13.862/15.246 after. With 200 cold and 200 warmnorcsamples, current-production end-to-prompt was cold p50/p95/p99/max 43.820/56.731/63.404/66.906 ms and warm 43.021/55.490/62.016/70.780 ms. Shell-only zsh was cold 5.380/7.293/7.723/9.407 ms and warm 5.364/6.541/7.013/7.367 ms. Real-rc current-production and shell-only samples timed out without a prompt. Root PAM variants were skipped as requested;su -ltimed out before prompt,machinectl/runuserare absent, andssh localhostclosed the PTY before prompt under strict host-key checking.Final-instrumentation default run completed (
scripts/bench/login --all --json, 200 samples,norcandreal_rc) on infraternal-dev, 8 cores, Linux 6.12.111+deb13-amd64. Load was 28.989/23.652/18.992 before and 32.742/27.343/20.896 after. Current-productionnorcend-to-prompt p50/p95/p99/max: cold 65.425/91.102/97.870/99.813 ms; warm 67.417/93.940/106.025/119.474 ms. Shell-only zshnorc: cold 9.117/22.296/31.036/46.368 ms; warm 9.769/23.430/37.471/66.564 ms. Full report:/home/kayg/.cache/codex-scratch/bench-login/local-login-bench-final.json. Final.zloginmarker correction changes the earlier exploratory no-rc numbers. Real-rc current-production and shell-only did not reach a prompt; PAM skipped as root-only;su -ltimed out,machinectl/runuserunavailable, SSH localhost closed before prompt with strict host-key checking.Harness-test finding:
scripts/bench/test_login.pyhit its 5 s subprocess timeout on infraternal-dev (the test process itself took 5.491 s before timing out under shared-host load). Raised only the test's process-start timeout to 30 s; the same test now passes in 0.361 s and the stage self-test reports the injected 40.000 ms in the intended interval.Cleaned-up final default run completed (
scripts/bench/login --all --json, 200 samples,norcandreal_rc) on infraternal-dev, 8 cores, Linux 6.12.111+deb13-amd64. Load was 16.189/20.520/21.301 before and 28.603/22.928/22.030 after. Current-productionnorcend-to-prompt p50/p95/p99/max: cold 62.457/80.173/85.956/88.797 ms; warm 64.048/82.825/104.717/181.318 ms. Shell-only zshnorc: cold 11.779/21.248/36.244/38.603 ms; warm 9.241/18.302/23.273/24.618 ms. Full report:/home/kayg/.cache/codex-scratch/bench-login/local-login-bench-cleanup-final.json. Real-rc samples did not reach a prompt; root PAM was skipped on this host,su -ltimed out,machinectl/runuserare unavailable, and SSH localhost closed before prompt under strict host-key checking. After cleanup, no benchmark scope remained active.Finding: first scripts/verify fast attempt stopped at the latency proxy self-test. Output: latency proxy: configured 300 ms RTT did not arrive: p50=307.81 ms p99=370.83 ms. Host load at inspection was 14.85/23.90/24.83 (1/5/15m). The proxy gate allows p99 up to 360 ms; retrying after the transient shared-host load changes.
Retry of scripts/verify fast stopped at the same latency proxy self-test. Output: latency proxy: configured 300 ms RTT did not arrive: p50=356.30 ms p99=505.72 ms. Host load at 12:03 UTC was 29.33/27.41/26.06 (1/5/15m). I will run the gate in a CPUWeight=10000 user scope and preserve the default RTT settings.
Finding: weighted scripts/verify fast reached Rust tests; 35/36 infraternal binary tests passed. One failure: restart::tests::closed_reply_and_missing_reload_target_do_not_end_restart_control at crates/infraternal/src/restart_tests.rs:216; assertion output:
EPIPE must be handled in the request loop, without ending serve. This is outside the benchmark files. I will rerun the focused test under CPUWeight=10000 and record whether it reproduces.Finding: CPUWeight=10000 scripts/verify fast completed with exit 1. Summary rows: fmt PASS; VT native fmt PASS; clippy PASS; test FAIL (101); cargo-deny PASS; static builds FAIL (1). The only unit failure was restart::tests::closed_reply_and_missing_reload_target_do_not_end_restart_control (assertion at crates/infraternal/src/restart_tests.rs:216). Static binary check: 20,064,912 bytes versus 16,404,816-byte maximum (baseline 16,142,672 + 262,144 allowance); PT_INTERP absent. These are outside the benchmark files. I am checking whether the branch base moved and will rerun the focused restart test.
Finding: bench-login HEAD
ebcc73a0is an ancestor 17 commits behind origin/prod-batch (707a4572). I will fast-forward the uncommitted worktree to current prod-batch before committing. The recorded current-base gate log at evidence/prod-batch/fast-complete.log shows test PASS and the same static-size failure: 20,064,944 bytes versus 16,404,816 maximum. The focused restart test passed alone: 1 passed in 0.21 s.Completed base update: bench-login fast-forwarded from
ebcc73a0to current origin/prod-batch707a4572before any task commits. The three task paths remain untracked and there were no overlapping files.Finding: current-base fast retry passed 36/36 main-binary tests, but agent_review had 7/8 pass; initial_attach_requires_explicit_credit_before_replay failed before the scenario ran. The captured traceback is FileNotFoundError for
target/ac2565353in scripts/verify-agent-attach-credit.py:17 because this test helper hard-codes a repository-relative target directory while CARGO_TARGET_DIR is under job scratch. I will provide a temporarytargetsymlink into job scratch for the rerun so test state remains outside the repository.Current-base
scripts/verify fastresult (log:$HOME/.cache/codex-scratch/bench-login/verify-fast-scratch-fix.log):The only remaining gate failure is the inherited x86_64 static-binary size check: 20,064,976 bytes versus the 16,404,816-byte limit. The current prod-batch baseline evidence records the same failure at 20,064,944 bytes. The gate test row now passes with the test helper state parent linked into job scratch.
Current-base local
--all --jsonrun completed with N=200 per condition on infraternal-dev (8 CPUs, Linux 6.12.111+deb13-amd64), CPUWeight=10000, loopback-only. Load averages 1/5/15m were 8.847/13.865/19.498 before and 10.726/12.953/18.611 after. End-to-prompt p50/p95/p99/max ms: current-production norc cold 49.779/71.190/91.659/96.641, warm 46.120/55.675/66.935/77.707; shell-startup norc cold 6.908/8.454/9.379/13.496, warm 6.952/10.224/11.854/14.672. Real-rc timed out before prompt; root PAM unavailable by design on this host. Report: evidence/login-bench/infraternal-dev.md. No benchmark scope remained active.Completed and pushed harness commit
d32dca6af6. It adds the standard production/PAM/reference benchmark and staged JSON/human report. Stage self-test: PASS, injected setup delay 40.000 ms observed in setup only; benchmark unittest: PASS. Current-base N=200 p50/p95/p99/max ms: production norc cold 49.779/71.190/91.659/96.641, warm 46.120/55.675/66.935/77.707; shell-only norc cold 6.908/8.454/9.379/13.496, warm 6.952/10.224/11.854/14.672.Completed and pushed test commit
3f593be8e4.python3 -B scripts/bench/test_login.pypassed: 1 test in 0.288 s. The test verifies the injected 40 ms setup interval and unchanged 1/2/3 ms neighboring stages.Completed and pushed documentation/evidence commit
f567fb5a60. Added the root/rootless run guide, full current-base JSON report, local p50/p95/p99/max table, unavailable-path notes, and author checklist. The embedded JSON and all local links validate.Finished. Pushed head SHA:
f567fb5a60.Local measurement: infraternal-dev, Linux 6.12.111+deb13-amd64, 8 CPUs, CPUWeight=10000, loopback-only; N=200. Load averages 1/5/15m were 8.847/13.865/19.498 before and 10.726/12.953/18.611 after. End-to-prompt p50/p95/p99/max ms: current-production norc cold 49.779/71.190/91.659/96.641, warm 46.120/55.675/66.935/77.707; shell-startup norc cold 6.908/8.454/9.379/13.496, warm 6.952/10.224/11.854/14.672. Full stages and unavailable paths are in evidence/login-bench/infraternal-dev.md.
Root-capable run command:
sudo scripts/bench/login --all --json > out.jsonFinal
scripts/verify fastsummary (verbatim):The remaining failure is the inherited static binary-size check: 20,064,976 bytes against 16,404,816 maximum; evidence/prod-batch/fast-complete.log records the same base failure at 20,064,944 bytes. No product behavior was changed. Root PAM variants were documented for the orchestrator and not run on infraternal-dev.
Orchestrator, perf VM (infraternal-perf-test, 4 vCPU, load 0.0): harness finding: under root with SUDO_USER, scratch_root() creates ~USER/.cache/codex-scratch/bench-login as root 0700, so the user's shell cannot read the fixtures and every variant times out (first run: all "timed out"). Workaround: pre-create the directory owned by the user. Needs a harness fix (chown to the measured user). Quick production sample after the workaround (n=5, norc): end-to-prompt p50 41.5 ms cold / 46.9 ms warm, of which request→process-started 37.2 / 42.4 ms (the systemd-run scope creation); process→Hello 0.6 ms, Hello→exec 1.9 ms, exec→prompt 1.9 ms. Full --all run in progress.
kayg referenced this issue2026-10-28 17:53:56 +00:00