bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #13774] Why is updatedb prefering /var/tmp over /tmp for temporary


From: James Youngman
Subject: [bug #13774] Why is updatedb prefering /var/tmp over /tmp for temporary files?
Date: Tue, 12 Jul 2005 20:52:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050610 Firefox/1.0.4 (Debian package 1.0.4-3)

Follow-up Comment #1, bug #13774 (project findutils):

Traditionally /var/tmp has greater capacity, and is not memory-backed.  GNU
sort uses a mixture of RAM and temporary files, spilling out to disk for
datasets larger than "--buffer-size".     Therefore it's especially silly to
use /tmp for scratch files on systems where this is actually stored in VM
(e.g. Solaris).    There have also been bug reports in the past caused by
people running out of space in /tmp (or /).   Some systems have a relatively
vanilla root filesystem but vast numbers of files in other filsystems.  

In short, /var/tmp is traditionally bigger and that can sometimes make the
difference between working and not working.

If the "sort" command is leaving temporary files behind, that might be a bug
in sort (unless perhaps it has been killed).

If you want sort to use a different subdirectory I suggest you set TMPDIR in
/etc/updatedb.conf.   I will modify updatedb itself not to override TMPDIR if
it is already set.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13774>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]