From: Keir Fraser Subject: Re: System time monotonicity Date: Tue, 27 Mar 2007 01:27:41 +0100 Message-ID: References: <20070326201409.GA4600@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070326201409.GA4600@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: Ian Pratt , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 26/3/07 21:14, "John Levon" wrote: >> More likely a jittery chipset timer -- we've observed less-than-ideal >> stability from some chipset timers, which can throw us off a bit when >> independently sync'ing the TSCs (which each CPU does for its TSC >> independently every couple of seconds). > > And what about cross-VCPU monotonicity? It's called very frequently and > having to fake monotonicity via a single variable across all CPUs would > not be pleasant, unless I can think of something smarter... Yet it is what you need to do if you want to absolutely guarantee monotonic time across all VCPUS. I don't think there's any way around that, but as Ian says it's still going to be cheaper than reading a chipset timer. I'd be inclined to settle for per-vcpu and per-OS-task monotonicity. -- Keir