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
[email protected]
http://lists.xensource.com/xen-devel
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: [email protected] [mailto:[email protected]] 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
[email protected]
http://lists.xensource.com/xen-devel
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
[email protected]
http://lists.xensource.com/xen-devel
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:[email protected]]
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
[email protected]
http://lists.xensource.com/xen-devel