LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-06-2004, 10:44 AM   #1
xround
Member
 
Registered: Oct 2003
Location: France
Distribution: RH9
Posts: 84

Rep: Reputation: 15
cpu nearly always at 100%


Hello,

I wonder why my processor is so busy on my dell i5150 laptop, 3Ghz with 512 Mo of RAM, with gnome gui.
I often open an xterm, nautilus, and system mo,itor

I have noticed
~15< gnome-system-monitor < 60
~15< X < ~30
in anacron:
~10 updatadb
and other processus in anacron between 10 and 40%

How can I reduce that ? What goes wrong ?

Cheers, xround
 
Old 09-06-2004, 11:15 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
have you ran the :
Code:
top
command to see if there was anything unusual causing this ?
 
Old 09-06-2004, 01:37 PM   #3
xround
Member
 
Registered: Oct 2003
Location: France
Distribution: RH9
Posts: 84

Original Poster
Rep: Reputation: 15
Using top, I noticed X process uses at least 20% of cpu.
And there are sometimes updated and kjournald, which are pretty high.
Now cpu uses is more ok, but it still uses between 20 and 40% while I am doing nothing!

Xround
 
Old 09-06-2004, 02:28 PM   #4
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
How often is anacron running updatedb?
 
Old 09-07-2004, 07:18 AM   #5
xround
Member
 
Registered: Oct 2003
Location: France
Distribution: RH9
Posts: 84

Original Poster
Rep: Reputation: 15
Today it is better, but yesterday there were series of peaks every ~10 minutes.
Today I don't find updatedb anymore, a "ps -e | grep update" gives me only a process named "kupdated".
Anyway, I still have some delays when I edit a file for instance with less, in a gnome xterm, while doing nothing special.

Now I've justed started a kernel build, which is long and cpu consuming.
Using top, I have the delay set to default, and I can view cc1 that consumes somtimes 90%, or 50%, or 20%. If I sum the processi when it is for about 20%, the sum doesn't exceed 50%, while idle displays nearly 100%. Is it normal ?

xround.
 
Old 09-17-2004, 05:29 AM   #6
xround
Member
 
Registered: Oct 2003
Location: France
Distribution: RH9
Posts: 84

Original Poster
Rep: Reputation: 15
uniq, sed, and sort

I have detected, three very heavy processes, that ran for say 5 minutes:
uniq, sed, and sort.

What these process combined rely to ? updatedb, that ran also during this time ?

xround.
 
Old 09-17-2004, 05:51 AM   #7
barisdemiray
Member
 
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Re: uniq, sed, and sort

Quote:
Originally posted by xround
I have detected, three very heavy processes, that ran for say 5 minutes:
uniq, sed, and sort.

What these process combined rely to ? updatedb, that ran also during this time ?

xround.
You can find the process that forks that processes by the command pstree:

Code:
...
     |-kdeinit---konsole-+-bash---updatedb-+-frcode
     |                   |                 |-sort
     |                   |                 `-updatedb---find
...
There is a -p switch also, which causes pstree to display pids. Also look at the /etc/crontab file for updatedb entries and decrease the update frequency.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
100 % Cpu Volcano Linux - Newbie 27 10-05-2005 10:58 PM
X Using 100% CPU windisch Linux - Software 2 09-29-2005 11:35 AM
CPU Load Always at 100% freddie_leaf Debian 2 09-25-2005 06:59 AM
CPU on 100% very often Satriani Linux - General 25 12-23-2003 03:41 PM
Cpu @ 100% kpzani Linux - General 4 03-20-2003 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration