OpenVZ Forum


Home » General » Support » *BUG+PATCH REPORTED* 2.6.20.12-ovz007.1 on AMD X2 AM2: cpufreq does not change freq
*BUG+PATCH REPORTED* 2.6.20.12-ovz007.1 on AMD X2 AM2: cpufreq does not change freq [message #14614] Tue, 03 July 2007 13:03 Go to next message
tobbi is currently offline  tobbi
Messages: 3
Registered: July 2007
Junior Member
Hello,

here is what I did:

Hardware:
- Mainboard: Asus M2N-SLI Deluxe, chipset Nvidia nForce 570
- CPU: AMD Athlon64 X2 4600+ EE, socket AM2

Kernel:
- Fetched 2.6.20 vanilla from
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar .bz2
- Applied patch-ovz007.1-combined from
http://download.openvz.org/kernel/branches/2.6.20/2.6.20-ovz 007.1/patches//patch-ovz007.1-combined.gz
- Activated cpufreq with drivers powernow3d-k2 and ahci-p-states
- Activated CONFIG_ATA (new SATA/PATA framework), deactivated CONFIG_IDE (old PATA/SATA framework)
- Deactivated modules (I compile everything in)
- Deactivated support for 32-bit binaries

- Booted from grub with root=/dev/sde2 vga=0x307
- Userland is Gentoo, pure 64-bit
- dmesg says that cpufreq found states for 2.4, 2.2, 2.0, 1.8 and 1.0 GHz
- disk i/o is fast (80 MB/sec for all sata drives)
- network performance is good (40..50 MB/sec on both gigabit interfaces)
- lm_sensors works, shows plausible temperatures and fan speeds
- CPU frequency is 2.4 GHz for both cores, as expected

Problem:
- Set cpufreq governor to "ondemand", both cores are 99.7..100% idle
- CPU frequency is still 2.4 GHz for both cores, but should be 1 GHz
- Set cpufreq governor to "userspace"
- Set frequency for both cores (cpu0 and cpu1) to 1 Ghz using scaling_setspeed
- CPU frequency is still 2.4 GHz for both cores, but should be 1 GHz

Questions:
- Doesn't ovz007.1 support cpufreq, or is it a bug, or did I overlook something?
- How can I get cpufreq to work?

I cannot use 2.6.18 because it's drivers don't support the nForce 570 SATA interfaces.
If needed, I can post /proc/config.gz and dmesg output tonight.
Thanks for help!

-- Tobbi

[Updated on: Thu, 12 July 2007 00:09]

Report message to a moderator

Re: 2.6.20.12-ovz007.1 on AMD X2 AM2: cpufreq does not change freq [message #14617 is a reply to message #14614] Tue, 03 July 2007 13:19 Go to previous messageGo to next message
ugo123 is currently offline  ugo123
Messages: 22
Registered: June 2007
Junior Member
You may have the same problem that I have with my cheap motherboard and recent Linux kernels....

Check your dmesg if you have something like

powernow-k8: MP systems not supported by PSB BIOS structure
powernow-k8: MP systems not supported by PSB BIOS structure

That's my problem for about a year and I don't a real answer since then.....
Re: 2.6.20.12-ovz007.1 on AMD X2 AM2: cpufreq does not change freq [message #14620 is a reply to message #14617] Tue, 03 July 2007 14:01 Go to previous messageGo to next message
tobbi is currently offline  tobbi
Messages: 3
Registered: July 2007
Junior Member
Thank you for your kind answer Ugo, but that's not it.

With vanilla 2.6.22 and a very similar kernel .config (difference only due to different kernel version and missing openvz), cpufreq runs fine on that machine.

Wait, now that I think about it, I should try 2.6.20.12 vanilla as well. But cpufreq and the powernow3d-k8 driver worked fine with 2.6.16 and 2.6.18 on an ECS Elite mainboard with AMD Athlon64 X2 4200+ on socket 939, which is not too far off. Hence I assume that vanilla kernels are all fine since 2.6.16 or earlier, and that my problem has something to do with the ovz007.1 patch.

Have a good time...
Re: 2.6.20.12-ovz007.1 on AMD X2 AM2: cpufreq does not change freq [message #14621 is a reply to message #14620] Tue, 03 July 2007 14:09 Go to previous messageGo to next message
ugo123 is currently offline  ugo123
Messages: 22
Registered: June 2007
Junior Member
tobbi wrote on Tue, 03 July 2007 10:01

Thank you for your kind answer Ugo, but that's not it.

With vanilla 2.6.22 and a very similar kernel .config (difference only due to different kernel version and missing openvz), cpufreq runs fine on that machine.

Wait, now that I think about it, I should try 2.6.20.12 vanilla as well. But cpufreq and the powernow3d-k8 driver worked fine with 2.6.16 and 2.6.18 on an ECS Elite mainboard with AMD Athlon64 X2 4200+ on socket 939, which is not too far off. Hence I assume that vanilla kernels are all fine since 2.6.16 or earlier, and that my problem has something to do with the ovz007.1 patch.

Have a good time...


Ok, you're lucky then Wink
For me it's since 2.6.13 or 2.6.14 (with vanilla kernels), I thought you had the same thing, but if it's working with vanilla 2.6.16 and 2.6.18, it's clearly not the same issue.
*BUG+PATCH REPORTED* 2.6.20.12-ovz007.1 on AMD X2 AM2: cpufreq does not change freq [message #14856 is a reply to message #14614] Thu, 12 July 2007 00:07 Go to previous messageGo to next message
tobbi is currently offline  tobbi
Messages: 3
Registered: July 2007
Junior Member
With vanilla 2.6.20.12, cpufreq works perfectly on both machines:
- Asus mainboard with nForce 570 and socket AM2
- ECS mainboard with VIA K8T800 and socket 939
This proves that the problem is caused by patch-ovz007.1-combined.

I looked a little deeper, and came up with a hack for powernow-k8.c that makes the userspace governor work for me.

I filed the problem and my patch in bugzilla:
http://bugzilla.openvz.org/show_bug.cgi?id=643

[Updated on: Thu, 12 July 2007 00:10]

Report message to a moderator

Re: 2.6.20.12-ovz007.1 on AMD X2 AM2: cpufreq does not change freq [message #14861 is a reply to message #14856] Thu, 12 July 2007 05:04 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Tobbi, thank you for the information, we will investigate the problem!

Vasily
Previous Topic: *SOLVED* Compression while migrating?
Next Topic: kde on openvz
Goto Forum:
  


Current Time: Sat Nov 16 13:08:39 GMT 2024

Total time taken to generate the page: 0.03045 seconds