From: Dan Magenheimer Subject: RE: [Xen-devel] Re: About profiling xen Date: Wed, 30 Sep 2009 07:21:25 -0700 (PDT) Message-ID: <66dbb9d4-c820-4297-b14b-34922b2d14f1@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: Marco Tizzoni , =?UTF-8?B?IlBhc2kgS8Okcmtrw6RpbmVuIg==?= Cc: "Fajar A." , Fasiha Ashraf , xen , xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > Is there a way to make available a better timer (hpet,acpi....)? >=20 > Also, on another xen box (rhel 5.2), I've a 'pit' clocksource in > available_clocksource. > After: > # sysctl -w xen.independent_wallclock=3D1 >=20 > and > -------------------------------------------------------------- > ---------------------------------------------------------------------- > # echo pit >=20 > /sys/devices/system/clocksource/clocksource0/current_clocksource > [root@station1 init.d]# cat > /sys/devices/system/clocksource/clocksource0/current_clocksource > jiffies > -------------------------------------------------------------- > ---------------------------------------------------------------------- >=20 > the clocksource is unmodified. >=20 Because of save/restore and migrate, no hardware timer is suitable for a pv domain. The code that is handling the clock is the paravirtualized clock code (aka pvclock). Nobody ever changed the sysfs reporting mechanism in pv versions of released Red Hat kernels, so clocksource gets reported as "jiffies", and even though "pit" appears to be available, it is not (since it wouldn't work). I suspect this is also the case for other distros' pv kernels. Dan