TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Linux & Opensource > Mandriva Linux

Notices

CPU Speed Half In Linux

Mandriva Linux


Reply
 
Thread Tools Display Modes
Old 09-01-2008, 05:57 AM   #11
Evil Bastard
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Jan 8, 1:05 pm, "David W. Hodgins" <>
wrote:
> On Mon, 07 Jan 2008 19:39:21 -0500, Les B. Labbauf <> wrote:
>
> > Do not have kpowersave in my tray, and running gnome, and the preferences
> > for this are set to performance.

>
> Right click on a blank area of the menu bar. Select Add to Panel. Add the applet
> called "Cpu Frequency Scaling Monitor".
>
> Left click on the frequency icon.
>
> Note that the Policy has four settings, Conservative, Ondemand, Performance,
> and powersave.
>
> While the policy may be set to Performance, the frequency scaling is probably
> set to dynamic, aka ondemand. Unlike kpowersave, the gnome frequency scaling
> monitor does not appear, to have any option to change the cpu frequency, used
> for a given policy. However, it appears, that if you select the max freq shown
> as possible, and it should change the frequency. I haven't tested to see if this
> holds over a reboot. In my case, I've used kpowersave, to change the default
> for the performance policy, from dynamic, to performance, and it appears that
> the gnome applet, hasn't altered this.
>
> Regards, Dave Hodgins
>
> --
> Change nomail.afraid.org to ody.ca to reply by email.
> (nomail.afraid.org has been set up specifically for
> use in usenet. Feel free to use it yourself.)


I have tried adding that applet. It doesn't add properly, ie; no
icon, just a blank bar about 1/16 inch thick.. When I do left click
and select preferences, I can change to performance. But again, the
applet does not install properly on the panel, and does nothing when I
click on it
  Reply With Quote
Old 09-01-2008, 05:57 AM   #12
Evil Bastard
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Jan 8, 1:30 pm, Wes Newell <> wrote:
> On Tue, 08 Jan 2008 05:04:00 -0600, Les B. Labbauf wrote:
> >>> I checked the system services in the Control Center. CPUFREQD is not
> >>> running, and will not start when I click the start button (It is set
> >>> to run on boot).

>
> >> What's the error message when you try and start it? It had to start at
> >> least once to lower the cpu speed to 800MHz. If, after that, it dies or
> >> is stopped, the cpu will stay at the last speed.

>
> > running cpufreqd from a terminal prompt just returns the prompt with no
> > feedback.

>
> But if you tried to start via the control center it would.
>
>
>
> >> If coufreqd isn't running, you can manually set the speed by CL. You
> >> can do this several different ways depending on what governor you want
> >> to use. If you set the governor to performance, then the cpu will run
> >> at max speed always. The files you change manually are in
> >> /sys/devices/system/cpu/cpu0/ cpufreq.

>
> > This directory is empty, the cpufreq and cpufreqd.conf files are located
> > in /etc

>
> > [root@wes2 cpufreq]# ls
> >> affected_cpus scaling_available_frequencies scaling_governor
> >> cpuinfo_cur_freq scaling_available_governors scaling_max_freq
> >> cpuinfo_max_freq scaling_cur_freq scaling_min_freq
> >> cpuinfo_min_freq scaling_driver scaling_setspeed
> >> [root@wes2 cpufreq]#

>
> > None of the above files exist on my pc.

>
> > I am pretty sure that cpufreqd is not running. I am beginning to think
> > it might be easier to reinstall.

>
> May or may not help. I don't recall if cpufreqd is installed by default or
> not. Open the package manager and search for cpufreq. Make sure that
> cpufreqd and it's 2 libcpu* packages are installed. Also check that
> powernow_k8 module is installed and finds your cpu on boot.
>
> [root@wes2 wes]# lsmod|grep k8
> powernow_k8 14336 1
> freq_table 4512 2 cpufreq_ondemand,powernow_k8
> processor 25796 2 thermal,powernow_k8
> k8temp 5120 0
> [root@wes2 wes]# cat /var/log/syslog|grep k8
> Jan 6 17:26:07 wes2 kernel: powernow-k8: Found 2 AMD Athlon(tm) 64 X2
> Dual Core Processor 3800+ processors (version 2.00.00)
> Jan 6 17:26:07 wes2 kernel: powernow-k8: 0 : fid 0xc (2000 MHz), vid
> 0xa
> Jan 6 17:26:07 wes2 kernel: powernow-k8: 1 : fid 0xa (1800 MHz), vid
> 0xc
> Jan 6 17:26:07 wes2 kernel: powernow-k8: 2 : fid 0x2 (1000 MHz), vid
> 0x12
> [root@wes2 wes]#
>
> --
> Want the ultimate in free OTA SD/HDTV Recorder?
> My Tivo Experiencehttp://wesnewell.no-ip.com/tivo.htm
> Tivo HD/S3 comparedhttp://wesnewell.no-ip.com/mythtivo.htm
> AMD cpu helphttp://wesnewell.no-ip.com/cpu.php



