SACCT: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
Pollm001 (talk | contribs)
No edit summary
Honfi001 (talk | contribs)
mNo edit summary
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The command [http://slurm.schedmd.com/sacct.html sacct] is ment to show your costs in the HPC Agrogenomics.
The command [http://slurm.schedmd.com/sacct.html sacct] is meant to show your usage of  Anunna.


For instance at the login screen the command: sacct -a gives the following result:
For instance at the login screen the command: sacct -a gives the following result:


[pollm001@nfs01 ~]$ sacct -a
<syntaxhighlight lang="bash">
      JobID    JobName  Partition    Account  AllocCPUS      State ExitCode
user001@login200:~$ sacct -a  
------------ ---------- ---------- ---------- ---------- ---------- --------
</syntaxhighlight>[[File:sacct capture.jpg]]
693458      m8_cgt_1.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
 
698869      m8_ifl_3.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
It is a standard view to see all the users jobs of that day.
700061      m8_kge_1.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
Better is to modify this command with special parameters to see what you are using from Anunna.<syntaxhighlight lang="bash">
700063      m8_ifl_1.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
user001@login200:~$ sacct -P -X --delimiter=',' -S 2026-01-01 -E 2026-02-01  \
700067      m8_cgt_2.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
--format=comment%15,User,Partition%20,JobID,JobName,ncpus,nnodes,NodeList,Start,alloccpus,cputime%12,cputimeraw,state  > usage_report_$(date -I).csv
700070      m8_kge_2.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
 
700073      m8_kge_3.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
</syntaxhighlight>The csv-file can be uploaded in Excel. This gives you the next overview.
700076      m8_ifl_2.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
Cputimeraw is the time of cpu-usage in seconds. The parameters "-S 2026-01-01 -E 2026-02-01" give you the start date and the end date of period you want to present.
701685      m8_cgt_3.+ ABGC_Rese+ 4414801160          1    RUNNING      0:0
 
742662      Wuzishan_+ ABGC_Rese+                    4    RUNNING      0:0
[[File:sacct uitgebreid.jpg]]
742719      R4-BER-co+ ABGC_Rese+                    1    RUNNING      0:0

Latest revision as of 07:33, 14 April 2026

The command sacct is meant to show your usage of Anunna.

For instance at the login screen the command: sacct -a gives the following result:

user001@login200:~$ sacct -a

It is a standard view to see all the users jobs of that day.

Better is to modify this command with special parameters to see what you are using from Anunna.

user001@login200:~$ sacct -P -X --delimiter=',' -S 2026-01-01 -E 2026-02-01  \ 
--format=comment%15,User,Partition%20,JobID,JobName,ncpus,nnodes,NodeList,Start,alloccpus,cputime%12,cputimeraw,state  > usage_report_$(date -I).csv

The csv-file can be uploaded in Excel. This gives you the next overview.

Cputimeraw is the time of cpu-usage in seconds. The parameters "-S 2026-01-01 -E 2026-02-01" give you the start date and the end date of period you want to present.