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: AW: Re: AW: [Xen-users] cpu frequency scaling in xen 3.3.1

To: Carsten Schiers <carsten@xxxxxxxxxx>
Subject: Re: AW: Re: AW: [Xen-users] cpu frequency scaling in xen 3.3.1
From: Florian Gleixner <flo@xxxxxxxxx>
Date: Sun, 29 Mar 2009 23:29:39 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 29 Mar 2009 14:30:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <H000006700025a01.1238359524.uhura.space.zz@MHS>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Openpgp: id=F6B09B5C
References: <H000006700025a01.1238359524.uhura.space.zz@MHS>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20081227)
Hi,

i've read the forum thread and patched the KConfig. But now i'm lost
compiling the kernel:

...
  CC      drivers/xen/xenbus/xenbus_dev.o
  CC [M]  drivers/xen/xenbus/xenbus_backend_client.o
  LD      drivers/xen/xenbus/built-in.o
  LD [M]  drivers/xen/xenbus/xenbus_be.o
  LD      drivers/xen/built-in.o
  LD      drivers/built-in.o
  LD      vmlinux.o
drivers/built-in.o: In function `cpufreq_quick_get':
/usr/src/linux/drivers/cpufreq/cpufreq.c:1146: multiple definition of
`cpufreq_quick_get'
arch/x86/kernel/built-in.o:/usr/src/linux/arch/x86/kernel/acpi/processor_extcntl_xen.c:212:
first defined here
make: *** [vmlinux.o] Error 1

Kernel source is a opensuse 11.1 kernel 2.6.27.19-3.2-xen. Xen is 3.3.1

Hmm. Any chance on the devel list?

Florian


Carsten Schiers wrote:
> Latest 3.3 Xen docs will explain the parameters, but don't give the 
> background information. It's
> barried deep in the Xen-Devel list. I don't think <Fam10h families will 
> be ever supported diretctly
> in the hypervisor, but there is no necessity to do so. The modified 
> ondemand governor uses a hypercall
> to get idle times and follow the policy. 
> 
> Building cpufreq management and the necessary drivers (e.g. powernow-k8, 
> cpufreq_ondemand,...) is a
> bit tricky. Follow the link. Eventualy you also need to patcht he 
> Kconfig file a bit...
> 
> BR,
> Carsten.
> 
> -----Ursprüngliche Nachricht-----
> Von: Florian Gleixner [mailto:flo@xxxxxxxxx] 
> Gesendet: Sonntag, 29. März 2009 18:19
> An: Carsten Schiers
> Cc: xen-users
> Betreff: Re: AW: [Xen-users] cpu frequency scaling in xen 3.3.1
> 
> Thanks!
> 
> Is there a document that i have overseen? Or is the documentation 
> missing?
> Cpu frequency scaling inside the hypervisor would be great. Where can i 
> vote for that my CPU model will be included?
> I'll try to get the powernow-k8.ko build now. Opensuse 11.1 has it for 
> the non-xen kernel but did not include it in the xen enabled kernel.
> 
> Florian
> 
> Carsten Schiers wrote:
>> Florian,
>>
>> handling of P-States for AMD CPUs is only possible in xen hypervisor 
>> from CPU Fam 10h on.
>> The 5050e is family 0Fh.
>>
>> The alternative is using frequency handling in dom0, by specifying 
>> cpufreq=dom0-kernel in the hypervisor start line. You need 
>> powernow-k8.ko then in dom0 and can use e.g. the dom0 ondemand 
>> governor (by calling cpufreq-set -g ondemand).
>>
>> Assuming you are German, please see
>> http://www.ctserver.org/ftopic2437.html for some details.
>> It is a bit tricky and still not working 100% without log warnings for 
> 
>> me and my 4050e.
>>
>> BR,
>> Carsten.
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Florian Gleixner [mailto:flo@xxxxxxxxx]
>> Gesendet: Sonntag, 29. März 2009 12:03
>> An: xen-users@xxxxxxxxxxxxxxxxxxx
>> Betreff: [Xen-users] cpu frequency scaling in xen 3.3.1
>>
>> Hi,
>>
>> i read the xenpm wiki page, but i cannot use the "p-states". xenpm
>> shows:
>>
>> xenpm
>> cpu id               : 0
>> total C-states       : 2
>> idle time(ms)        : 1776034
>> C0                   : transition [00000000000000000000]
>>                        residency  [00000000000000000000 ms]
>> C1                   : transition [00000000000000260278]
>>                        residency  [00000000000000000000 ms]
>>
>> cpu id               : 1
>> total C-states       : 0
>> idle time(ms)        : 1771123
>>
>> [CPU0] failed to get P-states statistics information [CPU1] failed to 
>> get P-states statistics information
>>
>> /proc/cpuinfo shows:
>> model name      : AMD Athlon(tm) Dual Core Processor 5050e
>>
>> without xen i can scale the frequency perfectly. Are p-states for this 
> 
>> CPU model unsupported? My grub line is:
>>     kernel /xen.gz cpufreq=xen cpuidle ...
>>
>> Thanks for the help!
>>
>> Florian
>>
>>
>>
>>
> 
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>