During nixos-rebuild
, if multiple large packages have to built locally, the load average goes significantly beyond the number of threads. This, if I understand correctly, leads to sub optimal performance.
For example, building top of master with a modified version of mesa, the load average on my 32 thread system got up to 94: https://i.imgur.com/3jxraZG.png
This is also a problem in systems with disproportionately more threads than ram, like a dom0 NixOS.
Is there a way to properly limit this?