Closed lf- closed 1 year ago
You can get the systemd-analyze plot outputs here: https://gist.github.com/lf-/961f8f6be2de4f08f33a0cae505fd4c8
(systemd bug this works around: https://github.com/systemd/systemd/issues/29388)
oh, the nonsense device times are actually just, the entire initrd basically. https://github.com/systemd/systemd/issues/29010
Surplus commit has been dropped.
This is based on my work on MapleCTF to run microvm.nix inside a docker container (incidentally, an awesome microvm.nix use case) and have the size not cause substantial issues.
Overall this saves about 700MB of closure size of a naive no-op VM configuration at practically the sole cost of eating a qemu compile.
Without:
With:
This looks impressive, and perhaps it is, but there is a lot of speed to still get out. The dominant factors in each system startup are:
Old:
New:
This group (in total, 3.1s ish in initrd; I have no idea why they are this bad!):
Then:
TL;DR: overall a huge improvement but it could have another 50% shaved off, and I really have no idea why all that hardware init takes 3 seconds!