The Slurm queueing system

Aiming towards an efficient usage of the computation resources available at the Center for Scientific Computing, we utilize the Slurm software for queue management.

Although Slurm has a good amount of commands and possibilities when it comes to managing jobs, here we offer you a list of the most common options.

 

  • squeue
  • To display jobs sent to the queueing system, one can run

     squeue
                      

     

  • sbatch
  • To send jobs to the queueing system one must execute

     sbatch -A name-project -p queue-name script
                      

    where the name of the project (name-project) whose execution time will be spent, along with the name of the queue (name-queue) which will be used.


    Through the sbatch command one can request more specific requests, such as for instance the number of cores needed to carry out the job, indicated with the -n option with the specific configuration of the CCC-UAM.

     

  • sinfo
  • In order to get a list of the queues available we can execute

     sinfo                  

    whereas if we want to be more specific we can execute

     projects                  

    which will show the specific queues where the user can send jobs.

     

  • scancel
  • This command will erase from the queueing system the indicated job. One must remember that this command can erase all your jobs if executed with the following option:

     scancel -u user-name                  

    Updated on November 4, 2025.