From 345a95afe9e265bc433eea46c32c507ea84a72a4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 16 Feb 2006 13:58:10 +0000 Subject: * Allow the size of the GC reserved file to be specified in nix.conf through the new `gc-reserved-space' option. --- doc/manual/conf-file.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc') diff --git a/doc/manual/conf-file.xml b/doc/manual/conf-file.xml index 629dd3bac788..9ff34324f20f 100644 --- a/doc/manual/conf-file.xml +++ b/doc/manual/conf-file.xml @@ -52,6 +52,26 @@ env-keep-derivations = false + gc-reserved-space + + This option specifies how much space should be + reserved in normal use so that the garbage collector can run + succesfully. Since the garbage collector must perform Berkeley DB + transactions, it needs some disk space for itself. However, when + the disk is full, this space is not available, so the collector + would not be able to run precisely when it is most needed. + + For this reason, when Nix is run, it allocates a file + /nix/var/nix/db/reserved of the size + specified by this option. When the garbage collector is run, this + file is deleted before the Berkeley DB environment is opened. + This should give it enough room to proceed. + + The default is 1048576 (1 + MiB). + + + env-keep-derivations If false (default), derivations -- cgit 1.4.1