mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
sacct, scancel, srun: add page (#4600)
This commit is contained in:
parent
a00334e5ad
commit
91fd123241
3 changed files with 48 additions and 0 deletions
20
pages/linux/sacct.md
Normal file
20
pages/linux/sacct.md
Normal file
|
@ -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}}`
|
12
pages/linux/scancel.md
Normal file
12
pages/linux/scancel.md
Normal file
|
@ -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}}`
|
16
pages/linux/srun.md
Normal file
16
pages/linux/srun.md
Normal file
|
@ -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…
Add table
Reference in a new issue