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: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to increase timer resolution?
From: Robert Kaiser <kaiser@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 14 Sep 2008 19:53:05 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 14 Sep 2008 10:52:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C4F2FD31.1D2B2%keir.fraser@xxxxxxxxxxxxx>
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>
Organization: FH Wiesbaden
References: <C4F2FD31.1D2B2%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
On Sunday 14 September 2008 18:41:05 Keir Fraser wrote:
> The set_timer() infrastructure is not actually tick-based. With an APIC
> you'll get timer accuracy of around 100us (this figure because we service
> timer handlers up to 100us before the deadline specified to set_timer(),
> just to avoid multiple timer interrupts for close-together events). Without
> this extra fudge factor you'd get accuracy down to microsecond resolution.

Aha, the TIME_SLOP constant, right? So is it safe to simply reduce this 
to -say- 10us in  order to get a 20us resolution? Will check his out as soon 
as I have a suitable test machine.

Thanks again

Rob


-- 
Robert Kaiser                    http://wwwvs.informatik.fh-wiesbaden.de
Labor für Verteilte Systeme            kaiser@xxxxxxxxxxxxxxxxxxxxxxxxxx
FH Wiesbaden - University of Applied Sciences     tel: (+49)611-9495-294
Kurt-Schumacher-Ring 18, 65197 Wiesbaden, Germany fax: (+49)611-9495-289

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