[slurm-users] Suspending jobs and resuming

184 views
Skip to first unread message

Ratnasamy, Fritz via slurm-users

unread,
Nov 21, 2024, 6:07:57 PM11/21/24
to Slurm User Community List
Hi, 

  I am using an old slurm version 20.11.8 and we had to reboot our cluster today for maintenance. I suspended all the jobs on it with the command scontrol suspend list_job_ids and all the jobs paused and were suspended. However, when I tried to resume them after the reboot, scontrol resume did not work (it was showing in the reason column " (JobHeldAdmin)". I was able to release them with scontrol release and the jobs started to run back. However, the SLURM recorded time on it resetted (Time columns, showing 0:00 for all the jobs) though the jobs seem to have re-started from the last point before he got suspended. 
1- Did I follow the right procedure to suspend, reboot and resume/release?
2- In this case, does the wall time for all the jobs goes into reset and therefore anyone with slurm admin rights will be able to have their jobs last longer than the wall time limit by suspending and resuming a job? 

Best, 

Fritz Ratnasamy

Data Scientist

Information Technology


Diego Zuccato via slurm-users

unread,
Nov 22, 2024, 1:42:26 AM11/22/24
to slurm...@lists.schedmd.com
IIUC, when you suspend a job it remains in memory but with no CPU time
allocated. If you reboot the node, the job state is lost (unless it uses
checkpointing). When you restarted the jobs, they actually began a new
run (Slurm doesn't know if they use checkpointing or not). You've been
lucky that your jobs seems to use checkpointing...

The pocedure we're following when a node reboot is required is to create
a reservation (or drain the nodes), leave jobs run until completion or
time limit and when the nodes are free we reboot 'em.

Diego
> *Fritz Ratnasamy*
>
> Data Scientist
>
> Information Technology
>
>
>
>

--
Diego Zuccato
DIFA - Dip. di Fisica e Astronomia
Servizi Informatici
Alma Mater Studiorum - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786

--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com

Reply all
Reply to author
Forward
0 new messages