... | ... | @@ -93,3 +93,27 @@ The `sinfo` command displays the current state of compute nodes: |
|
|
* **STATE=drain** : the node does not accept new jobs, but the jobs currently allocated on the node keep running.
|
|
|
|
|
|
## Accounting
|
|
|
Slurm is connected to a database recording job acccounting data. The `sacct` and `sreport` commands allow to access this accounting information.
|
|
|
|
|
|
Show information on the job *job_id*:
|
|
|
```
|
|
|
# Short format
|
|
|
sacct -j job_id
|
|
|
# Long format
|
|
|
sacct -l -j job_id
|
|
|
```
|
|
|
|
|
|
Display jobs starting and ending between January 1, 2019 and January 1, 2020 ont the bigmem01 node
|
|
|
```
|
|
|
sacct --nodelist=bigmem01 --starttime=2019-01-01 --endtime=2020-01-01
|
|
|
```
|
|
|
|
|
|
Display the number of hours computed by a user *username* between June 1, 2019 and January 1, 2020 on each account.
|
|
|
```
|
|
|
sreport -t hours user TopUsage Start=2019-06-01 End=2020-01-01 Users=username
|
|
|
```
|
|
|
|
|
|
Display the global number of hours computed by a user *username* between June 1, 2019 and January 1, 2020.
|
|
|
```
|
|
|
sreport -t hours user TopUsage Group Start=2019-06-01 End=2020-01-01 Users=username
|
|
|
``` |