LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-17-2003, 02:46 PM   #1
ecsfan
LQ Newbie
 
Registered: Oct 2003
Distribution: Vector Linux 4.0
Posts: 11

Rep: Reputation: 0
Unhappy CPU usage 100%


Hello everybody,it's my first post because i like to solve problems myself,but now i'am really lost.When i try to move any open window cpu usage raises to 100%,i have celeron 1100Mhz,256ram and 32MB video,i really dont think that gnome is such a monster(Red Hat 9.0),i dont know there is the problem,i remember i had the same problem in Alt Linux,but it had a wonderful utility where you could set CPU priority to low,and then everything began to fly !!!,i miss that in Red Hat,please suggest what to do.
 
Old 11-17-2003, 04:10 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
There's something wrong for sure...Please open a terminal and tun 'top' in it. It shows most processor and memory hungry processes. Then try to move any window. Please write which process uses so much power.
 
Old 11-17-2003, 05:18 PM   #3
ecsfan
LQ Newbie
 
Registered: Oct 2003
Distribution: Vector Linux 4.0
Posts: 11

Original Poster
Rep: Reputation: 0
it's X,you know i even can draw with window,i move it,it leaves a long tail....
 
Old 11-17-2003, 05:55 PM   #4
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
If you ever compiled a kernel youself try it with vanilla sources.I had a problem like that with patched sources and top wouldn't even show that CPU was at 100%.
 
Old 11-17-2003, 06:22 PM   #5
ecsfan
LQ Newbie
 
Registered: Oct 2003
Distribution: Vector Linux 4.0
Posts: 11

Original Poster
Rep: Reputation: 0
Vanilla Sources...hmm,something interesting,i'll try that later,but now it could be good to solve this problem without compiling the kernel.
 
Old 11-17-2003, 07:31 PM   #6
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Just a shot in the dark:disable acpi or just check with top as Mara pointed out.Other than that please state your video wrangler and the drivers you use.
 
Old 11-17-2003, 08:46 PM   #7
ecsfan
LQ Newbie
 
Registered: Oct 2003
Distribution: Vector Linux 4.0
Posts: 11

Original Poster
Rep: Reputation: 0
modprobe: Can't locate module acpi,and in service configuration app i also dont see acpi,drivers:standart nvidia which came from rh9 instalation cd,i am using 1152on864 resoliution with millions of colours,i tried 1024x768 ant thousands of colors,but the result was the same,video card:riva tnt2(32MB),all the software runs well,but the feeling is that i have twice slower CPU that at real.
 
Old 11-17-2003, 08:56 PM   #8
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
As Mara and crashmeister asked, what is the output of top. It will tell what apps or apps are using CPU cycles.

Last edited by darthtux; 11-17-2003 at 09:25 PM.
 
Old 11-17-2003, 09:09 PM   #9
ecsfan
LQ Newbie
 
Registered: Oct 2003
Distribution: Vector Linux 4.0
Posts: 11

Original Poster
Rep: Reputation: 0
05:07:52 up 12:20, 3 users, load average: 1.00, 0.77, 0.67
59 processes: 56 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 47.2% user 2.8% system 0.0% nice 0.0% iowait 50.0% idle
Mem: 255248k av, 233960k used, 21288k free, 0k shrd, 9032k buff
170452k actv, 396k in_d, 3448k in_c
Swap: 522072k av, 178456k used, 343616k free 88784k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
6251 root 16 0 91464 14M 1148 R 36.7 5.6 103:13 0 X
6420 root 15 0 31652 29M 9972 S 6.7 11.7 7:28 0 mozilla-bin
6441 root 15 0 5980 5164 2896 S 3.1 2.0 8:47 0 gnome-system-
6346 root 15 0 23344 17M 3372 S 1.5 6.9 3:07 0 gnome-panel
6331 root 15 0 4300 3260 2020 S 0.5 1.2 1:10 0 metacity
9277 root 15 0 8508 8504 4740 R 0.5 3.3 0:12 0 gnome-termina
6359 root 15 0 2320 1488 1068 S 0.1 0.5 0:01 0 notification-
1 root 15 0 104 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 16 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:16 0 kscand/Normal
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/HighMe
 
