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] How to increase timer resolution?

To: Robert Kaiser <kaiser@xxxxxxxxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to increase timer resolution?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Sun, 14 Sep 2008 10:56:41 +0100
Cc:
Delivery-date: Sun, 14 Sep 2008 02:56:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200809140806.28601.kaiser@xxxxxxxxxxxxxxxxxxxxxxxxxx>
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: AckWUC+vbjcv4oJDEd2w4AAWy6hiGQ==
Thread-topic: [Xen-devel] How to increase timer resolution?
User-agent: Microsoft-Entourage/11.4.0.080122
set_timer() and friends are already high-resolution, so long as your system
has a local APIC. This is undoubtedly the case if running a multi-processor
system. On a uni-processor system you might need to forcibly enable use of
the APIC with 'lapic' as a Xen boot parameter.

Either way, early during boot you should find a message saying local APIC is
found and enabled, or not found, or whatever.

 -- Keir

On 14/9/08 07:06, "Robert Kaiser" <kaiser@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Hi everyone,
> 
> I'm using Xen 3.2.1 in my experimental setup, trying to find relationships
> between switch frequencies and overheads. For that, it would be good if I
> could increase the resolution of the  timer (i.e. the one that you access
> with set_timer(), stop_timer() and friends). Currently, this seems to be
> fixed at 10 milliseconds, but I would like to change it to 1ms or maybe even
> down to a few hundred microseconds. I'm aware that this will affect
> performance --  that is part of what I'd like to measure.
> 
> Can you experts give me some hints how to do this, i.e. is it just a matter of
> giving the kernel the right commandline options (which?), can it be done by
> changing a few compile time constants   (which? where?), or is there more
> involved?
> 
> Ideally, I would implement a new control function by which dom0 could change
> the frequency dynamically at run-time, but even having to re-compile Xen
> between experiments might be an acceptable approach. However, the code base
> is so dauntingly huge for a newbie like myself, I'm having difficulties in
> finding the right set-screws.  Can anyone help me out?
> 
> Cheers
> 
> Rob



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