Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titlesacct
psanagpu104:~$ sacct -u khegazy
       JobID    JobName  Partition    Account  AllocCPUS      State ExitCode 
------------ ---------- ---------- ---------- ---------- ---------- -------- 
466416             wrap     psanaq                    10    RUNNING      0:0 
466416.batch      batch                               10    RUNNING      0:0 
466418             wrap     psanaq                    10    RUNNING      0:0 
466418.batch      batch                               10    RUNNING      0:0 
466420             wrap     psanaq                    10    RUNNING      0:0 
466420.batch      batch                               10    RUNNING      0:0 

Misc Slurm commands

scontrol is used to view or modify Slurm configuration including: job, job step, node, partition, reservation, and overall system configuration. Most of the commands can only be executed by user root or an Administrator.

  • Detail job information: scontrol show jobid -dd <jobID>
  • Show reservation: scontrol show res

sacctmgr is used to deal with accounts, associations and users (format can be modified at will. Remove it to see all):

  • Show what account a user is associated with: sacctmgr show associations Users=<user_names> format=cluster,account,partition,QOS
  • Show priorities for an account: sacctmgr list associations -p accounts=<accounts>
  • Show priority coefficients: sacctmgr show qos format=name,priority,usagefactor

Others

  • Show priority level for a job: sprio -j <jobID>