Re: [slurm-users] Per-job TMPDIR: how to lookup gres allocation in prolog?

2021-11-17 Thread Mark Dixon
On Wed, 17 Nov 2021, Bjørn-Helge Mevik wrote: ... We are using basically the same setup, and have not found any other way than running "scontrol show job ..." in the prolog (even though it is not recommended). I have yet to see any problems arising from it, but YMMW. If you find a different

Re: [slurm-users] Per-job TMPDIR: how to lookup gres allocation in prolog?

2021-11-17 Thread Bjørn-Helge Mevik
Mark Dixon writes: > Unfortunately, I've not found anything in the Prolog environment (or > stored on disk under /var/spool/slurmd) containing the gres > allocations for the job. [...] > Is there a better way to get the job's gres information from within > the prolog, please? We are using

[slurm-users] Per-job TMPDIR: how to lookup gres allocation in prolog?

2021-11-16 Thread Mark Dixon
Hi everyone, I'd like to configure slurm such that users can request an amount of disk space for TMPDIR... and for that request to be reserved and quota'd via commands like "sbatch --gres tmp:10G jobscript.sh". Probably reinventing someone's wheel, but I'm almost there. I have: - created a