-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluating nixpkgs takes a huge RAM #7308
Comments
I can think of some effects.
(2) and (3) may be improved, perhaps. Improving memory usage is by no means easy. By default, a large number of derivations must be evaluated, and cache invalidation is hard ;). |
Thanks a lot for the answer. So also, I did some tests to see if the problem was coming from flake or nix, and when I |
There's NixOS/rfcs#22 which I think is also good for actual modularity, and there's potential for a workaround, although that would tend to make the already complicated module system more complicated. |
#8621 is a duplicate of this, but I'm closing this one, as most of the conversation here is about the specific observations that do not help with solving the problem. |
Describe the bug
All the following commands takes a lot of RAM (I'd say around 1G from looking at htop,
time
tells me 500M) and time (10mn, and it's even worse when the system starts to swap because the RAM is full…) to evaluate on a raspberry pi 3b, even if I they do a no-op (i.e. if the current system is already running this version):As far as I see this is not visible on my main laptop… no idea why.
I'm also confused, sometime
nix run nixpkgs#…
is really long, sometimes takes no time at all.Steps To Reproduce
I also tried with the non-flake version and I got similar issues:
Expected behavior
I expect nix to take close to no RAM/time, especially for a no-op operation.
nix-env --version
output2.11.0
The text was updated successfully, but these errors were encountered: