sacct, scancel, srun: add page (#4600)

beep
Caughlin Bohn 2020-10-13 06:09:06 -05:00 committed by GitHub
parent a00334e5ad
commit 91fd123241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

20
pages/linux/sacct.md Normal file
View 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
View 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
View 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`