Please read all of my posts. I have stated that I did try starting it
from the control center, and it does not start.No feedback, nothing.
  Reply With Quote
Old 09-01-2008, 05:58 AM   #13
Les B. Labbauf
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Tue, 08 Jan 2008 07:32:43 +0000, Wes Newell wrote:

> On Mon, 07 Jan 2008 18:43:49 -0600, Les B. Labbauf wrote:
>
>>> On Sun, 06 Jan 2008 18:58:06 -0600, Les B. Labbauf wrote:
>>>
>>>> I have a Compaq Presario R3000 that has an 1.8ghz AMD cpu. The bios
>>>> reports the speed at 1.8ghz. Windows shows it as 1.8ghz. But when I
>>>> run any version of linux (Mandriva, Ubuntu, SUSE) it shows up as
>>>> 798mhz.

>
>> I checked the system services in the Control Center. CPUFREQD is not
>> running, and will not start when I click the start button (It is set to
>> run on boot).

>
> What's the error message when you try and start it? It had to start at
> least once to lower the cpu speed to 800MHz. If, after that, it dies or is
> stopped, the cpu will stay at the last speed.
>>


running cpufreqd from a terminal prompt just returns the prompt with no
feedback.

>> If I try the command from a terminal I get no feedback, and ps -ef|grep
>> cpufreqd shows the command is there.
>>
>> cpufreq-selector -f doesn't seem to work either.

>



> If coufreqd isn't running, you can manually set the speed by CL. You can
> do this several different ways depending on what governor you want to
> use. If you set the governor to performance, then the cpu will run at
> max speed always. The files you change manually are in
> /sys/devices/system/cpu/cpu0/ cpufreq.


This directory is empty, the cpufreq and cpufreqd.conf files are located
in /etc

[root@wes2 cpufreq]# ls
> affected_cpus scaling_available_frequencies scaling_governor
> cpuinfo_cur_freq scaling_available_governors scaling_max_freq
> cpuinfo_max_freq scaling_cur_freq scaling_min_freq
> cpuinfo_min_freq scaling_driver scaling_setspeed
> [root@wes2 cpufreq]#
>


None of the above files exist on my pc.
> The docs for this are in the kernel source documention. Confusing as
> hell, but before I started using the cpufreqd daemon, I just setup 3
> scripts for cpulo, cpumed, and cpuhi and manually set the speed. But
> using the daemon is the way to go. Did you replace the original
> cpufreqd.conf file with the one i posted? You may need to reboot or
> rmmod k8powernow and modprobe it again to see the changes. I recall a
> probe when trying to use both methods during testing where one wouldn't
> work once you used the other, but I don't recall exactly. That was a few
> years back. But if cpufreqd is set to start on boot and doesn't, or
> crashes, you need to find out why.
>


I am pretty sure that cpufreqd is not running. I am beginning to think it
might be easier to reinstall.
  Reply With Quote
Old 09-01-2008, 05:58 AM   #14
Evil Bastard
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Jan 7, 9:00 am, Darklight <> wrote:
> do you have kpowersaved installed if so it should be to the right of the
> taskbar next to the clock the icon looks like a two pin plug.
>
> if you left click on the above icon it will tell what frequency policy you
> are using if it is set to dynamic when the pc is idle it will show up
> running at less than half
>
> to get pc to run at full speed change it to performance


Thanks to all who replied. Will try some of these suggestions when I
get home and let you know the results.
  Reply With Quote
Old 09-01-2008, 05:58 AM   #15
David W. Hodgins
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Mon, 07 Jan 2008 19:39:21 -0500, Les B. Labbauf <> wrote:

> Do not have kpowersave in my tray, and running gnome, and the preferences
> for this are set to performance.


Right click on a blank area of the menu bar. Select Add to Panel. Add the applet
called "Cpu Frequency Scaling Monitor".

