Page 1 of 1

Job suspension

Posted: Fri Apr 30, 2021 11:26 am
by Martin_Head
If I am going to suspend a job for a long time. Say 5 minutes. Is there any benefit in reducing it's priority before suspending it?

Or does it make no difference to how much time the scheduler will spend checking the job.

Re: Job suspension

Posted: Fri Apr 30, 2021 11:45 am
by Peter
I simply tried this out for a single suspended job, while running a benchmark as another job. No noticeable difference.

Re: Job suspension

Posted: Fri Apr 30, 2021 12:53 pm
by janbredenbeek
Martin_Head wrote:If I am going to suspend a job for a long time. Say 5 minutes. Is there any benefit in reducing it's priority before suspending it?
Or does it make no difference to how much time the scheduler will spend checking the job.
The scheduler code does not even consider the status of the job if it's priority is zero (at least on JS). If nonzero, it decreases the suspension counter and if this reaches zero the job will re-start with appropriate priority.
So the answer will be 'no' unless you set it to zero, in which case you may observe a very small (if not unnoticable) speed advantage. The downside is that you have to re-activate the job yourself.

Jan

Re: Job suspension

Posted: Sat May 01, 2021 10:47 am
by Martin_Head
OK thanks for that. I will just leave the priority alone once set.