Job Priority

Factors affecting Priority

The priority of a job is mainly determined by the following factors, in order of importance

User Shares

The shares a user has in the sense of fairshare scheduling constitute the most important factor. The more shares a users has, the higher the priority of his or her job will be. Consuming CPU time reduces the number of shares a user has and thus lowers the priority of any waiting jobs.

Age of Job

How long the job has been waiting in the queue is another important factor. However the value is limited and reaches a maximum after a certain time.

Size of Job

Larger jobs in term of number of nodes requested will have their priority increased slightly.

Viewing Priorities

The factors affecting the priority of the currently waiting jobs can be viewed with the following command, which sorts the results according to total priority:

sprio -l | sort -nk3