Left click on the frequency icon.

Note that the Policy has four settings, Conservative, Ondemand, Performance,
and powersave.

While the policy may be set to Performance, the frequency scaling is probably
set to dynamic, aka ondemand. Unlike kpowersave, the gnome frequency scaling
monitor does not appear, to have any option to change the cpu frequency, used
for a given policy. However, it appears, that if you select the max freq shown
as possible, and it should change the frequency. I haven't tested to see if this
holds over a reboot. In my case, I've used kpowersave, to change the default
for the performance policy, from dynamic, to performance, and it appears that
the gnome applet, hasn't altered this.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Old 09-01-2008, 05:58 AM   #16
David W. Hodgins
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Mon, 07 Jan 2008 19:39:21 -0500, Les B. Labbauf <> wrote:

> Do not have kpowersave in my tray, and running gnome, and the preferences
> for this are set to performance.


Right click on a blank area of the menu bar. Select Add to Panel. Add the applet
called "Cpu Frequency Scaling Monitor".

Left click on the frequency icon.

Note that the Policy has four settings, Conservative, Ondemand, Performance,
and powersave.

While the policy may be set to Performance, the frequency scaling is probably
set to dynamic, aka ondemand. Unlike kpowersave, the gnome frequency scaling
monitor does not appear, to have any option to change the cpu frequency, used
for a given policy. However, it appears, that if you select the max freq shown
as possible, and it should change the frequency. I haven't tested to see if this
holds over a reboot. In my case, I've used kpowersave, to change the default
for the performance policy, from dynamic, to performance, and it appears that
the gnome applet, hasn't altered this.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Old 09-01-2008, 05:58 AM   #17
Les B. Labbauf
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Mon, 07 Jan 2008 01:14:21 -0500, David W. Hodgins wrote:

> On Sun, 06 Jan 2008 19:58:06 -0500, Les B. Labbauf <> wrote:
>
>> I have a Compaq Presario R3000 that has an 1.8ghz AMD cpu. The bios
>> reports the speed at 1.8ghz. Windows shows it as 1.8ghz. But when I run
>> any version of linux (Mandriva, Ubuntu, SUSE) it shows up as 798mhz. I am

>
> I suspect you have kpowersave running, which by default (at least in Mandriva 2008),
> will set the cpu frequency policy to dynamic, which alters the speed, based on the
> current usage. This is a good thing to have, to help keep the cpu cool, and increase
> battery time on laptops.
>
> In Mandriva 2008, with kde, you can right click on the kpowersave icon in the system
> tray, select "Configure Kpowersave", then select "CPU Frequency Policy", and change
> it from Dynamic to Performance, if needed.
>
> Regards, Dave Hodgins
>


Do not have kpowersave in my tray, and running gnome, and the preferences
for this are set to performance.
  Reply With Quote
Old 09-01-2008, 05:59 AM   #18
Darklight
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

do you have kpowersaved installed if so it should be to the right of the
taskbar next to the clock the icon looks like a two pin plug.

if you left click on the above icon it will tell what frequency policy you
are using if it is set to dynamic when the pc is idle it will show up
running at less than half

to get pc to run at full speed change it to performance
  Reply With Quote
Old 09-01-2008, 05:59 AM   #19
Wes Newell
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Tue, 08 Jan 2008 05:04:00 -0600, Les B. Labbauf wrote:

>>> I checked the system services in the Control Center. CPUFREQD is not
>>> running, and will not start when I click the start button (It is set
>>> to run on boot).

>>
>> What's the error message when you try and start it? It had to start at
>> least once to lower the cpu speed to 800MHz. If, after that, it dies or
>> is stopped, the cpu will stay at the last speed.
>>>
>>>

> running cpufreqd from a terminal prompt just returns the prompt with no
> feedback.
>

But if you tried to start via the control center it would.

>> If coufreqd isn't running, you can manually set the speed by CL. You
>> can do this several different ways depending on what governor you want
>> to use. If you set the governor to performance, then the cpu will run
>> at max speed always. The files you change manually are in
>> /sys/devices/system/cpu/cpu0/ cpufreq.

>
> This directory is empty, the cpufreq and cpufreqd.conf files are located
> in /etc
>
> [root@wes2 cpufreq]# ls
>> affected_cpus scaling_available_frequencies scaling_governor
>> cpuinfo_cur_freq scaling_available_governors scaling_max_freq
>> cpuinfo_max_freq scaling_cur_freq scaling_min_freq
>> cpuinfo_min_freq scaling_driver scaling_setspeed
>> [root@wes2 cpufreq]#
>>
>>

