Skip to content

Free evaluation memory one nix-env finished the evaluation #54

Open

Description

@viric

That would free up lots of useless memory for the realisation of the build paths, once all .drv files have been generated.

Otherwise, it's hard to run two nix-env at once in the sheevaplug, even if one is only realising derivations.

Activity

  1. abbradar commented on Jun 3, 2019

    @abbradar
    Member

    The same problem exists with e.g. nix-build. For example nox-review runs nix-build for several tens of derivations and nix-build ends up eating 5GB of host memory without doing anything.

  2. added a commit that references this issue on Aug 28, 2020
  3. tg-x commented on Nov 10, 2020

    @tg-x
    Member

    Any chance of having this issue fixed?
    What needs to be done still for this?

    It's becoming impossible to build a system without running out of memory.

    # nixos-rebuild build
    
    ...
    
    Out of memory: Killed process 16349 (nix-build) total-vm:2886952kB, anon-rss:10816kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:4964kB oom_score_adj:0
    
    # nix-build --version
    nix-build (Nix) 2.3.4
    
  4. Atemu commented on Jan 13, 2021

    @Atemu
    Member

    I also ran across this and found an easily accessible reproducer in Nixpkgs that makes my system go OOM and kill Nix after instantiation on my 16GB machine:

    nix build nixpkgs.nixosTests.installer
    
  5. stale commented on Jul 12, 2021

    @stale

    I marked this as stale due to inactivity. → More info

  6. added
    feature
    and removed on Sep 12, 2022
  7. added a commit that references this issue on Jan 1, 2024
  8. removed their assignment
    on Apr 26, 2024
  9. added a commit that references this issue on Feb 26, 2025
  10. added a commit that references this issue on Mar 5, 2025
  11. added a commit that references this issue on Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureperformance

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions