Skip to content
Snippets Groups Projects
Commit e98c2bc4 authored by Moe Jette's avatar Moe Jette
Browse files

minor correction in logic to avoid over-subscribing memory with job preemption

parent 65bcedbc
No related branches found
No related tags found
No related merge requests found
......@@ -581,11 +581,9 @@ static int _job_count_bitmap(struct node_cr_record *node_cr_ptr,
* allocated memory would exceed that available
* and there are *any* jobs left on the node after
* this one is started. */
if (((alloc_mem + job_mem) >avail_mem) &&
((_job_preemption_killing() &&
(same_prio_jobs > 0)) ||
(!_job_preemption_killing() &&
((same_prio_jobs + lower_prio_jobs) > 0)))) {
if (((alloc_mem + job_mem) > avail_mem) &&
((!_job_preemption_killing()) ||
((same_prio_jobs + higher_prio_jobs) > 0))) {
bit_clear(jobmap, i);
continue;
}
......
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