carlos / platform Public

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