One idea I have to find out how long my slurm job is taking is to use

squeue --job <myid>

How do I find out how long my job took to complete though once the job is complete?

  • I cannot actually create a slurm tag because my rep is not high enough, but is how I would have tagged it had I the ability to – demongolem Nov 2 '14 at 0:22

Use the sacct command:

sacct -l -j <myid>

and look for the 'elapsed' column

  • 5
    +1, but more information here. The output of -l didn't fit in my window, so a minimal output is sacct --format="Elapsed" -j <myid>. – Sparhawk Jun 6 '16 at 2:46
  • This is the best solution yet – Jinhua Wang Dec 19 '19 at 11:46
  • Does this include the Slurm overhead? – Manolete Nov 6 '20 at 22:46
sacct -j <myid> --format=Elapsed

is a very succinct way to show this (Thanks to Sparhawk & damienfrancois for these suggestions, I thought I'd suggest this as a full answer).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.