Is it possible to pause jobs submitted via qsub

batch jobs

I am running my jobs on a small cluster. I submitted them via qsub. Now my labmates need resources more urgently than me, so I need to either kill my jobs or pause them, if possible.

Is there a way of pausing my jobs and releasing the CPU, RAM, etc.?

I am a normal user (no root privileges).

Best Answer

If the jobs haven't started you can put them on hold with qhold. Use qrls to restart.

qhold <job ID>
qrls <job ID>

If they are already running you can use qsig to suspend and resume jobs (you may need extra permissions for that, ask your administrator if that's the case):

qsig -s suspend <job ID>
qsig -s resume <job ID>

Once you have resumed your job you may have to force it to run with qrun

qrun <job ID>

Tested on a SLES 11 SP4 system with PBSPro 13.0.2.153173, but I am confident it should work with other POSIX-compliant batch job submission systems.

Related Question