Setting TMPDIR

From HPCwiki
Revision as of 15:43, 8 December 2013 by Megen002 (talk | contribs)
Jump to navigation Jump to search

Many programs require writing intermediary or temporary information. A process may even require writing to a temporary location without a user knowing it. For instance, the command sort, part of the bash toolkit, requires a lot of temporary file space when sorting large volumes of data. Often programs take the system default, which is usually /tmp on Linux systems. The /tmp partition is however often too limited in size and can get filled up. When this happens all users that require write access to /tmp will experience problems in running jobs, which can range from unexpected quitting of processes, to erroneous output.


<source lang='bash'> mkdir /lustre/scratch/WUR/ABGC/[user]/tmp </source>

<source lang='bash'> export TMPDIR=/lustre/scratch/WUR/ABGC/[user]/tmp </source>