aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/nix-store.xml
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-11-20 17:12:38 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-11-20 17:12:38 +0000
commit8824d60fe549e2fc9b5a852fc1b967eca241ea77 (patch)
treebf0f96064f5b77dd11bdcf0cf9bee58c03d3bda5 /doc/manual/nix-store.xml
parent997db91e07882f0555e224a2687189a362567577 (diff)
* 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.
Diffstat (limited to 'doc/manual/nix-store.xml')
-rw-r--r--doc/manual/nix-store.xml45
1 files changed, 0 insertions, 45 deletions
diff --git a/doc/manual/nix-store.xml b/doc/manual/nix-store.xml
index 9079fa339..562a5439a 100644
--- a/doc/manual/nix-store.xml
+++ b/doc/manual/nix-store.xml
@@ -213,8 +213,6 @@ linkend="sec-nix-build"><command>nix-build</command></link> does.</para>
</group>
<arg><option>--max-freed</option> <replaceable>bytes</replaceable></arg>
<arg><option>--max-links</option> <replaceable>nrlinks</replaceable></arg>
- <arg><option>--max-atime</option> <replaceable>atime</replaceable></arg>
- <arg><option>--use-atime</option></arg>
</cmdsynopsis>
</refsection>
@@ -292,42 +290,6 @@ options control what gets deleted and in what order:
</varlistentry>
- <varlistentry><term><option>--max-atime</option> <replaceable>atime</replaceable></term>
-
- <listitem><para>Only delete a store path if its last-accessed time
- is less than <replaceable>atime</replaceable>. 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 <literal>date +%s -d "<replaceable>date
- specification</replaceable>"</literal>.</para>
-
- <para>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 <literal>atime</literal>
- field maintained by the filesystem is ignored for directories.
- This is because operations such as rebuilding the
- <command>locate</command> database tend to update the
- <literal>atime</literal> values of all directories, so they’re not
- a useful indicator of whether a package was recently used.</para>
-
- <para>Note that <command>nix-store --optimise</command> reads all
- regular files in the Nix store, and so causes all last-accessed
- times to be set to the present time. This makes
- <option>--max-atime</option> ineffective (for a while at
- least).</para></listitem>
-
- </varlistentry>
-
- <varlistentry><term><option>--use-atime</option></term>
-
- <listitem><para>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.</para></listitem>
-
- </varlistentry>
-
</variablelist>
</para>
@@ -358,13 +320,6 @@ deleting `/nix/store/kq82idx6g0nyzsp2s14gfsc38npai7lf-cairo-1.0.4.tar.gz.drv'
</para>
-<para>To delete unreachable paths not accessed in the last two months:
-
-<screen>
-$ nix-store --gc -v --max-atime $(date +%s -d "2 months ago")</screen>
-
-</para>
-
<para>To delete at least 100 MiBs of unreachable paths:
<screen>