From 8824d60fe549e2fc9b5a852fc1b967eca241ea77 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 20 Nov 2009 17:12:38 +0000 Subject: * Remove the --use-atime / --max-atime garbage collector flags. Many (Linux) machines no longer maintain the atime because it's too expensive, and on the machines where --use-atime is useful (like the buildfarm), reading the atimes on the entire Nix store takes way too much time to make it practical. --- doc/manual/nix-store.xml | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'doc') diff --git a/doc/manual/nix-store.xml b/doc/manual/nix-store.xml index 9079fa3398b4..562a5439a6eb 100644 --- a/doc/manual/nix-store.xml +++ b/doc/manual/nix-store.xml @@ -213,8 +213,6 @@ linkend="sec-nix-build">nix-build does. bytes nrlinks - atime - @@ -292,42 +290,6 @@ options control what gets deleted and in what order: - atime - - Only delete a store path if its last-accessed time - is less than atime. This allows you to - garbage-collect only packages that haven’t been used recently. - The time is expressed as the number of seconds in the Unix epoch, - i.e., since 1970-01-01 00:00:00 UTC. An easy way to convert to - this format is date +%s -d "date - specification". - - For directories, the last-accessed time is the highest - last-accessed time of any regular file in the directory (or in any - of its subdirectories). That is, the atime - field maintained by the filesystem is ignored for directories. - This is because operations such as rebuilding the - locate database tend to update the - atime values of all directories, so they’re not - a useful indicator of whether a package was recently used. - - Note that nix-store --optimise reads all - regular files in the Nix store, and so causes all last-accessed - times to be set to the present time. This makes - ineffective (for a while at - least). - - - - - - Delete store paths in order of ascending - last-accessed time. This is useful in conjunction with the other - options to delete only the least recently used - packages. - - - @@ -358,13 +320,6 @@ deleting `/nix/store/kq82idx6g0nyzsp2s14gfsc38npai7lf-cairo-1.0.4.tar.gz.drv' -To delete unreachable paths not accessed in the last two months: - - -$ nix-store --gc -v --max-atime $(date +%s -d "2 months ago") - - - To delete at least 100 MiBs of unreachable paths: -- cgit 1.4.1