Difference between revisions of "Information on used Resources"
From HPC users
Jump to navigationJump to search
(new page) |
|||
Line 1: | Line 1: | ||
== Getting Information about Job Resources == | == Getting Information about Job Resources == | ||
It can be useful to know how many resources a job has used, for example to adjust the requested resources of a similar following job. The <tt>sacct</tt>-command can be used for this purpose: | It can be useful to know how many resources a job has used, for example to adjust the requested resources of a similar following job. The <tt>sacct</tt>-command can be used for this purpose. Information about a specific job are obtained with the option <tt>-j <job-id></tt>, e.g.: | ||
sacct -j 21400 | $ sacct -j 21400 | ||
JobID JobName Partition Account AllocCPUS State ExitCode | JobID JobName Partition Account AllocCPUS State ExitCode | ||
------------ ---------- ---------- ---------- ---------- ---------- -------- | ------------ ---------- ---------- ---------- ---------- ---------- -------- | ||
21400 g09test carl.p 8 COMPLETED 0:0 | 21400 g09test carl.p 8 COMPLETED 0:0 | ||
21400.batch batch 8 COMPLETED 0:0 | 21400.batch batch 8 COMPLETED 0:0 | ||
The command returns information about the job itself (first line) and individual job steps (following lines). A job step is defined by the <tt>srun</tt>-command used within a job script. |
Revision as of 14:47, 27 February 2017
Getting Information about Job Resources
It can be useful to know how many resources a job has used, for example to adjust the requested resources of a similar following job. The sacct-command can be used for this purpose. Information about a specific job are obtained with the option -j <job-id>, e.g.:
$ sacct -j 21400 JobID JobName Partition Account AllocCPUS State ExitCode ------------ ---------- ---------- ---------- ---------- ---------- -------- 21400 g09test carl.p 8 COMPLETED 0:0 21400.batch batch 8 COMPLETED 0:0
The command returns information about the job itself (first line) and individual job steps (following lines). A job step is defined by the srun-command used within a job script.