Are PropagateResourceLimits and PropagateResourceLimitsExcept in slurm.conf (http://slurm.schedmd.com/slurm.conf.html) what you want?
I've found that this in combination with /etc/sysconfig/slurm achieves what we need in this regard (big stack in particular). ~~ Ade -----Original Message----- From: Nicholas McCollum [mailto:[email protected]] Sent: 03 June 2016 19:29 To: slurm-dev <[email protected]> Subject: [slurm-dev] Default non-propagation of ulimits Hello, On my login nodes I run a ulimit of -t 600 to keep users from running jobs on the login nodes. Previously with Torque/Moab, upon executing the job the shell session would spawn and read from my /etc/profiles where I had a script to read the hostname and set ulimits based on hostname. Slurm uses a totally different process to execute the jobs, which is fine... except the jobs inherit the ulimits from my login nodes. I have found that this can be circumvented by using --propagate=NONE while submitting the sbatch command, although I haven't found a way to force this upon all submitted jobs. I've tried using /etc/sysconfig/slurm and it appears this file is ignored. I would even be happy if this is something that I could set in the job_submit.lua plugin, but I have not seen a variable for something like this. Any ideas? ------------------- Nicholas McCollum HPC Systems Administrator Alabama Supercomputer Authority ________________________________ [HPC Wales - www.hpcwales.co.uk] <http://www.hpcwales.co.uk> ________________________________ The contents of this email and any files transmitted with it are confidential and intended solely for the named addressee only. Unless you are the named addressee (or authorised to receive this on their behalf) you may not copy it or use it, or disclose it to anyone else. If you have received this email in error, please notify the sender by email or telephone. All emails sent by High Performance Computing Wales have been checked using an Anti-Virus system. We would advise you to run your own virus check before opening any attachments received as we will not in any event accept any liability whatsoever, once an email and/or attachment is received. High Performance Computing Wales is a private limited company incorporated in Wales on 8 March 2010 as company number 07181701. Our registered office is at Finance Office, Bangor University, Cae Derwen, College Road, Bangor, Gwynedd. LL57 2DG. UK. High Performance Computing Wales is part funded by the European Regional Development Fund through the Welsh Government.
