[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Using collectd: CPUFreq in dom0



>>> "Stefan Kuhne" <stefan.kuhne@xxxxxxx> 01/04/13 10:31 PM >>>
>Am 04.01.2013 22:11, schrieb Konrad Rzeszutek Wilk:
> On Tue, Dec 25, 2012 at 07:55:37PM +0100, Stefan Kuhne wrote:
>>> I know that the value has to come from hypervisor and I've seen the code
>>> in xenpm.
>> 
>> Right. Did you look in the source code from xenpm?
>
>I've took a look into it.
>So I've found how xenpm get the values.
>Is there code with sysfs?
>
>My problem is how I can create the required files in sysfs.
>Original they are created in cpufreq.c.

Are you aware that this cannot be done in a way directly fitting the native
case, since Dom0's vCPU-s don't match the system's pCPU-s, and hence
you'd need a separate representation, along with (where necessary, e.g.
when wanting to access MSRs like MPERF/APERF) fiddling with vCPU
affinities for obtaining/consuming the data?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.