Add automatic garbage collection
Nix can now automatically run the garbage collector during builds or while adding paths to the store. The option "min-free = <bytes>" specifies that Nix should run the garbage collector whenever free space in the Nix store drops below <bytes>. It will then delete garbage until "max-free" bytes are available. Garbage collection during builds is asynchronous; running builds are not paused and new builds are not blocked. However, there also is a synchronous GC run prior to the first build/substitution. Currently, no old GC roots are deleted (as in "nix-collect-garbage -d").
Showing
- doc/manual/release-notes/rl-1.12.xml 4 additions, 0 deletionsdoc/manual/release-notes/rl-1.12.xml
- src/libstore/build.cc 5 additions, 0 deletionssrc/libstore/build.cc
- src/libstore/gc.cc 70 additions, 0 deletionssrc/libstore/gc.cc
- src/libstore/globals.hh 9 additions, 1 deletionsrc/libstore/globals.hh
- src/libstore/local-store.cc 18 additions, 0 deletionssrc/libstore/local-store.cc
- src/libstore/local-store.hh 21 additions, 0 deletionssrc/libstore/local-store.hh
Loading
Please register or sign in to comment