Skip to content
Snippets Groups Projects
Commit 78ed3cc8 authored by Dominik Bartkiewicz's avatar Dominik Bartkiewicz Committed by Alejandro Sanchez
Browse files

Performance improvement for systems without enabled preemption.

Call _add_preemptable_job() only if job uses max_start_delay reservation or
system has enabled preeamption.

Bug 9537
parent df0454ee
No related branches found
No related tags found
No related merge requests found
...@@ -293,7 +293,9 @@ extern List slurm_find_preemptable_jobs(job_record_t *job_ptr) ...@@ -293,7 +293,9 @@ extern List slurm_find_preemptable_jobs(job_record_t *job_ptr)
} }
/* Build an array of pointers to preemption candidates */ /* Build an array of pointers to preemption candidates */
list_for_each(job_list, _add_preemptable_job, &candidates); if (slurm_preemption_enabled() ||
job_uses_max_start_delay_resv(job_ptr))
list_for_each(job_list, _add_preemptable_job, &candidates);
if (candidates.preemptee_job_list && youngest_order) if (candidates.preemptee_job_list && youngest_order)
list_sort(candidates.preemptee_job_list, _sort_by_youngest); list_sort(candidates.preemptee_job_list, _sort_by_youngest);
......
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