Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cpufrequtils working -- sort of
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Mon Jan 12, 2009 10:31 pm    Post subject: cpufrequtils working -- sort of Reply with quote

I have a Pentium D 2.8GHz system that I've installed cpufrequtils on, and built support into the kernel.

At boot, the system says this:
Code:

ACPI: Processor [CPU1] (supports 16 throttling states)
ACPI: Processor [CPU2] (supports 16 throttling states)

However, when I start cpufrequtils, using the "ondemand" governor, it only throttles my CPU to 2.4GHz. I've confirmed that this is the lowest frequency it can handle:
Code:

burley ~ # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
2800000 2400000

The dmesg output leads me to believe that this processor can step down 16 increments, but the software only reports 2 possibilities.

Any ideas?

Thanks.
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Jan 14, 2009 1:49 am    Post subject: Reply with quote

Anyone?

Could my BIOS be the limiting factor?
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Wed Jan 14, 2009 9:48 pm    Post subject: Reply with quote

Maybe those 16 steps are between 2.4 and 2.8. Not a big range, but lots of freedom in between ;)

Apart from lame jokes from my side: It should go down to around 2.0. Maybe you've missed something in the kernel .config like CONFIG_X86_ACPI_CPUFREQ?

What does cpufreq-info say? Should be something like this:
Code:

  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz

_________________
I'm really wondering what Lovechild is doing nowadays...
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Thu Jan 15, 2009 1:43 am    Post subject: Reply with quote

Code:

burley ~ # cpufreq-info
cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 2.40 GHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.40 GHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 2.40 GHz and 2.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.40 GHz (asserted by call to hardware).
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 1
  hardware limits: 2.40 GHz - 2.80 GHz
  available frequency steps: 2.80 GHz, 2.40 GHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 2.40 GHz and 2.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.40 GHz (asserted by call to hardware).

_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Thu Jan 15, 2009 8:14 am    Post subject: Reply with quote

I was wondering myself, why I can't scale my AMD like my Pentium4.

The Pentium4 allows you to scale between 325MHz and 2600MHz (which is amazing)

The AMD X2 4600+ allows me to scale between 1000MHz and 2400MHz (which is kind of OK)
_________________
Gentoo on Uptime Project - Larry is a cow


Last edited by disi on Thu Feb 05, 2009 8:31 am; edited 1 time in total
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Jan 28, 2009 5:56 pm    Post subject: Reply with quote

I installed an ubuntu kernel on this system, and it still only scales down to 2.4 GHz. I guess that's just the way it is.
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Wed Jan 28, 2009 9:52 pm    Post subject: Reply with quote

Just one random thought/guess: Maybe the ACPI tables are just wrong. At least this would explain why Ubuntu behaves the same way.

So if you really care you could try to update the BIOS.

And if you really, really want to make sure you could put the CPU on a different motherboard :wink:


On the other hand I just read that the minimal multiplier (is that the correct term in English?) of the Pentium D is 12, which would totally match your values. FSB 800 means 200 MHz bus speed. 200x12=2400.
_________________
I'm really wondering what Lovechild is doing nowadays...
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Thu Jan 29, 2009 5:36 pm    Post subject: Reply with quote

nerdbert wrote:
So if you really care you could try to update the BIOS.


It's running the latest available BIOS version.
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu Jan 29, 2009 7:06 pm    Post subject: Re: cpufrequtils working -- sort of Reply with quote

rev138 wrote:
At boot, the system says this:
Code:

ACPI: Processor [CPU1] (supports 16 throttling states)
ACPI: Processor [CPU2] (supports 16 throttling states)


Mine says 8 states but my CPU only has 5.

I think this is more proof that ACPI operates in a completely different dimension to us normal 4D entities :P
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Fri Jan 30, 2009 10:37 pm    Post subject: Re: cpufrequtils working -- sort of Reply with quote

Cyker wrote:


I think this is more proof that ACPI operates in a completely different dimension to us normal 4D entities :P


Very well said :D

Just because the BIOS is up to date doesn't mean it isn't at fault. But like I said some reading convinced me that the supported range is between 2.4 and 2.8. Let's wait for someone who knows better and let's assume in the meantime that it's just the way it is :wink:
_________________
I'm really wondering what Lovechild is doing nowadays...
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Thu Feb 05, 2009 8:29 am    Post subject: Reply with quote

