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-users

RE: [Xen-users] XP SP3 guest high CPU usage

To: <admin@xxxxxxxxxxx>, "Xen Users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] XP SP3 guest high CPU usage
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Tue, 19 May 2009 12:41:49 +1000
Cc:
Delivery-date: Mon, 18 May 2009 19:42:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6894a6470905180643k14e9f544vf022407d2d08d940@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <6894a6470905180643k14e9f544vf022407d2d08d940@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnXvte3TEiy0xl/RYaArzxnTjWh2AAa8ZIg
Thread-topic: [Xen-users] XP SP3 guest high CPU usage
> 
> Hi I'm getting very high CPU usage on idle for an XP SP3 guest, which
is doing
> nothing and is reporting 0% CPU within the guest.
> 

Make a copy of the default entry in your boot.ini and add /PATCHTPR to
it.

The TPR register is accessed very very frequently under XP (and 2003 <
sp2) and causes a VMEXIT (breakout to the hypervisor) every time it is
accessed. /PATCHTPR makes GPLPV patch the kernel to make it a bit
faster.

With an AMD CPU, /PATCHTPR will improve things greatly by using an
instruction that is only supported by AMD processors in 32 bit mode.

If you are using an Intel CPU, it will improve things a bit (my patch
caches the TPR register and only writes cause a slowdown).

Newer Intel CPU's and a newish version of Xen shouldn't have this
problem at all as Xen emulates access itself.

Let me know how it works out.

Thanks

James



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

<Prev in Thread] Current Thread [Next in Thread>