[Nix-dev] Why Nix-0.16 so hungry on ressources (mem + cpu) ?

Eelco Dolstra e.dolstra at tudelft.nl
Mon Oct 31 19:50:24 CET 2011


On 10/31/2011 06:51 PM, Lluís Batlle i Rossell wrote:

>> So NixOS system evaluation can run in 63 MiB.
> 
> It depends on having X or not, etc. 

This is a fairly big config with X and KDE.

> And a bad guess on the initial heap size may
> be bad too.

How so?

> And how much of that memory can be freed before building? 

All of it in the case of nix-build, since the process that does the evaluation
(nix-instantiate) finished before the actual build is done (nix-store -r).  This
is not the case for nix-env however.  It probably could be a bit more aggressive
in freeing up GC roots.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list