I would probably look at qos's for this:
https://slurm.schedmd.com/qos.html
https://slurm.schedmd.com/resource_limits.html
You can attach them to partitions as well which can be handy.
You probably want to use things like MaxJobs, MaxWallDurationPerJob,
MaxTRESperJob.
-Paul Edmon-
On 2/7/2017 10:11 AM, Hossein Pourreza wrote:
Greetings,
We have a cluster with SLURM 16.05.4 as its workload manager with fair
share policy. From time to time, we need to create accounts for
courses where students' usage gets charged against that account. I am
wondering what the best approach would be to limit the number of cores
and/or walltime of each job asked by each student without creating a
dedicated allocation for a course. For example, an instructor may want
to limit the walltime of student jobs to 2 hours and not more than 2
cores. She/he may also want to put a cap on the number of SUs that a
student can use so a single student cannot burn all the course allocation.
Thanks
Hossein