where TRES_weight_<type> might be GPU, see the usage weight in the table https://www.cuhk.edu.hk/itsc/hpc/slurm.html, and a negative nice_factor can only be set by privileged users,
Nice Factor
Users can adjust the priority of their own jobs by setting the nice value on their jobs. Like the system nice, positive values negatively impact a job's priority and negative values increase a job's priority. Only privileged users can specify a negative value. The adjustment range is +/-2147483645.
the fairshare can be obtained via sshare, and the calculated priority can be obtained via sprio.
the formula for job priority is given by
we can find those weights
only the
PriorityWeightFairShare
is nonzero, and this agrees withthen the formula can be simplified as
where
TRES_weight_<type>
might be GPU, see the usage weight in the table https://www.cuhk.edu.hk/itsc/hpc/slurm.html, and a negativenice_factor
can only be set by privileged users,sshare
, and the calculated priority can be obtained viasprio
.references