[slurm-users] new user simple question re sacct output line2

Christopher Samuel chris at csamuel.org
Wed Nov 14 19:12:09 MST 2018


On 15/11/18 12:38 am, Matthew Goulden wrote:

> sacct output including the default headers is three lines, What is line
> 2 documenting? Most fields are blank.

Ah, well it can be more that 3 lines.. ;-)

[csamuel at farnarkle2 tmp]$ sbatch --wrap hostname
Submitted batch job 1740982

When I use sacct (& expand the jobid field it says):

[csamuel at farnarkle2 tmp]$ sacct -j 1740982 -o 
jobid%-15,jobname,partition,account,alloccpus,state,exitcode
           JobID    JobName  Partition    Account  AllocCPUS      State 
ExitCode
--------------- ---------- ---------- ---------- ---------- ---------- 
--------
1740982               wrap    skylake   hpcadmin          1  COMPLETED 
    0:0
1740982.batch        batch              hpcadmin          1  COMPLETED 
    0:0
1740982.extern      extern              hpcadmin          1  COMPLETED 
    0:0

So the first line is the allocation, the second line is the job step for
the batch script itself and the third is an extra one created for things
like pam_slurm_adopt (so if a user SSH's into the node they end up
inside the job they've got there) and for the built in X11 forwarding.

If I had run an MPI code instead with srun then there would be another
line called 1740982.0 there for that.

Hope that helps!

All the best,
Chris
-- 
  Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC



More information about the slurm-users mailing list