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] [RFC] Correct/fast timestamping in apps under Xen [1 of

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC] Correct/fast timestamping in apps under Xen [1 of 4]: Reliable TSC
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Sat, 10 Oct 2009 07:35:24 +0100
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, "kurt.hackel@xxxxxxxxxx" <kurt.hackel@xxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 09 Oct 2009 23:35:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AD021B5.5070806@xxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpJbjtY3cPWX4bcSE+M7fSvzBNdxQABZ1nh
Thread-topic: [Xen-devel] [RFC] Correct/fast timestamping in apps under Xen [1 of 4]: Reliable TSC
User-agent: Microsoft-Entourage/12.20.0.090605
On 10/10/2009 06:55, "Jeremy Fitzhardinge" <jeremy@xxxxxxxx> wrote:

> The kernel does about between 400k and 1.4M/sec, median around ~600k,
> for a git pull (which I think is single-threaded), and about
> 200k-500k/sec for a kernel compile (-j4 on 2 vcpus).  Usermode is a much
> lower rate; around 1000/sec for the kernel compile.
> 
> Baseline idle is around 1000/sec kernel, 10/sec user.
> 
> Also, my inline naked rdtsc benchmark shows that the emulated rdtsc is
> taking around 465ns (vs 30, a 15x slowdown).

Hmmm... So at 600k/sec, the kernel spends an appreciable amount of time
(1-2%) doing RDTSCs? And with emulation that'll be more like 25-30%.

It's quite a surprisingly high rate.

 -- Keir



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