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

[Xen-devel] Re: [PATCH] Align periodic vpts

To: "Wei, Gang" <gang.wei@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] Align periodic vpts
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 11 Feb 2009 11:33:33 +0000
Cc:
Delivery-date: Wed, 11 Feb 2009 03:33:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8FED46E8A9CA574792FC7AACAC38FE7701CB087ADD@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmMOKb7clHaVWfpTWKVxXzVWUXrbAAA+rhe
Thread-topic: [PATCH] Align periodic vpts
User-agent: Microsoft-Entourage/12.14.0.081024
On 11/02/2009 11:05, "Wei, Gang" <gang.wei@xxxxxxxxx> wrote:

> Aligned periodic vpts can improve the HVM guest power consumption a lot,
> especially while the guest using high HZ such as 1000HZ.
> This patch aligns all periodic vpts except vlapic to the period bound. For
> vlapic, only make it aligned while using the new option "align_periodic_vpt".
> 
> Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>

Also, Intel already contributed code to merge up timers. It's the
expiry-range patch in common/timer.c. This could be used by vpt.c to add a
per-domain acceptable range on vpt expiries. High-frequency timers would
then naturally fire together. Having a per-domain config option for this
would be something that would actually seem more generically useful (could
be used perhaps for other timers beyond vpt.c even).

This seems to me a more intuitive and gracefully selectable/de-selectable
alternative to this proposed patch, which really looks like a hardcoded
hack.

 -- Keir



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