From: "Jan Beulich" Subject: RE: rdtscP and xen (and maybe the app-tsc answer I've been looking for) Date: Mon, 21 Sep 2009 09:17:22 +0100 Message-ID: <4AB752B20200007800015E66@vpn.id2.novell.com> References: <261d64a1-e146-40d7-86f4-887d1d399ab0@default> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer Cc: JeremyFitzhardinge , "Xen-Devel (E-mail)" , kurt.hackel@oracle.com, keir.fraser@eu.citrix.com, KeirFraser List-Id: xen-devel@lists.xenproject.org >>> Dan Magenheimer 18.09.09 22:27 >>> >Guest app must have some capability of getting 64-bit >pvclock parameters directly from Xen without OS changes, >e.g. emulated userland wrmsr, userland hypercall, >or userland mapped shared page. (This will be done >rarely so need not be fast! But it does create >a new userland<->Xen ABI that must be kept compatible.) Are you sure this will indeed be infrequent enough? On my supposedly constant-TSC AMD box, I see Xen quite frequently apply small error correction factors to keep TSC from running ahead of HPET/PMTIMER. >I think this will work even for a NUMA machine >provided Xen always schedules all the vcpus >for one guest on pcpus in the same NUMA node, >and increments the version number when >the guest is rescheduled from one NUMA node to >another (assuming TSC on each node is reliable). I think this is an improper assumption: Any guest with more vCPU-s than there are pCPU-s on a single node will likely benefit from being run on two (or more) nodes (compared to its vCPU-s competing amongst themselves for pCPU-s on a single node). Jan