Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old June 12th, 2006   #1
barakaspeed
5 Cups of Ubuntu
 
Join Date: Jan 2006
Location: Harrisburg, PA, USA
Beans: 32
Ubuntu 7.10 Gutsy Gibbon
Lightbulb Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

I have been plagued since my install of ubuntu 6.06 with excessively high idle cpu usage running the 686 kernel. It was the one installed by default during installation for my Pentium M 1.6Ghz. The culprit usually was Xorg hogging over 35% of cpu power during idle. You can follow my other thread where I ended up installing the 386 kernel as a work-around: http://www.ubuntuforums.org/showthread.php?t=192207

A MUCH better work-around was offered by sohail (All credit for this goes to him) in this Bug Report I was following: https://launchpad.net/distros/ubuntu....15/+bug/30570

This is what he wrote from there:
Quote:
Guys, have you tried adding this to /etc/rc.local:

echo 1 > /sys/module/processor/parameters/max_cstate

This is what you should do if you want to use a 686 kernel.

Of course, I wish someone would revert the ubuntu patch that *caused*
this in the first place...
Now I'd be the first to admit I'm no Linux Guru. My educated guess the problem is solely in SMP support in the 686 kernel being enabled for processors that have no need for it. (aka my Pentium M)

Anyways, I'm glad I can run the 686 kernel on my laptop with less cpu usage and cooler (The fans were kicking on all the time before this)

Thanks to the great community

Last edited by barakaspeed; June 12th, 2006 at 01:14 AM..
barakaspeed is offline   Reply With Quote
Old June 12th, 2006   #2
Patrick-Ruff
Extra Foam Sugar Free Ubuntu
 
Patrick-Ruff's Avatar
 
Join Date: Jan 2006
Location: California
My beans are hidden!
Send a message via AIM to Patrick-Ruff Send a message via MSN to Patrick-Ruff
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

good job, nice find/research.
__________________
-Patrick
let the strings lead you
Patrick-Ruff is offline   Reply With Quote
Old June 12th, 2006   #3
no1wantdthisname
A Carafe of Ubuntu
 
Join Date: Oct 2005
Beans: 103
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

Wow, thanks. I've been trying to figure out why cpu load was so high since the beginning of dapper development when SMP support was included by default in the 686 kernel.

Last edited by no1wantdthisname; June 12th, 2006 at 05:49 PM..
no1wantdthisname is offline   Reply With Quote
Old June 14th, 2006   #4
jerinjoy
5 Cups of Ubuntu
 
jerinjoy's Avatar
 
Join Date: Mar 2006
Beans: 40
Ubuntu 6.06
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

I installed the i386 version of dapper drake on my Pentium M 1.6Ghz machine. Should I upgrade to the i686 kernel version? Any advantage in doing so?
__________________
Ubuntu 7.04 works on my:
Toshiba Satellite Pro M40X-134 Notebook, Pentium M 1.6 Ghz, 512 MB DDR RAM, 915GM Video Card, DVD RW Drive, 15.4" LCD at 1280x800 resolution. Ext. Samsung 941BW LCD at 1440x900 resolution. Blog: http://jerinj.blogspot.com
jerinjoy is offline   Reply With Quote
Old June 14th, 2006   #5
GadgetsGuy
A Carafe of Ubuntu
 
GadgetsGuy's Avatar
 
Join Date: Apr 2006
Beans: 114
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

how do we add this extra line

what would be the command, as I am still not up to speed with permissions

thanx
GG
GadgetsGuy is offline   Reply With Quote
Old June 14th, 2006   #6
barakaspeed
5 Cups of Ubuntu
 
Join Date: Jan 2006
Location: Harrisburg, PA, USA
Beans: 32
Ubuntu 7.10 Gutsy Gibbon
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

jerinjoy, to be completely honest, I have not seen any advantages yet. I play games, videos, and such on my machine and haven't noticed much of a difference between 386 and 686. Though having the 686 modded to work properly gives me that piece of mind that my laptop is running at it's most optimal configuration. I'm probably just crazy for thinking that way..

GadgetsGuy:

Code:
sudo gedit /etc/rc.local
and insert this line into that file. I placed it the line above exit 0.

Code:
echo 1 > /sys/module/processor/parameters/max_cstate
Here's my modified rc.local file now:

Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo 1 > /sys/module/processor/parameters/max_cstate
exit 0
barakaspeed is offline   Reply With Quote
Old June 14th, 2006   #7
GadgetsGuy
A Carafe of Ubuntu
 
GadgetsGuy's Avatar
 
Join Date: Apr 2006
Beans: 114
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

OK ... I have done this, and rebooted, yet my hard drive is still spinning non-stop

any other ideas?

I am getting very frustrated by this, and Ubuntu 6.06 (686) was working like a charm until 2 days ago, and quite frankly, if I can not figure this out soon, I will have to go back to Win2000 Pro while I still have a hard drive !!!
GadgetsGuy is offline   Reply With Quote
Old June 14th, 2006   #8
barakaspeed
5 Cups of Ubuntu
 
Join Date: Jan 2006
Location: Harrisburg, PA, USA
Beans: 32
Ubuntu 7.10 Gutsy Gibbon
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

have you tried the 386 kernel to see if that helps/changes anything?
barakaspeed is offline   Reply With Quote
Old June 15th, 2006   #9
t0mc4t
Just Give Me the Beans!
 
Join Date: Jun 2006
Beans: 47
Ubuntu 8.10 Intrepid Ibex
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

Sorry if little bit out of topic. But how do we change the kernel that we used? I mean from 386 to 686 or 686 to 386. And how do we check the kernel that we are currently used?
Thanks...
t0mc4t is offline   Reply With Quote
Old June 15th, 2006   #10
veratyr
Gee! These Aren't Roasted!
 
Join Date: May 2005
Location: New England
Beans: 132
Ubuntu 7.10 Gutsy Gibbon
Re: Possible Fix to HIGH CPU USAGE in 686 SMP Kernels!

I'm using XGL with a 686 kernel (has smp support built in now?) and I havn't had any problems with high cpu usage? Granted my P4 is reasonably fast at 3.0GHz.

As for installing a 686 kernel. Open up synaptic and search for "linux-image" and you should find what you are looking for. You may need to install the restricted modules for 3d driver support for whatever kernel you choose to install. Search for "linux-restricted" and install the corresponding modules. Grub usually displays what kernel you are booting to.

*shrug*
__________________
I close my eyes
As Fire Swept Clean the Earth

Last edited by veratyr; June 15th, 2006 at 09:36 PM..
veratyr is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:22 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry