[Nix-dev] NixOS on embedded systems

Lluís Batlle i Rossell viriketo at gmail.com
Tue Jul 20 16:34:17 CEST 2010


On Tue, Jul 20, 2010 at 03:20:39PM +0200, Eelco Dolstra wrote:
> Hi,
> 
> On 07/17/2010 02:33 PM, Lluís Batlle i Rossell wrote:
> 
> >> My anecdotal evidence suggests that gcc is not the only problem. I saw nixos-
> >> rebuild fail with out of memory error in an OpenVZ container with 256M of RAM 
> >> while it was evaluating the config.
> > 
> > The amount of memory needed for nix evaluation, for the light nixpkgs I
> > described with fetchurl-like attributes, can be much much less.
> 
> I'm not so sure about that.  I think the main cost in a nixos-rebuild evaluation
> is in the NixOS configuration evaluation, not in Nixpkgs.
Is that any peculiar, so nix could be optimized for the NixOS tricks?
> 
> BTW, the evaluator currently still lacks a garbage collector.  If we build it
> with libgc, it should run in a lot less memory.
Ok, do you have some figures on what libgc would allow to achieve for NixOS
evaluation?



More information about the nix-dev mailing list