From: "Nils Nieuwejaar" Subject: Re: RE: [PATCH] rendezvous-based local time calibration WOW! Date: Sat, 9 Aug 2008 10:47:27 -0400 Message-ID: <9ab51d7e0808090747l4fde8e87ga368e7ae62f07de0@mail.gmail.com> References: <20080806133829.GA28204@totally.trollied.org.uk> <20080806090906796.00000008444@djm-pc> <20080806152147.GD1789@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080806152147.GD1789@totally.trollied.org.uk> 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: John Levon Cc: Dan Magenheimer , "Xen-Devel (E-mail)" , Dave Winchell , Ian Pratt , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Wed, Aug 6, 2008 at 11:21 AM, John Levon wrote: > On Wed, Aug 06, 2008 at 09:09:06AM -0600, Dan Magenheimer wrote: > >> Again no guarantees but I think we are now under the magic >> threshold where the skew is smaller than the time required >> for scheduling a VCPU onto a different CPU. If so, >> consecutive gethrtime's by the same thread in a domain >> should always be monotonic. > > Right! That sounds positive. It's an improvement, but I'm pretty sure it's still not sufficient for Solaris. If I understand the change correctly, it seems to solve the problem for single-vcpu guests on an SMP, but not for multi-vcpu guests on an SMP. It sounds like the OS could reschedule a thread from VCPU 0 to VCPU 1 and consecutive calls to gethrtime() could still return non-monotonic results. Nils