Difference between revisions of "SLURM Commands"

From UFRC
Jump to navigation Jump to search
Line 23: Line 23:
  
 
By default, sacct will only show your in the queue or running since midnight of the current day.
 
By default, sacct will only show your in the queue or running since midnight of the current day.
To view jobs from a particular date, you can specify a start time (-S or --starttime) with one of a number of formats, for example since May 1st:
+
To view jobs from a particular date, you can specify a start time (-S or --starttime) with one of a number of formats, for example since May 1st (0501):
 
  sacct -S 0501
 
  sacct -S 0501
  
Line 29: Line 29:
 
  JobID    JobName  Partition    Account  AllocCPUS      State ExitCode  
 
  JobID    JobName  Partition    Account  AllocCPUS      State ExitCode  
  
To other information can either be pulled from the -l view which has a long list of columns, or by specifying the information you want to view. For example to see the number of CPUs, total memory use and walltime of all jobs since May 1st, you could use:
+
To other information can either be pulled from the -l view which has a long list of columns, or by specifying the information you want to view. For example to see the number of CPUs, total memory use and walltime of all jobs since May 1st (0501), you could use:
 
  sacct -S 0501 -o JobIDRaw,JobName,NCPUS,MaxRSS,Elapsed
 
  sacct -S 0501 -o JobIDRaw,JobName,NCPUS,MaxRSS,Elapsed
  
 
To do the same for a whole group:
 
To do the same for a whole group:
 
  sacct -S 0501 -o JobIDRaw,JobName,User,NCPUS,MaxRSS,Elapsed -a -A group_name
 
  sacct -S 0501 -o JobIDRaw,JobName,User,NCPUS,MaxRSS,Elapsed -a -A group_name

Revision as of 18:16, 25 May 2016

Hpg2 wiki logo.png

HiPerGator 2.0 documentation

SLURM Commands

While there is a lot of documentation available on the SLURM web page, we provide these commands to help users with examples and handy references. Have a favorite SLURM command? Users can edit the wiki pages, please add your examples.

Checking on the queue

The basic command is squeue. The full documentation for squeue is available on the SLURM web page, but we hope these examples are useful as they are and as templates for further customization.

For a list of jobs running under a particular group, use the -A flag (for Account) with the group name.

squeue -A group_name

For a summary that is similar to the MOAB/Torque showq command (again, -u user or -A group can be added):

squeue -o "%.10A %.18u %.4t %.8C %.20L %.30S"

To include qos and limit to a group:

squeue -A group_name -O jobarrayid,qos,name,username,timelimit,numcpus,reasonlist


Checking information on completed jobs

The basic command is sacct. The full documentation for sacct is available on the SLURM web page, but we hope these examples are useful as they are and as templates for further customization.

By default, sacct will only show your in the queue or running since midnight of the current day. To view jobs from a particular date, you can specify a start time (-S or --starttime) with one of a number of formats, for example since May 1st (0501):

sacct -S 0501

The default columns displayed are:

JobID    JobName  Partition    Account  AllocCPUS      State ExitCode 

To other information can either be pulled from the -l view which has a long list of columns, or by specifying the information you want to view. For example to see the number of CPUs, total memory use and walltime of all jobs since May 1st (0501), you could use:

sacct -S 0501 -o JobIDRaw,JobName,NCPUS,MaxRSS,Elapsed

To do the same for a whole group:

sacct -S 0501 -o JobIDRaw,JobName,User,NCPUS,MaxRSS,Elapsed -a -A group_name