Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sbatch array job example should include a throttle (i.e. max running tasks) #804

Open
flakrat opened this issue Aug 29, 2024 · 0 comments
Open
Labels
fix: inaccuracy Inaccurate information

Comments

@flakrat
Copy link
Contributor

flakrat commented Aug 29, 2024

What is inaccurate?

Howdy,

We should encourage users to throttle their array jobs. The Practical Examples of sbatch Usage With the --array Flag and Dynamic Indices (and any other array job examples) should include .

Per https://slurm.schedmd.com/job_array.html

A maximum number of simultaneously running tasks from the job array may be specified using a % separator. For example --array=0-15%4 will limit the number of simultaneously running tasks from this job array to 4.

As an aside, an operator can alter an existing array job via scontrol to add a throttle (https://slurm.schedmd.com/scontrol.html):

ArrayTaskThrottle=
Specify the maximum number of tasks in a job array that can execute at the same time. Set the count to zero in order to eliminate any limit. The task throttle count for a job array is reported as part of its ArrayTaskId field, preceded with a percent sign. For example ArrayTaskId=1-10%2 indicates the maximum number of running tasks is limited to 2.

Where is the inaccuracy?

Not an inaccuracy, but an improvement : -) Multiple parts of the https://docs.rc.uab.edu/cheaha/slurm/practical_sbatch/ page provide examples of --array

@flakrat flakrat added the fix: inaccuracy Inaccurate information label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix: inaccuracy Inaccurate information
Projects
None yet
Development

No branches or pull requests

1 participant