> None of the above files exist on my pc.
>>

> I am pretty sure that cpufreqd is not running. I am beginning to think
> it might be easier to reinstall.


May or may not help. I don't recall if cpufreqd is installed by default or
not. Open the package manager and search for cpufreq. Make sure that
cpufreqd and it's 2 libcpu* packages are installed. Also check that
powernow_k8 module is installed and finds your cpu on boot.

[root@wes2 wes]# lsmod|grep k8
powernow_k8 14336 1
freq_table 4512 2 cpufreq_ondemand,powernow_k8
processor 25796 2 thermal,powernow_k8
k8temp 5120 0
[root@wes2 wes]# cat /var/log/syslog|grep k8
Jan 6 17:26:07 wes2 kernel: powernow-k8: Found 2 AMD Athlon(tm) 64 X2
Dual Core Processor 3800+ processors (version 2.00.00)
Jan 6 17:26:07 wes2 kernel: powernow-k8: 0 : fid 0xc (2000 MHz), vid
0xa
Jan 6 17:26:07 wes2 kernel: powernow-k8: 1 : fid 0xa (1800 MHz), vid
0xc
Jan 6 17:26:07 wes2 kernel: powernow-k8: 2 : fid 0x2 (1000 MHz), vid
0x12
[root@wes2 wes]#



--
Want the ultimate in free OTA SD/HDTV Recorder?
My Tivo Experience
Tivo HD/S3 compared
AMD cpu help
  Reply With Quote
Old 09-01-2008, 05:59 AM   #20
Les B. Labbauf
Guest
 
Posts: n/a
Re: CPU Speed Half In Linux

On Mon, 07 Jan 2008 09:48:00 +0000, Wes Newell wrote:

> On Sun, 06 Jan 2008 18:58:06 -0600, Les B. Labbauf wrote:
>
>> I have a Compaq Presario R3000 that has an 1.8ghz AMD cpu. The bios
>> reports the speed at 1.8ghz. Windows shows it as 1.8ghz. But when I
>> run any version of linux (Mandriva, Ubuntu, SUSE) it shows up as 798mhz.
>> I am thinking that I might have changed the speed by keyboard input,
>> but can't find anyway to get it back to 1.8ghz.
>>

> IIRC, cpufreqd didn't work right for my AMD X2 cpu. I completely replaced
> it with one I created for userspace policy. You're welcome to use it if
> you want and modify it to suite you.
>
> # see CPUFREQD.CONF(5) manpage for a complete reference
>
> [General]
> pidfile=/var/run/cpufreqd.pid
> poll_interval=2
> verbosity=4
> #enable_remote=1
> #remote_group=root
> [/General]
>
> [Profile]
> name=Performance High
> minfreq=2000000
> maxfreq=2000000
> policy=userspace
> [/Profile]
>
> [Profile]
> name=Performance Low
> minfreq=1000000
> maxfreq=1000000
> policy=userspace
> [/Profile]
>
> [Profile]
> name=Performance Med
> minfreq=1800000
> maxfreq=1800000
> policy=userspace
> [/Profile]
>
> [Rule]
> name=cpulow
> cpu_interval=0-10
> profile=Performance Low
> [/Rule]
>
> [Rule]
> name=cpumed
> cpu_interval=11-80
> profile=Performance Med
> [/Rule]
>
> [Rule]
> name=cpuhigh
> cpu_interval=81-100
> profile=Performance High
> [/Rule]
>
> # Manual choice for individual programs
>
> [Rule]
> name=high
> programs=vlc,ogle,mythcommflag,gcc
> cpu_interval=0-100
> profile=Performance High
> [/Rule]
>
> [Rule]
> name=medium
> programs=mythfrontend,kaffeine,k3b,xine,mplayer,av idemux,totem,
> cpu_interval=0-100
> profile=Performance Med
> [/Rule]
>
> Note that you probably need to change the cpu freq for your cpu. After
> replacing the file, as root do this;
>
> service cpufreqd restart
>
> Or stop and then start.
>


I checked the system services in the Control Center. CPUFREQD is not
running, and will not start when I click the start button (It is set to
run on boot).

If I try the command from a terminal I get no feedback, and ps -ef|grep
cpufreqd shows the command is there.

cpufreq-selector -f doesn't seem to work either.
  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 03:15 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional