Update 2.1 Batch job submission authored by Odunlami Marc's avatar Odunlami Marc
......@@ -133,3 +133,18 @@ Display the global number of hours computed by *username* between June 1, 2019 a
```
sreport -t hours user TopUsage Group Start=2019-06-01 End=2020-01-01 Users=username
```
Display the resources used by the terminated *job_id* job:
```
sacct -j job_id --format=JobID,State,TRESUsageInMax%100 | grep batch
```
The output of this command will look like this:
_job_id.batch COMPLETED **cpu=10:00:28**,energy=0,fs/disk=234247,**mem=13353272K**,pages=0,vmem=185824K_
In the above example, the used cumulated CPU time of the *job_id* job is about 10 hours, and the used maximal total memory during the execution is about 13 GB.
Display the resources used by the terminated jobs of *username* starting and ending between February 1, 2021 and March 1, 2021 on the bigmem partition:
```
sacct -u username --partition=bigmem --starttime=2021-02-01 --endtime=2021-03-01 --format=JobID,State,TRESUsageInMax%100 | grep batch
```
\ No newline at end of file