SLURM Kommandos

SLURM commands

With the current cluster configuration, you normally do not need to specify a queue or partition name* when submitting new compute jobs, as this will be done automatically by Slurm, depending on the job's properties (e.g. the run time or special resources like accelerators).

Members of multiple projects however, should make sure to choose the proper project when submitting new jobs (e.g. with the parameter -A <project name>).

  • sbatch <job script>
    This puts a new job in the queue. Please refer sbatch – parameters for further important parameters of commands and job scripts.
    More detailed examples of job scripts are available under “script”.
  • squeue
    This shows an overview of all active and waiting jobs of the job queue.
  • sjobs <Job-ID>
    This is a special TU Darmstadt script for showing detailed information about all your pending and running jobs or the job with the given ID.
  • scancel <Job-ID>
    This deletes a job from the queue or terminates an active job.
    • scancel -u <TU-ID>
      Deletes/terminates all own jobs.
  • csreport
    This is a special TU Darmstadt script for showing the resource usage of the last months and for each of your projects (in comparison to the proposed value). This command shows all values in core*hours per month. For the current month you can also verify your special user part for each of your projects (important for projects with multiple users).
    • sreport
      This is the standard Slurm command and shows the resource usage separated for each of your projects. Attention: The values are given in core*minutes.
      • In addition you can get a report of a specific month or any time period. For that you need to give the parameters cluster Account and the start and end point. The following example shows, how to get a report (core minutes) of the month April 2016:
        sreport cluster Account Start=2016-04-01 End=2016-05-01
  • csum
    This is a special TU Darmstadt script for showing the resource usage in total for each of your projects (in comparison to the approved value). This command shows all values in core*hours.

* except course / training users