Assistance with enabling Cool N Quiet on my ProxMox system

larathydo

New Member
Jan 12, 2011
4
0
1
Hey everyone!

So let me preface all of this by saying I searched for any amount of information on this, but I couldn't seem to find any information on the forums. If I am missing something, I apologize in advance.

So I have the following setup for ProxMox that I wish to run two virtual machines with:

AMD Phenom X4 9850 Black Edition (2.5Ghz)
Asus M2N-SLI Deluxe motherboard
2GB of DDR2 533Mhz Ram
500GB HDD

VM#1: IPCop 1.4.20
VM#2: Windows Server 2008 (using VirtIO drivers)
VMs work great and everything is peachy (impressed so far with the performance of ProxMox!). I also (obviously) have Cool N' Quiet enabled on my motherboard for the processor via the BIOS.

My question has to do with Cool N Quiet and how it relates to the usage of the system. As you can see, for the majority of the time IPCop doesn't exactly need all the horsepower the system can offer and Windows Server 2008 will be - for the mostpart - not using many CPU cycles. My intention is to turn the Win2k8 server into a transcoding server using PS3MediaServer but only when the system is called upon from my PS3 (it'll just sit there idle most of the time it's turned on unless working).

Furthermore, I have a UPS that I wish to use with this system which isn't exactly the beefiest UPS but will do. As you can see, I would like to use the Cool N' Quiet feature to slow down the CPU when the system isn't under much load to conserve power.

Okay... enough blabbing. As I mentioned earlier, I didn't have much luck using this forum to locate any details on the topic, so I turned to google. Here are some links I found and used:

Guide:
http://technowizah.com/2007/01/debian-how-to-cpu-frequency-management.html

Various Commands (for cpufreq):
http://www.pantz.org/software/cpufreq/usingcpufreqonlinux.html

Using the above guide, this is what I tried executing on my ProxMox system:

Step 1) Double checked CPU information
Step 2) Defined the drivers / modules for my class of CPU
Step 3) Designated the type of governor I wished to used ("ondemand", for now)
Step 4) Applied the type of governor to all four cores.
Step 5) Queried the CPU details using cpufreq-info
Note: I'm not sure why at this point each core still says "frequency should be within 2.50ghz and 2.50ghz". I expected to see it saying "between 1.25 and 2.50ghz".
Step 6) Confirmed the current CPU frequency - it's still the stock 2.5ghz across all four cores.

Code:
proxmox:~# cat /proc/cpuinfo | grep "model name"
model name    : AMD Phenom(tm) 9850 Quad-Core Processor
model name    : AMD Phenom(tm) 9850 Quad-Core Processor
model name    : AMD Phenom(tm) 9850 Quad-Core Processor
model name    : AMD Phenom(tm) 9850 Quad-Core Processor
proxmox:~# modprobe powernow_k8
proxmox:~# modprobe cpufreq_ondemand
proxmox:~# echo ondemand | tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand
proxmox:~# echo ondemand | tee /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
ondemand
proxmox:~# echo ondemand | tee /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
ondemand
proxmox:~# echo ondemand | tee /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
ondemand
proxmox:~# 
proxmox:~# 
proxmox:~# cpufreq-info
cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@lists.linux.org.uk, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 1.25 GHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 1.25 GHz
  available cpufreq governors: ondemand, powersave, conservative, userspace, performance
  current policy: frequency should be within 2.50 GHz and 2.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.50 GHz (asserted by call to hardware).
  cpufreq stats: 2.50 GHz:100.00%, 1.25 GHz:0.00%  (2)
analyzing CPU 1:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 1
  hardware limits: 1.25 GHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 1.25 GHz
  available cpufreq governors: ondemand, powersave, conservative, userspace, performance
  current policy: frequency should be within 2.50 GHz and 2.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.50 GHz (asserted by call to hardware).
  cpufreq stats: 2.50 GHz:100.00%, 1.25 GHz:0.00%  (2)
analyzing CPU 2:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 2
  hardware limits: 1.25 GHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 1.25 GHz
  available cpufreq governors: ondemand, powersave, conservative, userspace, performance
  current policy: frequency should be within 2.50 GHz and 2.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.50 GHz (asserted by call to hardware).
  cpufreq stats: 2.50 GHz:100.00%, 1.25 GHz:0.00%  (2)
analyzing CPU 3:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 3
  hardware limits: 1.25 GHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 1.25 GHz
  available cpufreq governors: ondemand, powersave, conservative, userspace, performance
  current policy: frequency should be within 2.50 GHz and 2.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.50 GHz (asserted by call to hardware).
  cpufreq stats: 2.50 GHz:100.00%, 1.25 GHz:0.00%  (2)
proxmox:~# cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq 
2500000
2500000
2500000
2500000
Anyone have any idea? I'm stumped. Im also a relative linux noob, so I could just be missing something stupidly simple.

And for the record - It seems as if the CPU frequency (assuming this all was working) could only go from 1.25Ghz to 2.50Ghz. Is it possible I could lower the frequency even further to go between 800Mhz to 2.50Ghz at full load, for example?

Thanks in advance for any help!
What am I missing / doing wrong? I realize this hasn't been set yet to be permanent but I just wanted to make sure it was working first.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!