Skip to content
Snippets Groups Projects
Commit 1394875c authored by Morris Jette's avatar Morris Jette
Browse files

Slow down "lazy" scheduling

Rather than attempting a scheduling loop as frequently as every
1 second, wait 3 seconds for performance reasons.
parent eaf449b6
No related branches found
No related tags found
No related merge requests found
......@@ -1557,7 +1557,8 @@ static void *_slurmctld_background(void *no_data)
job_limit = INFINITE;
job_sched_cnt = 0;
slurm_mutex_unlock(&sched_cnt_mutex);
} else if (job_sched_cnt) {
} else if (job_sched_cnt &&
(difftime(now, last_sched_time) >= 3)) {
slurm_mutex_lock(&sched_cnt_mutex);
job_limit = 0; /* Default depth */
job_sched_cnt = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment