Slurm is the job scheduler currently implemented on Joker. All users are required to use slurm to submit their jobs to utilize the compute nodes for program execution. The submitted jobs may be put on hold and not start execution right away, but the system is configured to ensure all users have fair access to the available resources and those submissions will run as soon as their position in the queue and the available resources have been met.
There are several basic commands that user can use to manage their jobs:
- sacct is used to report job or job step accounting information about active or completed jobs; use sacct -h for more information.
- sinfo reports the state of partitions and nodes managed by Slurm. It has a wide variety of filtering, sorting, and formatting options; use sinfo –help for more information.
- squeue reports the state of jobs or job steps. It has a wide variety of filtering, sorting, and formatting options. By default, it reports the running jobs in priority order and then the pending jobs in priority order; use squeue –help for more information.
- scancel is used to cancel a pending or running job or job step. It can also be used to send an arbitrary signal to all processes associated with a running job or job step; use scancel –help for more information.
To submit a job to the queue, use sbatch.
To run a job interactively, use srun. Be aware: srun can be called inside of an sbatch script, but it doesn’t function in the same way.