I guess it is related to the kernel version.

I used the Gentoo-sources 2.6.25 before on the pentium 4 with p4_clockmod module and was able to scale between 325MHz and 2.6 GHz smoothless.

Now that I use the 2.6.18 openvz sources I can scale the same CPU with the same BIOS settings only between 2.2 GHz and 2.6 GHz

With P-State drivers or without and all the translation libs options or not in the kernel, it's all the same. I'll try to install the 2.6.20 openvz test sources this evening and see if there is any change... after work :(

//edit: Linux 2.6.24-ovz006 (i686) - everything back to normal 325MHz to 2.6 GHz after kernelupgrade
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Autie
Guru
Guru


Joined: 25 Jul 2003
Posts: 309
Location: Ledegem - Belgium

PostPosted: Sun Feb 22, 2009 10:24 am    Post subject: Reply with quote

My freq can't be changed anymore, kinda odd:

Code:
cpufreq-info
cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 2.00 GHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 2.33 GHz, 2.00 GHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 2.00 GHz and 2.00 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 2.00 GHz (asserted by call to hardware).
  cpufreq stats: 2.50 GHz:0,03%, 2.33 GHz:0,00%, 2.00 GHz:99,97%  (9)
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 1
  hardware limits: 2.00 GHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 2.33 GHz, 2.00 GHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 2.00 GHz and 2.00 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.00 GHz (asserted by call to hardware).
  cpufreq stats: 2.50 GHz:0,01%, 2.33 GHz:0,00%, 2.00 GHz:99,99%  (13)
analyzing CPU 2:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 2
  hardware limits: 2.00 GHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 2.33 GHz, 2.00 GHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 2.00 GHz and 2.00 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.00 GHz (asserted by call to hardware).
  cpufreq stats: 2.50 GHz:0,01%, 2.33 GHz:0,00%, 2.00 GHz:99,99%  (10)
analyzing CPU 3:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 3
  hardware limits: 2.00 GHz - 2.50 GHz
  available frequency steps: 2.50 GHz, 2.33 GHz, 2.00 GHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 2.00 GHz and 2.00 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.00 GHz (asserted by call to hardware).
  cpufreq stats: 2.50 GHz:0,01%, 2.33 GHz:0,00%, 2.00 GHz:99,99%  (10)

As you see, current cpu freq is set between 2.00 and 2.00....
Is there a place i can change those values?
_________________
The capacity to learn is a gift; The ability to learn is a skill; The willingness to learn is a choice.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Feb 23, 2009 10:13 am    Post subject: Reply with quote

This should do it:

Code:
$ cpufreq-set
At least one parameter out of -f/--freq, -d/--min, -u/--max, and
-g/--governor must be passed
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Feb 24, 2009 4:45 pm    Post subject: Reply with quote

disi wrote:
I was wondering myself, why I can't scale my AMD like my Pentium4.

The Pentium4 allows you to scale between 325MHz and 2600MHz (which is amazing)

The AMD X2 4600+ allows me to scale between 1000MHz and 2400MHz (which is kind of OK)


It's getting worse my Opteron 285 has 5 p-states while my my core2 quad 9550 only has 3. 2.0GHz, 2.4GHz, 2.83GHz. And 3 voltages 1.05V, 1.1V, and 1.15V

Maybe it does not matter much though.
_________________
John

My gentoo overlay
Instructons for overlay


Last edited by drescherjm on Tue Feb 24, 2009 4:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Feb 24, 2009 4:48 pm    Post subject: Reply with quote

Quote:
Linux 2.6.24-ovz006


I have been using that for months without problems. On my home machine I moved up to 2.6.26 openvz since November with a few (3 to 5 each) 2.6.24 and 2.6.26 openvz kernels at work. Both are quite stable. However the 2.6.27 openvz version is not yet stable for me.

BTW, I am just grabbing the git versions now because the released versions happen much slower than the openvz patches. Although since both 2.6.24 and 2.6.26 are stable (I do not mean gentoo stable because no bug reports have been created in a month, I mean 24/7 bug free on multiple machines), I guess this is not necessary now.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum