From: Robert Kaiser Subject: Re: How to increase timer resolution? Date: Sun, 14 Sep 2008 19:53:05 +0200 Message-ID: <200809141953.06164.kaiser@informatik.fh-wiesbaden.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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). Witho= ut > 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=20 to -say- 10us in order to get a 20us resolution? Will check his out as soo= n=20 as I have a suitable test machine. Thanks again Rob =2D-=20 Robert Kaiser http://wwwvs.informatik.fh-wiesbaden.de Labor f=FCr Verteilte Systeme kaiser@informatik.fh-wiesbaden.de =46H Wiesbaden - University of Applied Sciences tel: (+49)611-9495-294 Kurt-Schumacher-Ring 18, 65197 Wiesbaden, Germany fax: (+49)611-9495-289