wake-latency-1
Wakes take ~850 ms on dev for an app that boots in milliseconds (wakecheck: "woke in 843ms (spawn 669ms)"). The dev box journal for that wake shows a box-wide systemctl daemon-reload of 297 ms inside every generation start (CARLOS_SWAP=overlap, dev and flagship).
Pass 1, all inert apart from speed:
- instance-control starts a generation without a reload when systemd already reads its drop-in (Slice is the host's and NeedDaemonReload=no), and reloads only otherwise, then checks again as before. Checked on systemd 257.13 with a throwaway template.
- health probes back off 5 ms → 50 ms instead of a fixed 150 ms.
- per-step wake timing in the journal (activator: checks/lease/restore/identity/seed/spawn/replicate/sidecar; unit launch vs health; instance-control prepare/reload/start), so pass 2 is measured, not estimated.
Pass 2 (later, separate branch): prepare the unit in parallel with the lease, systemd over D-Bus, a shared S3 client for the lease.
Human
Wake latency pass 1: skip the per-wake daemon-reload, faster health polling, per-step wake timing
Commits
6
Discussions
0
0 open
Tasks
7/8
done
Discussions
- No discussions on this branch yet.
Tasks 7/8 done
- Skip daemon-reload on generation start when systemd already reads the drop-in Done
- Health probe backoff 5 ms to 50 ms Done
- Per-step wake timing in the journal Done
- Touched-package tests, vet, cross-compile Done
- Astra review (round 1: one P2, fixed in dff724ca; round 2 clean) Done
Activity
- task updated: Merged fef28dc5; measure on dev after the next roll
- task updated: Census overlay wake-latency-1 (accepted: census-ruling-wake-latency-1)
- task updated: CI green on the tip
- claude agent, operated by paul@keymail.dev pushed 223bcd81b census: wake-latency-1 accepted on #280 (census-ruling-wake-latency-1)
- claude agent, operated by paul@keymail.dev added task Census overlay wake-latency-1 (accepted: census-ruling-wake-latency-1)
- claude agent, operated by paul@keymail.dev pushed 2e9adeebe census: overlay wake-latency-1 re-freezes doWake, wake and startUnitAt (PROPOSED)
- task updated: Astra review (round 1: one P2, fixed in dff724ca; round 2 clean)
- claude agent, operated by paul@keymail.dev pushed dff724ca9 instancectl: prove a skipped reload by the tier's memory lines too (Astra P2)
- task updated: Touched-package tests, vet, cross-compile
- task updated: Skip daemon-reload on generation start when systemd already reads the drop-in
- task updated: Health probe backoff 5 ms to 50 ms
- task updated: Per-step wake timing in the journal
- claude agent, operated by paul@keymail.dev pushed e58550d83 activator, instancectl: time each wake step in the journal
- claude agent, operated by paul@keymail.dev added task Per-step wake timing in the journal
- claude agent, operated by paul@keymail.dev added task Touched-package tests, vet, cross-compile
- claude agent, operated by paul@keymail.dev added task Astra review (round 1: one P2, fixed in dff724ca; round 2 clean)
- claude agent, operated by paul@keymail.dev added task CI green on the tip
- claude agent, operated by paul@keymail.dev added task Merged fef28dc5; measure on dev after the next roll
- claude agent, operated by paul@keymail.dev added task Skip daemon-reload on generation start when systemd already reads the drop-in
- claude agent, operated by paul@keymail.dev added task Health probe backoff 5 ms to 50 ms
- claude agent, operated by paul@keymail.dev pushed 3bd2b751a activator: probe a waking instance's health from 5 ms, doubling to 50 ms
- claude agent, operated by paul@keymail.dev pushed 12633c31f instancectl: start a generation without a daemon-reload when systemd already reads its drop-in