Old 11-18-2003, 04:10 AM   #10
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Check with the /etc/X11/XF86Config file if it uses the nvidia driver or the vesa driver.X should use about 0.5% of the Cpu while sitting around;not 45%.You can also try the nvidia driver from their website.
 
Old 11-18-2003, 08:34 AM   #11
ecsfan
LQ Newbie
 
Registered: Oct 2003
Distribution: Vector Linux 4.0
Posts: 11

Original Poster
Rep: Reputation: 0
yes,the driver is nvidia ("nv"),what about the new ones,so i have them,but there comes another story,they require kernel-headers-2.4.20-20.9 for i686,i dont know why they are so rare because i cant find them,the most interesting thing that those floating windows became from fresh instalation,i really havent damaged my system,and is a native Red Hat 9.0 "nv" driver so bad ? p.s. even my mouse uses half processor resources when i am spining around with it.
 
Old 11-18-2003, 12:37 PM   #12
ecsfan
LQ Newbie
 
Registered: Oct 2003
Distribution: Vector Linux 4.0
Posts: 11

Original Poster
Rep: Reputation: 0
well i have installed newest nvidia drivers without instaling kernel headers,kernel source was enough for them,the situation got better,but just better,kernel source which i have is i386 and the kernel is i686,maybe this is a problem too.The output of top now :

20:37:03 up 45 min, 2 users, load average: 0.68, 0.58, 0.54
62 processes: 55 sleeping, 6 running, 0 zombie, 1 stopped
CPU states: 45.1% user 5.0% system 0.0% nice 0.0% iowait 49.8% idle
Mem: 255248k av, 249408k used, 5840k free, 0k shrd, 15600k buff
188172k actv, 21772k in_d, 9368k in_c
Swap: 522072k av, 500k used, 521572k free 130940k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
3084 root 16 0 88020 21M 5060 R 34.2 8.7 4:00 0 X
3206 root 16 0 10988 10M 7364 R 7.2 4.3 0:08 0 gnome-termina
3204 root 15 0 9736 9732 6980 S 2.5 3.8 0:30 0 gnome-system-
3235 root 15 0 29560 28M 14436 R 1.3 11.5 0:34 0 mozilla-bin
3182 root 15 0 12324 12M 8500 S 0.7 4.8 0:03 0 gnome-panel
3192 root 15 0 15960 15M 9624 S 0.7 6.2 0:04 0 rhn-applet-gu
3178 root 15 0 6868 6868 4972 S 0.3 2.6 0:02 0 metacity
3276 root 16 0 1060 1060 856 R 0.3 0.4 0:00 0 top
3184 root 15 0 16924 16M 9824 S 0.1 6.6 0:03 0 nautilus
1 root 15 0 104 84 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 RW 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 RW 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
 
Old 11-18-2003, 04:45 PM   #13
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
I doubt that the difference between the kernel source is a problem.You are still way too high with the CPU for X.Check the XFree.log in /var/log/ There might be some error messages that help.
 
Old 11-18-2003, 05:52 PM   #14
ecsfan
LQ Newbie
 
Registered: Oct 2003
Distribution: Vector Linux 4.0
Posts: 11

Original Poster
Rep: Reputation: 0
now i really wish that /var/log/xfree.log had some error messages,but it hasn't,nobody tells me where is the problem,even logs look fine ,must be it's time to gather all information
,and try to compile a new kernel...
 
Old 11-18-2003, 06:20 PM   #15
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
It should either be a problem with xfree or the kernel.Depending on which is less annoying with your distro I'd try another xfree version or a different kernel.
After all I consider myself as master of the known universe but I get it wrong once in a while,too

Last edited by crashmeister; 11-18-2003 at 06:22 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CPU Usage goes to 100% when pthread_cond_wait is being used zen_buddha Linux - Software 4 10-19-2005 04:28 PM
CPU Usage goes to 100% when pthread_cond_wait is being used zen_buddha Programming 0 10-13-2005 03:48 AM
CPU on 100% usage after sleep... Jestrik Linux - General 8 12-22-2003 09:18 AM
100% CPU usage-Slackware 9? Scruff Slackware 23 12-06-2003 08:37 PM
100 % CPU usage ???? rolandi Linux - Newbie 1 10-07-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:29 AM.

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