[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 04 of 11 v3] xen: sched_credit: let the scheduler know about node-affinity
On Fri, Feb 1, 2013 at 11:01 AM, Dario Faggioli <dario.faggioli@xxxxxxxxxx> wrote:
As vcpu-affinity tells where VCPUs must run, node-affinity tells OK, sorry it took so long. This looks a lot better just a couple of comments below. + Something about the name of this one just doesn't strike me right. I might be tempted just to go with "__vcpu_has_node_affinity", and let the comment above it explain what it means for the curious. + (I prefer just having the duplicated if statements, as I think it's easier to read; but you should go all one way or the other.)
This is where you missed the "csched_balance_step_skippable" replacement. Just an observation -- I think this will penalize systems that do not have node affinity enabled, in that if no one is using node affinities, then what will happen is the load balancing code will go through and check each vcpu on each processor, determine that there are no node affinities, and then go through again looking at vcpu affinities. Going through twice for a single vcpu when doing placement is probably OK; but going all the way through all vcpus once could be pretty expensive. I think we should take this patch now (with the other minor changes mentioned above) so we can get it tested properly. But we should probably try to do something to address this issue before the release -- maybe something like keeping a bitmask for each runqueue, saying whether any vcpus running on them have node affinity? That way the first round we'll only check runqueues where we might conceivably steal something.
-George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |