-
-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Open
Labels
0.kind: enhancementAdd something new or improve an existing system.Add something new or improve an existing system.
Description
Issue description
nix-env uses so much memory that it fails on allocation when querying packages; far more than should be for a simple package manager.
Steps to reproduce
On a system with 2gb or less:
[demo@nixos:~]$ nix-env -qa
GC Warning: Out of memory - trying to allocate requested amount (336 bytes)...
GC Warning: Header allocation failed: dropping block
GC Warning: Failed to expand heap by 8388608 bytes
GC Warning: Failed to expand heap by 65536 bytes
GC Warning: Out of Memory! Heap size: 736 MiB. Returning NULL!
error: out of memory
Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.
- system:
"x86_64-linux" - host os:
Linux 4.14.32, NixOS, 18.03.131807.489a14add9a (Impala) - multi-user?:
yes - sandbox:
no - version:
nix-env (Nix) 2.0 - channels(demo):
"nixpkgs-18.09pre134800.e42ae4e586c" - channels(root):
"nixos-18.03.131807.489a14add9a" - nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
temoto, drewr, bhipple, x65nchanter, uxes and 43 more
Metadata
Metadata
Assignees
Labels
0.kind: enhancementAdd something new or improve an existing system.Add something new or improve an existing system.