Skip to content

perf: Retry darwin-vz vsock connects faster#374

Draft
lox wants to merge 1 commit into
mainfrom
lox/darwin-vz-fast-vsock-retry
Draft

perf: Retry darwin-vz vsock connects faster#374
lox wants to merge 1 commit into
mainfrom
lox/darwin-vz-fast-vsock-retry

Conversation

@lox
Copy link
Copy Markdown
Contributor

@lox lox commented May 17, 2026

The darwin-vz helper was waiting 100ms between failed guest VSOCK connection attempts while the VM was still booting. The minimal darwin-vz harness uses a 10ms retry cadence, and local TTI experiments showed that the coarser production interval can add avoidable readiness latency before the first guest exec.

This changes only the guest VSOCK connect retry sleep from 100ms to 10ms. The overall launch timeout and serial fallback behavior stay the same; the helper just checks for guest readiness more frequently during the existing timeout window.

Local benchmark context from the rootfs boot experiments:

  • baseline Cleanroom create + first exec: ~523ms median TTI
  • faster VSOCK retry: ~486ms median TTI

Validation:

  • scripts/build-darwin-vz-helper.sh dist/cleanroom-darwin-vz.app
  • mise exec -- go test ./internal/backend/darwinvz

A follow-up benchmark attempt against a fresh isolated state directory paid cold runtime preparation and timed out before producing useful warm TTI samples, so I did not include it as validation evidence.

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