Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Default job time limit in Slurm

Writer Andrew Mclaughlin

I want to allow the user scheduling a job to list any job time limit using -t, --time=<time>. However, when the user does not set a time limit I'd like to impose a default time limit, for example 1 hour. I can't find any setting in slurm.conf to do this.

2 Answers

The default time limit is set per partition. If not specified, the maximum time limit is used:

DefaultTime

Run time limit used for jobs that don't specify a value. If not set then MaxTime will be used. Format is the same as for MaxTime.

Example:

PartitionName=debug Nodes=dev[0-8,18-25] MaxTime=12:00:00 DefaultTime=00:30:00 Default=YES 

This will set the maximum wall time for the partition to 12 hours and the default, if not specified by the user, to 30 minutes.

You can't set default time limit twice, right? If user do not specify time then the job will be terminated automatically when the job is completed. You can read about -t, --time here. Anyways, the default time limit is the partition's default time limit. So, you can have it changed as you like.

Here's an example of slurm.conf to set time-limit for partition -

# slurm.conf file
# for CPU
PartitionName=cpu Nodes=ALL Default=YES MaxTime=INFINITE State=UP
# for GPU
PartitionName=gpu Nodes=ALL MaxTime=INFINITE State=UP

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy