Job Priority#
The Slurm scheduler manages resources and determines the order in which jobs are considered for execution. On Aire and Calder, job priority is influenced by several factors, including fair share, job age, job size, partition, Quality of Service (QoS), and other scheduling factors configured by the system.
Fair share is intended to balance resource usage between users and groups:
When you use a larger share of the system’s resources, your fair share generally decreases and your jobs receive lower priority.
When you use fewer resources relative to your assigned share, your fair share generally increases and your jobs receive higher priority.
The effect of previous resource usage decreases over time according to the scheduler’s configured decay.
Fair share does not impose a fixed quota on users. Instead, it is one component of job priority that influences which jobs are scheduled first. The resources that contribute to fair share are determined by the system’s Slurm configuration and may include CPUs, memory, GPUs, or other trackable resources.
What to expect when submitting jobs#
Fair share is only one component of job priority. Slurm combines the enabled priority factors according to the system configuration, so a job with a stronger fair share does not necessarily run before every job with a weaker fair share. citeturn0search1
As a result:
A job with a stronger fair share does not necessarily run immediately.
A job submitted later can sometimes run before an older job if it has a sufficiently higher overall priority and the required resources are available.
Job priority can change while a job is waiting in the queue.
Small jobs may sometimes be scheduled around larger jobs when this allows the scheduler to use otherwise idle resources.
Requesting different resources can affect both the job’s priority and how easily it fits into available resources.
Useful commands#
Command |
Purpose |
|---|---|
|
View fair share and usage information |
|
View priority components for your pending jobs |
|
View priority components for a specific job |
|
View your queued and running jobs |
|
View an estimated start time for a pending job |
For more information, see the official Slurm documentation for Multifactor Job Priority, Fair Tree Fairshare, sshare, and sprio.