LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-13-2003, 11:09 AM   #1
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
CPU on 100% very often


Hi all,

I have some problems with my CPU usages...

I run gkrellm and can see my CPU load up to 100% way too often. As soon as I start an app, it runs to 100% and the machine becomes really slow.

When I Do a 'top' I can see that X is the nr1 in it.

Any information you might need, i am happy to provide, but at this time, i have really no idea what might be helpful to provide. ( lack of knowledge)

TIA for your help

Satch
 
Old 12-13-2003, 11:13 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
is it safe to assume that your running KDE and a slower machine?
and with top running, do you see anything else out of the ordinary?
just post your desktop environment and your machine specs ...
 
Old 12-13-2003, 11:20 AM   #3
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
AH, That info I could have figured out myself... Sorry bout that:
I run RedHat 9 KDE on a toshiba tecra 8100 laptop.

If i do top, i dont see anything strange.....
 
Old 12-13-2003, 11:30 AM   #4
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
What's the CPU speed, RAM, etc?



-Shade
 
Old 12-13-2003, 11:41 AM   #5
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Not really shure about the speed, I guess its a P3 500, and has 328MB ram in it.
It has a savage 3d videocard, and a 12GB HD in it.
Is there a way to dump information that might be helpfull? (like posting the Xfree86.log or so)
 
Old 12-13-2003, 11:52 AM   #6
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Here is a dump of my 'TOP'
Code:
 18:48:45  up  1:29,  4 users,  load average: 1.62, 1.07, 0.88
78 processes: 77 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  21.3% user   5.1% system   3.7% nice   0.0% iowait  69.8% idle
Mem:   319820k av,  315828k used,    3992k free,       0k shrd,    9324k buff
                    200264k actv,   33936k in_d,    6140k in_c
Swap:  257000k av,   22300k used,  234700k free                  186700k cached
                                                                                                                             
  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
14391 mike      25   0 23692  22M 14372 S    49.5  7.1   0:10   0 delphi
 2368 xfs       25   0  7820 5960   600 S    28.6  1.8   6:53   0 xfs
14171 root      16   0 34264  24M  4328 S    16.0  7.7   0:23   0 X
14393 mike      15   0   752  740   644 S     2.0  0.2   0:00   0 wineserver
14428 mike      20   0  1108 1108   856 R     1.3  0.3   0:00   0 top
    1 root      15   0   120   80    56 S     0.0  0.0   0:04   0 init
    2 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 keventd
    3 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kapmd
    4 root      34  19     0    0     0 SWN   0.0  0.0   0:00   0 ksoftirqd_CPU
    9 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 bdflush
    5 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kswapd
    6 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kscand/DMA
    7 root      15   0     0    0     0 SW    0.0  0.0   0:03   0 kscand/Normal
    8 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kscand/HighMe
   10 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kupdated
   11 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 mdrecoveryd
Maybe U can find some info in it???
I found that mostly X and XFS are in top of the list.

Last edited by Satriani; 12-23-2003 at 04:03 PM.
 
Old 12-13-2003, 12:01 PM   #7
tearinox
Member
 
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Rep: Reputation: 30
i think the application would like to just load fast so the program takes highest priority and uses all the cpu power to start and then goes back down to normal. Nothing to worry about, it does it with my computer too

btw - even scrolling causes cpu to rise
 
Old 12-13-2003, 12:13 PM   #8
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
mmm I am not satisfied with that answer, especially whenI have to wait a few minutes!! to use some apps.. Fortunately, not all apps start so slowly....

Any other hints / clues / ideas ???

Thanks!
 
Old 12-13-2003, 12:32 PM   #9
Baldorg
Member
 
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288

Rep: Reputation: 31
Do the apps that start slowly have something in common? ie. OpenGL apps....
 
Old 12-13-2003, 12:52 PM   #10
Mork
Member
 
Registered: Mar 2003
Location: Visby, Sweden
Distribution: Ubuntu 4.10
Posts: 64

Rep: Reputation: 15
You should check if your harddrive has DMA activated, that will make a huge difference even on a fast machine (where harddrive access speed often is a bottleneck). To do this you should use hdparm. Check this article: http://www.linuxgazette.com/issue79/punk.html

Last edited by Mork; 12-13-2003 at 12:53 PM.
 
Old 12-14-2003, 01:11 PM   #11
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
I checked that and (un?)fortunately it already usesDMA.
I see xfs consuming most of my cpu load... Can i change a setting with that to make it work faster? Or even maybe disable it ?
 
Old 12-14-2003, 01:43 PM   #12
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
I did find a second clue, maybe:
When I do nothing, just my desktop and a terminal, i see kdeinit uses a lot of mem. (3 times in there?)
Also:
As soon as i start an app, (especially Kylix Delphi) XFS runs at 99% and stays there for "hours"
Starting kylix is taking about 6 minutes .... Men thats frustrating... All apps start "slowly" but this one really su**s big time! And i wanted to port some apps to linux to completely move over... Guess thats out of the question...
 
Old 12-14-2003, 09:51 PM   #13
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
What does you top look like in gnome? maybe another window manager? I have an older toshiba laptop with 256mb and a P450 and I have never had performance like you describe. You may also want to go in and disable some of your services that you dont need right from boot.
 
Old 12-15-2003, 10:06 AM   #14
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well its obviously the fact that you are using a slower machine and using KDE with redhat9....this is a huge suck on resources...your just going to have to sacrifice things (such as KDE) and innovate new ideas to gain speed...a huge gain will come from simply switching to a window manager such as fluxbox, or something similiar....even give gnome a try to see how much of an improvment you get, and you will get improvment, but how much is not known till you try....
then kill background daemons/services that initiate on bootup that run all the time that you simply don't need...this will also obviously help...
 
Old 12-15-2003, 10:50 AM   #15
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Try using xfce4 instead of KDE or Gnome. It's very lightweight and fast, even on older machines.
 
  


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 On
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 nearly always at 100% xround Linux - Hardware 6 09-17-2004 05:51 AM
Cpu @ 100% kpzani Linux - General 4 03-20-2003 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:06 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