From: George Dunlap Subject: Re: Cpu pools discussion Date: Tue, 28 Jul 2009 13:50:08 +0100 Message-ID: References: <4A6E492D.201@oracle.com> <20090728091929.GI5235@york.uk.xensource.com> <4A6ECFD3.4030709@ts.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4A6ECFD3.4030709@ts.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Juergen Gross Cc: "xen-devel@lists.xensource.com" , Zhigang Wang , Tim Deegan , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Tue, Jul 28, 2009 at 11:15 AM, Juergen Gross wrote: > Tim Deegan wrote: >> That's easily done by setting affinity masks in the tools, without >> needing any mechanism in Xen. > > More or less. > You have to set the affinity masks for ALL domains to avoid scheduling on= the > "special" cpus. > You won't have reliable scheduling weights any more. I think this is the key thing: scheduling algorithms normally ignore pinning. Both credit1 and (atm) credit2 assume that a VM with higher credit will be able to run before a VM of lower credit. But if there are some VMs pinned to a subset of pcpus, and other VMs pinned on another subset (or not pinned at all), this breaks that assumption. The algorithms might be able to be extended to account for pinning, but it would make things a lot more complicated. This means harder to understand and modify the algorithm, which means it's likely to break in the future as people try to extend it. It also means any future updates or rewrites have to take this pin-to-partition case into account and do the "right thing". Given that people want to partition a machine, I think cpu pools makes the most sense: * From a user perspective it's easier; no need to pin every VM, simply assign which pool it starts in * From a scheduler perspective, it makes thinking about the algorithms easier. It's OK to build in the assumption that each VM can run anywhere. Other than partitioning, there's no real need to adjust the scheduling algorithm to do it. -George > > > Juergen > > -- > Juergen Gross =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Principal Developer Operati= ng Systems > TSP ES&S SWE OS6 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Telephone: += 49 (0) 89 636 47950 > Fujitsu Technolgy Solutions =A0 =A0 =A0 =A0 =A0 =A0 =A0 e-mail: juergen.g= ross@ts.fujitsu.com > Otto-Hahn-Ring 6 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Internet:= ts.fujitsu.com > D-81739 Muenchen =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Company details: ts.fuji= tsu.com/imprint.html > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >