From: Keir Fraser Subject: Re: [RFC] Correct/fast timestamping in apps under Xen [1 of 4]: Reliable TSC Date: Sat, 10 Oct 2009 07:35:24 +0100 Message-ID: References: <4AD021B5.5070806@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4AD021B5.5070806@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge , Dan Magenheimer Cc: Tim Deegan , "kurt.hackel@oracle.com" , Ian Pratt , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 10/10/2009 06:55, "Jeremy Fitzhardinge" 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