From: Keir Fraser Subject: Re: Question on hyperthreading and Westmere processors. Date: Mon, 01 Feb 2010 15:37:55 +0000 Message-ID: References: <40B551BEDC7945419A5897958AB3947C01CD6743@mtexch.marathontechnologies.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <40B551BEDC7945419A5897958AB3947C01CD6743@mtexch.marathontechnologies.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: Roger Cruz , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org New Intel processors should all have constant-rate TSCs, regardless of P- and C-states, and regardless of things like turbo boosts. The credit scheduler likes to schedule across cores where possible, before making use of the second hyperthread of a pair. -- Keir On 01/02/2010 15:20, "Roger Cruz" wrote: > Hi folks, > =20 > I was wondering if someone would be kind enough to look over my questions= and > provide an answer or some =B3gut=B2 feeling on whether any issues may arise o= n > Westmere processors. I don=B9t have one to try XenServer on myself so I=B9m > looking for others who can help. > =20 > Thanks > Roger > =20 >=20 >=20 > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Roger Cruz > Sent: Monday, January 25, 2010 10:37 AM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Question on hyperthreading and Westmere processors. > =20 > =20 > Hi folks, > =20 > I=B9m wondering if one of you could answer a couple of questions with regar= ds to > the new Intel processors and VM scheduling when hyperthreads are involved= . > =20 > 1) For Nahelem/Westmere processors, Intel has a feature where it ca= n > turbo the processor=B9s frequency. In an SMP environment, would this turbo > boost affect Xen in any ways? For example, does the TSC offset computati= on > between processor=B9s becomes invalid? Are there any other features or rea= sons > why a Westmere processor would cause a problem for Xen? > =20 > 2) These new processors have hyper threading enabled. Is Xen=B9s > scheduling algorithm cognizant of threads so that it can most effectively > schedule VMs on idle cores rather than use an idle thread on a busy core? >=20 > =20 >=20 > Let me explain that better. For example, on 1 quad-core HT-enabled proces= sor > server, there are a total of 8 working units (4 cores + 4 threads). As= sume > we labelt them this way: [core#,thread#]: [0,0], [0,1], [1,0], [1,1], [2,= 0], > [2,1], [3,0], [3,1]. If there are 3 VMs exist, does the scheduler arrang= e the > VMs such that VM1 is on [0,0], VM2 is on [1,0], and VM3 on [2,0]? Or doe= s it > tread all the work units without regards to their locations and schedule = them > as [0,0], [0,1] and [1,0], for example? In the latter case, two VMs are > schedule on the same core, which would be less effective than scheduled o= n the > idle core. >=20 > =20 >=20 > Thanks > Roger >=20