This command is used for viewing information for completed jobs. This can be useful for monitoring job progress or diagnosing problems that occurred during job execution. By default, sacct will report Job ID, Job Name, Partition, Account, Allocated CPU Cores, Job State, and Exit Code for all of the current user’s jobs that completed since midnight of the current day. Many options are available for modifying the information output by sacct:
The –format option is particularly useful, as it allows a user to customize output of job usage statistics. We would suggest create an alias for running a customized version of sacct. For instance, the elapsed and Timelimit arguments allow for a comparison of allocated vs. actual wall time. MaxRSS and MaxVMSize shows maximum RAM and virtual memory usage information for a job, respectively, while ReqMem reports the amount of RAM requested.
See the status of your job. Note that your executable should be preceded by "srun" command for both serial and MPI executable.
sacct -X -o JobID,JobName,AveCPU,AvePages,AveRSS,MaxRSSNode,AveVMSize,NTasks,State,ExitCode -j <jobID>
output:
JobID JobName AveCPU AvePages AveRSS MaxRSSNode AveVMSize NTasks State ExitCode
------------ ---------- ---------- ---------- ---------- ---------- ---------- -------- ---------- --------
1013605 v2o5band COMPLETED 0:0
1013605.bat+ batch 00:00:00 0 6244K comp162t 308544K 1 COMPLETED 0:0
For more information about sacct see: http://slurm.schedmd.com/sacct.html
You can also find the jobs runing by the user using the following command. there are also queryjob and querynode commands.
queryuser <caseID>