Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
When preempting work for a new job the "shrinkBy" method evicts shares with the least investment from jobs with an excess of resources. Later during defragmentation in takeFromTheRich it gives shares to a needy job by taking from the richest user in the required nodepool. This can result in excessive preemption, double what is necessary, and the shares evicted by shrinkBy may not be in the node pool of the needy job, and may not free up enough contiguous space. Perhaps the defrag step should adjust the evicted list for the rich jobs to be those in the nodepools of the needy job.