[slurm-users] SLURM_TMPDIR

Juergen Salk juergen.salk at uni-ulm.de
Tue Dec 10 08:22:38 UTC 2019


Hi Angelines,

we create a job specific scratch directory in the prolog script but
use the task_prolog script to set the environment variable.

In prolog:

scratch_dir=/your/path
/bin/mkdir -p ${scratch_dir}
/bin/chmod 700 ${scratch_dir}
/bin/chown ${SLURM_JOB_USER} ${scratch_dir}

In task_prolog:

scratch_dir=/your/path
echo "export TMPDIR=${scratch_dir}"

The fully qualified pathnames of the prolog and task prolog scripts 
need to be defined in slurm.conf, e.g.:

Prolog=/etc/slurm/prolog
TaskProlog=/etc/slurm/task_prolog

We also clean up job specific scratch directories in the epilog
script.

Best regards
Jürgen

-- 
Jürgen Salk
Scientific Software & Compute Services (SSCS)
Kommunikations- und Informationszentrum (kiz)
Universität Ulm
Telefon: +49 (0)731 50-22478
Telefax: +49 (0)731 50-22471


* Angelines <angelines.alberto at ciemat.es> [191210 07:30]:
> Hi Roger
> 
> thanks for your answer but it doesn't work in our case and I don't
> understand why.
> 
> ________________________________________________
> 
> Angelines Alberto Morillas
> 
> Unidad de Arquitectura Informática
> Despacho: 22.1.32
> Telf.: +34 91 346 6119
> Fax:   +34 91 346 6537
> 
> skype: angelines.alberto
> 
> CIEMAT
> Avenida Complutense, 40
> 28040 MADRID
> ________________________________________________
> 
> El 5/12/19 a las 17:56, Roger Moye escribió:
> > Our prolog script just does this:
> > 
> > export SLURM_TMPDIR="/tmp/slurm/${SLURM_JOB_ID}"
> > 
> > This has worked for us.
> > 
> > -Roger
> > 
> > -----Original Message-----
> > From: slurm-users [mailto:slurm-users-bounces at lists.schedmd.com] On Behalf Of Angelines
> > Sent: Thursday, December 5, 2019 9:58 AM
> > To: slurm-users at lists.schedmd.com
> > Subject: [slurm-users] SLURM_TMPDIR
> > 
> > Hello,
> > 
> > I would like to change the SLURM_TMPDIR that by default is /tmp to other place.
> > 
> > Could you help me? Becuase I have tried with prolog script and in other cluster with a older version this work for me but not now.
> > 
> > tmpFolder="/SCRATCH_LOCAL/$SLURM_JOB_USER/$SLURM_JOB_ID"
> > mkdir -p $tmpFolder
> > echo "export TMPDIR=$tmpFolder"
> > 
> > --
> > ________________________________________________
> > 
> > Angelines Alberto Morillas
> > 
> > 
> > -----------------------------------------------------------------------------------
> > 
> > The information in this communication and any attachment is confidential and intended solely for the attention and use of the named addressee(s). All information and opinions expressed herein are subject to change without notice. This communication is not to be construed as an offer to sell or the solicitation of an offer to buy any security. Any such offer or solicitation can only be made by means of the delivery of a confidential private offering memorandum (which should be carefully reviewed for a complete description of investment strategies and risks). Any reliance one may place on the accuracy or validity of this information is at their own risk. Past performance is not necessarily indicative of the future results of an investment. All figures are estimated and unaudited unless otherwise noted. If you are not the intended recipient, or a person responsible for delivering this to the intended recipient, you are not authorized to and must not disclose, copy, distribute, or retain this message or any part of it. In this case, please notify the sender immediately at 713-333-5440
> 
> 

-- 
GPG A997BA7A | 87FC DA31 5F00 C885 0DC3  E28F BD0D 4B33 A997 BA7A



More information about the slurm-users mailing list