From: "Dan Magenheimer" Subject: RE: Xen system skew MUCH worse than tsc skew (was RE: RE: [PATCH] record max stime skew (was RE: [PATCH] strictly increasing hvm guest time)) Date: Sat, 12 Jul 2008 15:07:43 -0600 Message-ID: <20080712150743609.00000003744@djm-pc> References: Reply-To: "dan.magenheimer@oracle.com" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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: Keir Fraser , "Xen-Devel (E-mail)" Cc: Dave Winchell List-Id: xen-devel@lists.xenproject.org > > 1) by a boot option, or > > 2) by the TSC_CONSTANT cpu flag, or > > 3) when determined dynamically to be safe using code similar > > to arch/x86/tsc_sync.c in recent Linux kernels > > > > (1) is by far the easiest (perhaps not too late for 3.3?) > > while (3) is clearly the best for users but adds lots of > > code (bloat/untested) > = > (1) is perhaps fine. OK, patch to follow. I've used "clocksource=3Dtsc" = > How does (2) work? The individual CPUs do not know whether they are > synchronised across the mainboard. I think constant-tsc is necessary > (individual CPUs must not vary their multiplier of the input = > clock rate) but > may not be sufficient. Good point. > I don't know how much code is involved in (3). It's enough that I will take the "easy way" for now (boot option) and look at submitting a dynamically-evaluate patch later. Dan