[slurm-users] Tuning MaxJobs and MaxJobsSubmit per user and for the whole cluster?

Sebastian T Smith stsmith at unr.edu
Mon Aug 10 20:43:25 UTC 2020

My rule of thumb for our cluster is 1,024 jobs/node.  Our nodes have 32 cores, so we're 32x core count (converting to Paul's units).  We have 120 nodes with a maximum of 122,880 jobs.

At a high-level, nodes are allocated to different partitions and each partition is allocated a maximum number of jobs equal to 1024 * num_nodes (reality isn't quite this simple).  Our largest partition features 54,272 max jobs (53 nodes).  I've seen this maxed out a number of times with a large number of very short jobs, and with job arrays.

This setup has required a bit of tuning.  Adjusting sched_max_job_start and sched_min_interval has been sufficient to keep Slurm responsive when users are submitting or cancelling a large number of jobs.  Backfill tuning has been difficult because we made some poor decisions setting DefaultTime at the epoch of our system.  Overall performance has been excellent after minimal tuning.

- Sebastian


[University of Nevada, Reno]<http://www.unr.edu/>
Sebastian Smith
High-Performance Computing Engineer
Office of Information Technology
1664 North Virginia Street
MS 0291

work-phone: 775-682-5050<tel:7756825050>
email: stsmith at unr.edu<mailto:stsmith at unr.edu>
website: http://rc.unr.edu<http://rc.unr.edu/>

From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Paul Edmon <pedmon at cfa.harvard.edu>
Sent: Friday, August 7, 2020 6:22 AM
To: slurm-users at lists.schedmd.com <slurm-users at lists.schedmd.com>
Subject: Re: [slurm-users] Tuning MaxJobs and MaxJobsSubmit per user and for the whole cluster?

My rule of thumb is that the MaxJobs for the entire cluster is twice the number of cores you have available.  That way you have enough jobs running to fill all the cores and enough jobs pending to refill them.

As for per user MaxJobs, it just depends on what you think the maximum number any user can run with out causing damage to themselves, the underlying filesystems, and interfering with other users.  Practical experience has lead to us setting that limit to be 10,000 on our cluster, but I imagine it will vary from location to location.

-Paul Edmon-

On 8/6/2020 10:31 PM, Hoyle, Alan P wrote:
I can't find any advice online about how to tune things like MaxJobs on a per-cluster or per-user basis.

As far as I can tell, it seems that the default install cluster MaxJobs seems to be 10,000 and MaxSubmit as the same.  Those seem pretty low to me:  are there resources that get consumed if maxSubmit is much higher or can we raise this without much worry?

Is there advice anywhere about tuning these?  When I google, all I can find are the generic "here's how to change this" and various universities' documentation of "here are the limits we have set."


Alan Hoyle - alanh at unc.edu<mailto:alanh at unc.edu>
Bioinformatics Scientist
UNC Lineberger - Bioinformatics Core

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200810/0b5857a2/attachment.htm>

More information about the slurm-users mailing list