Monitoring and Managing Jobs¶
Check Your Jobs¶
View your running and pending jobs:
View jobs on a specific partition:
Detailed Job Information¶
Inspect a running or pending job:
This shows the full job configuration: allocated nodes, resources, time limits, working directory, and more.
Job History and Resource Usage¶
After a job completes, use sacct to see what resources it actually used:
Check your recent job history:
Tip
Use sacct to check whether your jobs are using the resources you requested. If MaxRSS is much lower than your --mem request, reduce memory in future jobs so the unused memory is available to other jobs.
Useful sacct Format Fields¶
| Field | Description |
|---|---|
JobID |
Job identifier |
JobName |
Job name |
Partition |
Partition used |
Elapsed |
Actual wall time |
MaxRSS |
Peak memory usage |
State |
Final job state (COMPLETED, FAILED, TIMEOUT, PREEMPTED, etc.) |
ExitCode |
Exit code (0 = success) |
AllocCPUS |
CPUs allocated |
AllocTRES |
All resources allocated (CPUs, memory, GPUs) |
Requeued and preempted jobs
If your job ran in the preemptable partition, add -D to see every run:
Without -D, sacct shows only the most recent run, so a job that was preempted and requeued will not show its PREEMPTED state. When searching by state rather than by job ID, give both a start and an end time: sacct -u $USER -S 2026-09-01 -E now -s PREEMPTED.
Partition and Node Status¶
See which nodes are available, allocated, or down. Useful for checking whether your target partition has capacity.
This shows node names, state, GPUs, and memory for a specific partition.
Cancel a Job¶
Cancel all your jobs:
Cancel a specific array task:
Reordering Your Own Pending Jobs¶
If you have several jobs waiting and want one of them to start first, move it to the top of your own queue:
To set an order for several jobs, list them comma-separated, first to last:
This only reorders jobs that share all of the following with each other:
- the same user (you)
- the same partition (jobs submitted to more than one partition are not affected)
- the same
--account - the same QOS
Jobs that don't match are left unchanged.
This does not move you ahead of other users
scontrol top changes only the order of your pending jobs. It works by adjusting their nice values, raising the chosen job and lowering your others. Your overall priority against other users is still set by fairshare, and your total throughput stays about the same (or drops slightly).
Checking GPU Utilization in a Running Job¶
If you have a running GPU job, check GPU utilization by connecting to the node:
squeue -u $USER # find your node name
ssh NODE_NAME nvidia-smi # check GPU usage (requires active job on that node)
Note
You can only SSH to compute nodes where you have an active Slurm job.
See Also¶
- Slurm Basics — submitting jobs