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] xen power management

To: tbrown@xxxxxxxxxxxxx, Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] xen power management
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Tue, 21 Feb 2006 12:42:55 +0100
Delivery-date: Tue, 21 Feb 2006 11:56:39 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcY2dB+YJxFeaSAGTqm2TAOJWPwEmQAZtC3w
Thread-topic: [Xen-users] xen power management
 

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> tbrown@xxxxxxxxxxxxx
> Sent: 20 February 2006 23:20
> To: Xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] xen power management
> 
> On Mon, 20 Feb 2006, sriram govindan wrote:
> 
> > hi guys,
> >
> >  I am new to xen and would like to know the power 
> management options 
> > provided to the virtual machines like,
> >
> >  ?? Are the VMs allowed to manipulate processor frequency 
> or aloowed 
> > to do some kind of voltage scaling. ??
> 
> [ I'm no XEN expert, but I think the answer is self evident. ]
> 
> no. Think about it. None of the VMs have any concept of how 
> busy the CPU is (since they can't peak at the other VMs). If 
> this is permitted, I'm pretty sure it would be considered a bug.
> 
> XEN (the hypervisor) could conceivably use this capacity... 
> as _it_ knows how fast guests voluntarily give up the CPU.

Exactly, only the hypervisor knows the entire picture.

The way I imagine it working (having discussed with several other Xen
developers), would be that Dom0 runs a daemon of some sort that monitors
the entire systems CPU usage (using a call into Xen Hypervisor).
Depending on the results of this call, adjustment to CPU speed can be
done. 

The hardest part would be to determine what CPU load is suitable for
reduction in speed and at what level do we increase the CPU speed - and
plumbing it into the existing cpufreq architecture so that it works
smoothly with existing kernels and drivers. 

Another factor would be to actually factor in the settings being told by
the individual kernels - say you run 5 guests, and one is using 100%
cpu, but it's also talking to the Power Management system to say "set me
to the slowest CPU-speed", perhaps because the task at hand is a
low-priority one, and it's not affecting user interaction. For
unmodified (fully virtualized) guests, we could monitor the MSR's used
for power management, for example. This would of course be a more
complex solution.

--
Mats


> 
> -Tom
> 


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

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