Quantcast

How can I scaling CPU frequency in Xen-3.3.0?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How can I scaling CPU frequency in Xen-3.3.0?

zhangxiang
Hello Everybody:
   I know that Xen-3.3.0 supports CPU frequency scaling in the userspace, and hypercall interface is created for such purpose (tools/libxc/xc_pm.c).
   But how can I use this interface in the userspace of D0? Should I have to write some programs or scripts? Is there any tools to use this function?
   Thank you very much!
                                                                                                                                      zhangxiang

                                                                                                                                    National Research Center for Intelligent Computing Systems,

                                                                                                                                Institute of Computing Technology, Chinese Academy of Sciences

 
 

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: How can I scaling CPU frequency in Xen-3.3.0?

Yu, Ke
Recent cset 18543 (http://xenbits.xensource.com/xen-unstable.hg?rev/7592da5118ec) has provided userspace utility xenpm to get Px related information. you can try this.
 
BTW, cpufreq scaling is disabled by default, don't forget to enable it by adding xen grub option "cpufreq=xen".
 
Best Regards
Ke


From: [hidden email] [mailto:[hidden email]] On Behalf Of zhangxiang
Sent: 2008年9月30日 15:02
To: xen-devel
Subject: [Xen-devel] How can I scaling CPU frequency in Xen-3.3.0?

Hello Everybody:
   I know that Xen-3.3.0 supports CPU frequency scaling in the userspace, and hypercall interface is created for such purpose (tools/libxc/xc_pm.c).
   But how can I use this interface in the userspace of D0? Should I have to write some programs or scripts? Is there any tools to use this function?
   Thank you very much!
                                                                                                                                      zhangxiang

                                                                                                                                    National Research Center for Intelligent Computing Systems,

                                                                                                                                Institute of Computing Technology, Chinese Academy of Sciences

 
 

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RE: How can I scaling CPU frequency in Xen-3.3.0?

zhangxiang
Hello, Yu, Ke:
 
Thank you very much for your help! With this patch I can get the CPU PM info expediently.
And I want to set the frequency of physical CPU in the xen system, just like userspace governor in Linux proc filesystem. Is there any tools?
 
Zhang Xiang

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: RE: How can I scaling CPU frequency in Xen-3.3.0?

Yu, Ke
Currently, Xen only has ondemand governor, and the CPU freqquency is set automatically by xen according to the workload. The userspace governor is not available yet. so there is no such tool to set frequency manually.
 
Technically speaking, it is not hard to add userspace governor to xen, since the governor interface is well defined as linux kernel. and adding more governors to Xen is in our mind, but we are not sure if it is necessary. Inputs from community are welcome.
 
Best Regards
Ke


From: zhangxiang [mailto:[hidden email]]
Sent: 2008年10月2日 9:43
To: Yu, Ke; xen-devel
Subject: Re: RE: [Xen-devel] How can I scaling CPU frequency in Xen-3.3.0?

Hello, Yu, Ke:
 
Thank you very much for your help! With this patch I can get the CPU PM info expediently.
And I want to set the frequency of physical CPU in the xen system, just like userspace governor in Linux proc filesystem. Is there any tools?
 
Zhang Xiang

_______________________________________________
Xen-devel mailing list
[hidden email]
http://lists.xensource.com/xen-devel
Loading...