From: Robert Kaiser Subject: How to increase timer resolution? Date: Sun, 14 Sep 2008 08:06:28 +0200 Message-ID: <200809140806.28601.kaiser@informatik.fh-wiesbaden.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi everyone, I'm using Xen 3.2.1 in my experimental setup, trying to find relationships= =20 between switch frequencies and overheads. For that, it would be good if I=20 could increase the resolution of the timer (i.e. the one that you access=20 with set_timer(), stop_timer() and friends). Currently, this seems to be=20 fixed at 10 milliseconds, but I would like to change it to 1ms or maybe eve= n=20 down to a few hundred microseconds. I'm aware that this will affect=20 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=20 giving the kernel the right commandline options (which?), can it be done by= =20 changing a few compile time constants (which? where?), or is there more=20 involved? Ideally, I would implement a new control function by which dom0 could chang= e=20 the frequency dynamically at run-time, but even having to re-compile Xen=20 between experiments might be an acceptable approach. However, the code base= =20 is so dauntingly huge for a newbie like myself, I'm having difficulties in= =20 finding the right set-screws. Can anyone help me out? Cheers 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-1294 Kurt-Schumacher-Ring 18, 65197 Wiesbaden, Germany fax: (+49)611-9495-1289