WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] TSC scaling for live migration between platforms

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] TSC scaling for live migration between platforms with different TSC frequecies
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Thu, 18 Jun 2009 17:00:53 -0400
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Delivery-date: Thu, 18 Jun 2009 14:01:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <75b472a9-3150-4f39-ac85-ba8cb99f5602@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20090618204551.GA25732@xxxxxxxxxxxxxxxxx> <75b472a9-3150-4f39-ac85-ba8cb99f5602@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Jun 18, 2009 at 01:57:21PM -0700, Dan Magenheimer wrote:

> > # dtrace -n 'fbt::tsc_gethrtime:entry /cpu == 0/ { @ = 
> > sum(1); }' -c "sleep 10"
> > dtrace: description 'fbt::tsc_gethrtime:entry ' matched 1 probe
> > dtrace: pid 29708 has exited
> > 
> >             27798
> > 
> > This is on a basically idle 8-way system. (The other CPUs are 
> > less busy.)
> 
> Just checking... this is in 10 seconds and each processor is
> "ticking" (and possibly a system-wide timer tick as well),
> so this is ~350 rdtsc/sec/processor, correct?

No. That's CPU0 only ('cpu == 0'). Solaris only has one system-wide
timer tick. This is mstate accounting: every kernel/user boundary, every
interrupt, etc. incurs at least one TSC read. (And of course the machine
is idle.)

regards
john

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>