-
Notifications
You must be signed in to change notification settings - Fork 0
/
slurm-job-information.qmd
43 lines (30 loc) · 1 KB
/
slurm-job-information.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Job Information
```{r}
#| results: "asis"
#| echo: false
source("_common.R")
```
Query all jobs within the last day
``` bqsh
sacct --starttime=today --endtime=midnight --format=User,JobID,Jobname%50,partition,state,time,start,end,elapsed,MaxRss,MaxVMSize,nnodes,ncpus,nodelist --units=G
```
Query information for a specific job:
``` bash
sacct -j <jobid> --format=User,JobID,Jobname%50,partition,state,time,start,end,elapsed,MaxRss,MaxVMSize,nnodes,ncpus,nodelist
```
See how nodes are configured.
``` bash
# Customized information https://ask.cyberinfrastructure.org/t/how-do-i-get-the-list-of-features-and-resources-of-each-node-in-slurm/201
sinfo -o "%20N %10c %10m %25f %10G "
# Or view a more traditional list:
scontrol show node
```
See information for a specific node
``` bash
scontrol show node "nodename"
```
View queued job information for yourself
``` bash
squeue --format="%.7i %.9P %.8j %.8u %.2t %.10M %.6D %C" -u $USER
```
See format (`-o`) options at: <https://slurm.schedmd.com/squeue.html>