Submit Jobs
Use | Torque/Moab Command | Slurm Equivalent |
---|---|---|
Submit batch job | qsub <jobscript> |
sbatch <jobscript> |
Submit interactive job | qsub -I [options] |
|
Interactive jobs
Submitting interactive jobs is a bit different in Slurm. When the job is ready, one is logged into the login node they submitted the job from. From there, one can then login to one of the reserved nodes.
You can use the custom tool sinteractive
as:
[xwang@pitzer-login04 ~]$ sinteractive salloc: Pending job allocation 14269 salloc: job 14269 queued and waiting for resources salloc: job 14269 has been allocated resources salloc: Granted job allocation 14269 salloc: Waiting for resource configuration salloc: Nodes p0591 are ready for job ... ... [xwang@p0593 ~] $ # can now start executing commands interactively
Or, you can use salloc
as:
[user@pitzer-login04 ~] $ salloc -t 00:05:00 --ntasks-per-node=3 salloc: Pending job allocation 14209 salloc: job 14209 queued and waiting for resources salloc: job 14209 has been allocated resources salloc: Granted job allocation 14209 salloc: Waiting for resource configuration salloc: Nodes p0593 are ready for job # normal login display $ squeue JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) 14210 serial-48 bash usee R 0:06 1 p0593 [user@pitzer-login04 ~]$ srun --jobid=14210 --pty /bin/bash # normal login display [user@p0593 ~] $ # can now start executing commands interactively
Manage Jobs
Use | Torque/Moab Command | Slurm Equivalent |
---|---|---|
Delete a job | qdel <jobid> |
scancel <jobid> |
Hold a job | qhold <jobid> |
scontrol hold <jobid> |
Release a job | qrls <jobid> |
scontrol release <jobid> |
Monitor Jobs
Use | Torque/Moab Command | Slurm Equivalent |
---|---|---|
Job list summary | qstat or showq |
squeue |
Detailed job information | qstat -f <jobid> or checkjob <jobid> |
sstat -j <jobid> or scontrol show job <jobid> |
Job information by a user | qstat -u <user> |
squeue -u <user> |
View job script (system admin only) |
js <jobid> |
jobscript <jobid> |
Show expected start time | showstart <job ID> |
squeue --start --jobs=<jobid> |