DeterminateSystems / nix-netboot-serve

Make any NixOS system netbootable with 10s cycle times.
MIT License
206 stars 11 forks source link

Memory usage of nix_cpio_generator #22

Open mweinelt opened 9 months ago

mweinelt commented 9 months ago

Very cool project. I'm giving it a spin and I run it on a VM with 3C/8 GB RAM.

For a very minimal configuration with a closure size of ~742 MB the generation of the initrd cpio archive reliable runs out of memory within seconds.

Can you clarify, if that is intended and necessary?

Update: Needed ~11.5 GB of memory in the end, but I wonder if nix-cpio-generator could manage memory better. The closure is likely to grow a bit more, and requiring 15 times as much memory as the closure size is wild.