Skip to content
Snippets Groups Projects
Commit cbf16778 authored by Moe Jette's avatar Moe Jette
Browse files
parent 8d44e994
No related branches found
No related tags found
No related merge requests found
...@@ -999,7 +999,7 @@ Possible values are "FORCE", "YES", and "NO". ...@@ -999,7 +999,7 @@ Possible values are "FORCE", "YES", and "NO".
without user means of disabling it. without user means of disabling it.
"YES" makes nodes in the partition available for sharing if and "YES" makes nodes in the partition available for sharing if and
only if the individual jobs permit sharing (see the srun only if the individual jobs permit sharing (see the srun
"\-\-shared" option). "\-\-share" option).
"NO" makes nodes unavailable for sharing under all circumstances. "NO" makes nodes unavailable for sharing under all circumstances.
The default value is "NO". The default value is "NO".
.TP .TP
......
...@@ -324,12 +324,14 @@ _attempt_backfill(struct part_record *part_ptr) ...@@ -324,12 +324,14 @@ _attempt_backfill(struct part_record *part_ptr)
goto cleanup; goto cleanup;
i = list_count(run_job_list) + cg_hung; i = list_count(run_job_list) + cg_hung;
if ( (i == 0) || (i > MAX_JOB_CNT) ) /* Do not try to backfill if
goto cleanup; /* no running jobs or already have many */ * we already have many running jobs,
if (list_is_empty(pend_job_list)) * there are no pending jobs, OR
goto cleanup; /* no pending jobs */ * there are insufficient idle nodes to start any pending jobs */
if (min_pend_job_size > part_specs.idle_node_cnt) if ((i > MAX_JOB_CNT)
goto cleanup; /* not enough free nodes for any pending job */ || list_is_empty(pend_job_list)
|| (min_pend_job_size > part_specs.idle_node_cnt))
goto cleanup;
list_sort(pend_job_list, _sort_by_prio); list_sort(pend_job_list, _sort_by_prio);
list_sort(run_job_list, _sort_by_end); list_sort(run_job_list, _sort_by_end);
......
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