From: Dulloor Subject: Re: Xen 3.4.1 NUMA support Date: Mon, 9 Nov 2009 07:51:11 -0500 Message-ID: <940bcfd20911090451x669add74qe2ea38875175d21b@mail.gmail.com> References: <4AF7FE15.6070503@eu.citrix.com> <940bcfd20911090339m199e3893ke8e855e2c0ed3b9b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: Dan Magenheimer , "xen-devel@lists.xensource.com" , Keir Fraser , Papagiannis Anastasios List-Id: xen-devel@lists.xenproject.org Sure ! Let know when you have the patches ready. Also, that might be a good time to see if runq-per-l2 works better. -dulloor On Mon, Nov 9, 2009 at 7:29 AM, George Dunlap wrote: > On Mon, Nov 9, 2009 at 11:39 AM, Dulloor wrote: >> What's the current scope and status of your scheduler work ? Is it >> going to look similar to the Linux scheduler (with scheduling domains, >> et al). In that case, topology is already accounted for, to a large >> extent. It would be good to know so that I can work on something that >> doesn't overlap. > > My plan was to do something similar to Linux, but with this > difference: Instead of having one runqueue per logical processor (as > both Xen and Linux currently do), and having "domains" all the way up > (as Linux currently does), I had planned on having one runqueue per L2 > processor cache. =A0The main reason to avoid migration is to preserve a > warm cache; but since L1's are replaced so quickly, there should be > little impact to a VM migrating between different threads and cores > which share the same L2. > > Above the L2s I was planning on having an idea similar to the Linux > "domains" (although obviously it would need a different name to avoid > confusion), and doing explicit load-balancing between them. =A0But as I > have not had a chance to test this kind of load balancing yet, the > plan may change somewhate before then. > > Problems to solve wrt NUMA, as I understand it, are to balance the > performance cost of sharing a busy local CPU, vs the performance cost > of non-local memory accesses. =A0This would involve adding the NUMA > logic to the load balancing algorithm. =A0Which I guess would depend in > part on having a load balancing algorithm to begin with. :-) > > Once I have the basic credit patches in working order, would you be > interested in working on the load-balancing between runqueues? =A0I can > then work on further testing of the credit algorithm. =A0My ultimate > goal would be to have a basic regression test that people could use to > measure how their changes to the scheduler affect a wide variety of > workloads. > > =A0-George >