banger/internal/daemon
Thales Maciel c8d9a122f9
Speed up VM create with work seeds
Beat VM create wall time without changing VM semantics.

Generate a work-seed ext4 sidecar during image builds and rootfs rebuilds, then clone and resize that seed for each new VM instead of rebuilding /root from scratch. Plumb the new seed artifact through config, runtime metadata, store state, runtime-bundle defaults, doctor checks, and default-image reconciliation so older images still fall back cleanly.

Add a daemon TAP pool to keep idle bridge-attached devices warm, expose stage timing in lifecycle logs, add a create/SSH benchmark script plus Make target, and teach verify.sh that tap-pool-* devices are reusable capacity rather than cleanup leaks.

Validated with go test ./..., make build, ./verify.sh, and make bench-create ARGS="--runs 2".
2026-03-18 21:22:12 -03:00
..
capabilities.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
capabilities_test.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
daemon.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
daemon_test.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
doctor.go Add vsock-backed SSH session reminders 2026-03-18 20:14:51 -03:00
fastpath_test.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
imagebuild.go Add vsock-backed SSH session reminders 2026-03-18 20:14:51 -03:00
imagebuild_test.go Add vsock-backed SSH session reminders 2026-03-18 20:14:51 -03:00
images.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
logger.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
logger_test.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
nat.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
nat_test.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
preflight.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
snapshot.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
snapshot_test.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
tap_pool.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
vm.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
vm_test.go Harden VM delete cleanup and SQLite settings 2026-03-18 20:39:31 -03:00