Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor


Table of Contents

...

Note:  Any time <userid> is mentioned in this document, it should be replaced with your HMS account, formerly called an eCommons ID (and omit the <>). Likewise, <jobid> should be replaced with an actual job ID, such as 12345. The name of a batch job submission script should be inserted wherever <jobscript> is mentioned.

SLURM

command

Sample command syntaxMeaning
sbatchsbatch <jobscript>Submit a batch (non-interactive) job.
srunsrun --pty -t 0-0:5:0 -p interactive /bin/bashStart an interactive session for five minutes in the interactive queue.
squeuesqueue -u <userid>

View status of your jobs in the queue. Only non-completed jobs will be shown.

We have an easier-to-use alternative command called O2squeue.

scontrolscontrol show job <jobid>Look at a running job in detail. For more information about the job, add the -dd parameter.
scancelscancel <jobid>Cancel a job. scancel can also be used to kill job arrays or job steps.
scontrolscontrol hold <jobid>  Pause a job
scontrolscontrol release <jobid>Release a held job (allow it to run)
sacctsacct -j <jobid>

Check job accounting data. Running sacct is most useful for completed jobs.

We have an easier-to-use alternative command called O2sacct.

sinfosinfoSee node and partition information. Use the -N parameter to see information per node.

...