[DNM] placement: ignore banned NUMA nodes

This commit is contained in:
Peter Cai 2022-09-16 17:10:27 -04:00
parent c6d270495c
commit 7218ded6d7
1 changed files with 15 additions and 0 deletions

View File

@ -76,6 +76,21 @@ static void find_best_object_packing(GList *objs, struct irq_info *info, struct
entry = g_list_first(objs);
while (entry) {
struct topo_obj *d = entry->data;
/*
* Don't consider the unspecified numa node here
*/
if (numa_avail && (d->obj_type == OBJ_TYPE_NODE) && (d->number == NUMA_NO_NODE))
continue;
/*
* also don't consider any node that doesn't have at least one cpu in
* the unbanned list
*/
if ((d->obj_type == OBJ_TYPE_NODE) &&
(!cpus_intersects(d->mask, unbanned_cpus)))
continue;
if (d->load + info->load < d->max_load) {
place->best = d;
place->best_cost = d->load + info->load;