[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 4/7] libxl: vNUMA supporting interface
Hi Elena and Dario, > + /* Determine the best nodes to fit vNUMA nodes */> + /* TODO: change algorithm. The current just fits the nodes > + * Will be nice to have them also sorted by size > + * If no p-node found, will be set to NUMA_NO_NODE > + */ > + claim = calloc(info->nr_vnodes, sizeof(*claim)); > + if (claim == NULL) > + return rc; > + > + libxl_for_each_set_bit(n, info->nodemap) > + { > + for (i = 0; i < info->nr_vnodes; i++) > + { > + if (((claim[n] + (mems[i] << 20)) <= ninfo[n].free) && > + /*vnode was not set yet */ > + (info->vnode_to_pnode[i] == VNUMA_NO_NODE ) ) > + { > + info->vnode_to_pnode[i] = n; > + claim[n] += (mems[i] << 20); > + } > + } > + } > + So in the initial part, each vnode is set to EXACTLY ONE pnode, right? Yechen Li _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |