[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2] xen: sched: introduce hard and soft affinity in credit 2 scheduler
On gio, 2014-01-16 at 10:23 -1000, Justin Weaver wrote: > Dario, > Hey! :-) > Sorry for disappearing for so long ... I'm back and ready to continue working. > NP at all. > Other functions will need to change, but currently with only one run > queue, only runq_candidate needed to change. I'll look through the > others again with the mindset that we (or maybe I) will fix the issue > that is causing only one run queue to be created despite having > multiple cores/sockets available. > > >> Function now chooses the vCPU with the most credit that has hard affinity > >> and maybe soft affinity for the given pCPU. If it does not have soft > >> affinity > >> and there is another vCPU that prefers to run on the given pCPU, then as > >> long > >> as it has at least a certain amount of credit (currently defined as half of > >> CSCHED_CREDIT_INIT, but more testing is needed to determine the best value) > >> then it is chosen instead. > >> > > Ok, so, why this 'certain amount of credit' thing? I got the technical > > details of it from the code below, but can you spend a few words on why > > and how you think something like this would be required and/or useful? > Allow me to comment only on the 'only one runqueue on multiple socket issue' thing. I honestly think that that one is a bug, so you shouldn't base your work on that behavior. To try facilitate you doing this, I'll try to put together a patch for fixing such issue early next week. I'm not sure wheter it will be accepted in Xen right now or when 4.5 development cycle opens, but at least you can apply that and work on top of it. Would that make sense and be of any help to you? Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) Attachment:
signature.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |