From: Keir Fraser Subject: Re: system time skew measurement patch Date: Mon, 21 Apr 2008 23:52:28 +0100 Message-ID: References: <20080421150000078.00000007176@djm-pc> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080421150000078.00000007176@djm-pc> 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@oracle.com" , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 21/4/08 22:00, "Dan Magenheimer" wrote: > The patch below printk's useful interprocessor system time skew > information. Patch is relative to xen-unstable. Printk is > rate-limited to output only when O(max skew) grows. Max skew > is measured across all cores/processors... ideally eventually it > should be measured for each processor and exported via "xm info" > so groups of sync'ed processors can be properly identified. > > Even on my Core 2 Duo E6850 @ 3.00 GHz (1 socket), I am seeing > skew on the order of 6000 cycles (2 usec). I'm not clear on > whether this is due to the calibration algorithm or the > hardware. This is not unexpected. Stick a max() function at the end of get_s_time() and we'll be fine. -- Keir