[DNM] placement: ignore banned NUMA nodes
This commit is contained in:
parent
c6d270495c
commit
7218ded6d7
15
placement.c
15
placement.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue