[slurm-users] Slurm Environment Variable for Memory

Bjørn-Helge Mevik b.h.mevik at usit.uio.no
Tue Aug 21 00:39:45 MDT 2018


"Juan A. Cordero Varelaq" <bioinformatica-ibis at us.es> writes:

> I am just running an interactive job with "srun -I --pty /bin/bash" and then
> run "echo $SLURM_MEM_PER_NODE", but it shows nothing. Does it have to be
> defined in any conf file?

If you read srun(1) or sbatch(1), you will see that the SLURM_MEM_*
variables correspond to what you have specified with the corresponding
--mem* switches.  If you haven't specified the switches, there is no
value to set the variables to (perhaps srun/sbatch use the DefMemPer*
parametres from slurm.conf if they are set, I haven't checked).

-- 
Regards,
Bjørn-Helge Mevik, dr. scient,
Department for Research Computing, University of Oslo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180821/728572a4/attachment.sig>


More information about the slurm-users mailing list