From: Alan Cox Subject: Re: write_tsc in a PV domain? Date: Fri, 28 Aug 2009 10:49:15 +0100 Message-ID: <20090828104915.56cf1002@lxorguk.ukuu.org.uk> References: <4A96DA35.2020109@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Dan Magenheimer Cc: Jeremy Fitzhardinge , "Xen-Devel (E-mail)" , Keir Fraser List-Id: xen-devel@lists.xenproject.org > No, I don't think this is true. An enterprise app that binds processes > to fixed physical processors on a physical machine can make > assumptions about the results of rdtsc that aren't valid when > the vcpus can skip between pcpus. Further, like Linux itself, They rarely make the right assumptions > applications may test assumptions about tsc at startup that are > assumed to remain valid for the life of the app, which is > perfectly reasonable on a physical machine No it isn't because of things like suspend/resume. > True, but any app that tries to run on a NUMA machine without > being aware of the idiosyncracies of a NUMA machine probably > has worse problems to deal with than tsc sync. Further, there Disagree - this is true if your NUMA factor is large but quite a few machines today are "vaguely NUMA" - the NUMA factor is low enough the app doesn't need to care. Anyway you don't need NUMA to see TSC skew between cores.