Re: [Nix-dev] nix out of memory

2016-02-29 Thread stewart mackenzie
Brilliant! it was the leftover .target folder!
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nix out of memory

2016-02-29 Thread Oliver Charles
What about hidden directories like .git? You can filter these out. And
also, what is du -hsc for the given src directories?

On Mon, Feb 29, 2016 at 1:17 PM stewart mackenzie 
wrote:

> I have 50 instances of `src = ./.` each time the ./. points to the
> root of a rust project with which consists of 4 files one of which is
> in a folder called src.
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nix out of memory

2016-02-29 Thread stewart mackenzie
I have 50 instances of `src = ./.` each time the ./. points to the
root of a rust project with which consists of 4 files one of which is
in a folder called src.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nix out of memory

2016-02-29 Thread Vladimír Čunát
On 02/29/2016 01:40 PM, Oliver Charles wrote:
> To expand on that, my understanding is that whenever you refer to a
> local path, that entire path is loaded and held in memory.

Yes, while dumping it. For more details see e.g.:
https://github.com/NixOS/nix/issues/358




smime.p7s
Description: S/MIME Cryptographic Signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nix out of memory

2016-02-29 Thread Oliver Charles
To expand on that, my understanding is that whenever you refer to a local
path, that entire path is loaded and held in memory.

On Mon, Feb 29, 2016 at 12:12 PM Vladimír Čunát  wrote:

> On 02/29/2016 12:47 PM, stewart mackenzie wrote:
> > What is the reason for dumping a very large path (> 256MiB)?
>
> You probably have
>   src = ./some/local/path;
> so if you have some (unneeded) large files under that path...
>
> --Vladimir
>
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nix out of memory

2016-02-29 Thread Vladimír Čunát
On 02/29/2016 12:47 PM, stewart mackenzie wrote:
> What is the reason for dumping a very large path (> 256MiB)?

You probably have
  src = ./some/local/path;
so if you have some (unneeded) large files under that path...

--Vladimir




smime.p7s
Description: S/MIME Cryptographic Signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] nix out of memory

2016-02-29 Thread stewart mackenzie
Hello,

We are starting to get this more often:

[1] denis@denis> nix-build --argstr debug true --argstr subnet
development_test --show-trace


~/fractalide/fractalide
warning: dumping very large path (> 256 MiB); this may run out of memory
error: while evaluating the attribute 'configurePhase' of the
derivation 'development_test' at
/home/denis/fractalide/fractalide/fvm/fvm/default.nix:5:5:
while evaluating the attribute 'configurePhase' at
/home/denis/fractalide/fractalide/fvm/fvm/default.nix:8:5:
while evaluating the attribute 'src' of the derivation
'ui_conrod_window' at
/home/denis/fractalide/fractalide/components/ui/conrod/window/default.nix:35:5:
Nix daemon out of memory

What is the reason for dumping a very large path (> 256MiB)?

I cannot reproduce this on my machine.

The machine in question is a hp compaq 8510p, 2 gb ram

We're using the unstable channel.

/sjm
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev