[slurm-users] Can job submit plugin detect "--exclusive" ?
Renfro, Michael
Renfro at tntech.edu
Tue Feb 22 17:08:26 UTC 2022
For later reference, [1] should be the (current) authoritative source on data types for the job_desc values: some strings, some numbers, some booleans.
[1] https://github.com/SchedMD/slurm/blob/4c21239d420962246e1ac951eda90476283e7af0/src/plugins/job_submit/lua/job_submit_lua.c#L450
From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Christopher Benjamin Coffey <Chris.Coffey at nau.edu>
Date: Tuesday, February 22, 2022 at 11:02 AM
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: Re: [slurm-users] Can job submit plugin detect "--exclusive" ?
External Email Warning
This email originated from outside the university. Please use caution when opening attachments, clicking links, or responding to requests.
________________________________
Hi Greg,
Thank you! The key was to use integer boolean instead of true/false. It seems this is inconsistent for job_desc elements as some use true/false. Have a great one!
Best,
Chris
--
Christopher Coffey
High-Performance Computing
Northern Arizona University
928-523-1167
On 2/18/22, 9:09 PM, "slurm-users on behalf of Greg Wickham" <slurm-users-bounces at lists.schedmd.com on behalf of greg.wickham at kaust.edu.sa> wrote:
Hi Chris,
You mentioned “But trials using this do not seem to be fruitful so far.” . . why?
In our job_submit.lua there is:
if job_desc.shared == 0 then
slurm.user_msg("exclusive access is not permitted with GPU jobs.")
slurm.user_msg("Remove '--exclusive' from your job submission script")
return ESLURM_NOT_SUPPORTED
end
and testing:
$ srun --exclusive --time 00:10:00 --gres gpu:1 --pty /bin/bash -i
srun: error: exclusive access is not permitted with GPU jobs.
srun: error: Remove '--exclusive' from your job submission script
srun: error: Unable to allocate resources: Requested operation is presently disabled
In slurm.h the job_descriptor struct has:
uint16_t shared; /* 2 if the job can only share nodes with other
* jobs owned by that user,
* 1 if job can share nodes with other jobs,
* 0 if job needs exclusive access to the node,
* or NO_VAL to accept the system default.
* SHARED_FORCE to eliminate user control. */
If there’s a case where using “.shared” isn’t working please let us know.
-Greg
From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Christopher Benjamin Coffey <Chris.Coffey at nau.edu>
Date: Saturday, 19 February 2022 at 3:17 am
To: slurm-users <slurm-users at lists.schedmd.com>
Subject: [EXTERNAL] [slurm-users] Can job submit plugin detect "--exclusive" ?
Hello!
The job_submit plugin doesn't appear to have a way to detect whether a user requested "--exclusive". Can someone confirm this? Going through the code: src/plugins/job_submit/lua/job_submit_lua.c I don't see anything related. Potentially "shared" could be possible
in some way. But trials using this do not seem to be fruitful so far.
If a user requests --exclusive, I'd like to append "--exclude=<nodes>" on to their job request to keep them off of certain nodes. For instance, we have our gpu nodes in a default partition with a high priority so that jobs don't land on them until last. And
this is the same for our highmem nodes. Normally this works fine, but if someone asks for "--exclusive" this will land on these nodes quite often unfortunately.
Any ideas? Of course, I could take these nodes out of the partition, yet I'd like to see if something like this would be possible.
Thanks! :)
Best,
Chris
--
Christopher Coffey
High-Performance Computing
Northern Arizona University
928-523-1167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20220222/246c432c/attachment-0001.htm>
More information about the slurm-users
mailing list