mirror of https://github.com/CrimsonTome/tldr.git
sacct, scancel, srun: add page (#4600)
parent
a00334e5ad
commit
91fd123241
|
@ -0,0 +1,20 @@
|
||||||
|
# sacct
|
||||||
|
|
||||||
|
> Display accounting data from the Slurm service.
|
||||||
|
> More information: <https://slurm.schedmd.com/sacct.html>.
|
||||||
|
|
||||||
|
- Display job id, job name, partition, account, number of allocated cpus, job state, and job exit codes for recent jobs:
|
||||||
|
|
||||||
|
`sacct`
|
||||||
|
|
||||||
|
- Display job id, job state, job exit code for recent jobs:
|
||||||
|
|
||||||
|
`sacct --brief`
|
||||||
|
|
||||||
|
- Display the allocations of a job:
|
||||||
|
|
||||||
|
`sacct --jobs {{job_id}} --allocations`
|
||||||
|
|
||||||
|
- Display elapsed time, job name, number of requested CPUs, and memory requested of a job:
|
||||||
|
|
||||||
|
`sacct --jobs {{job_id}} --format={{elapsed}},{{jobname}},{{reqcpus}},{{reqmem}}`
|
|
@ -0,0 +1,12 @@
|
||||||
|
# scancel
|
||||||
|
|
||||||
|
> Cancel a Slurm job.
|
||||||
|
> More information: <https://slurm.schedmd.com/scancel.html>.
|
||||||
|
|
||||||
|
- Cancel a job using its ID:
|
||||||
|
|
||||||
|
`scancel {{job_id}}`
|
||||||
|
|
||||||
|
- Cancel all jobs from a user:
|
||||||
|
|
||||||
|
`scancel {{user_name}}`
|
|
@ -0,0 +1,16 @@
|
||||||
|
# srun
|
||||||
|
|
||||||
|
> Create an interactive slurm job or connect to an existing job.
|
||||||
|
> More information: <https://slurm.schedmd.com/srun.html>.
|
||||||
|
|
||||||
|
- Submit a basic interactive job:
|
||||||
|
|
||||||
|
`srun --pty /bin/bash`
|
||||||
|
|
||||||
|
- Submit an interactive job with different attributes:
|
||||||
|
|
||||||
|
`srun --ntasks-per-node={{num_cores}} --mem-per-cpu={{memory_MB}} --pty /bin/bash`
|
||||||
|
|
||||||
|
- Connect to a worker node with a job running:
|
||||||
|
|
||||||
|
`srun --jobid={{job_id}} --pty /bin/bash`
|
Loading…
Reference in New Issue