LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-13-2004, 03:40 AM   #1
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Rep: Reputation: 31
identify cpu hogs


Once in a while I get processes that consume virtually all cpu power. is there a simple way to identify which one? I know ps -A works, when you run it twice and compare the times of the various procs.

Sometimes my computer locks up completely, nothing works. not even changing tty and killing the hog proc. anyone know how to prevent this? the only solution I've found is a hard reboot.
 
Old 12-13-2004, 06:28 AM   #2
caladbolg
Member
 
Registered: Jul 2004
Distribution: Mandrake 10.x, Fedora Core 3, Archlinux 0.7, Ubuntu 5.04
Posts: 303

Rep: Reputation: 31
If you can get "top" working in the console it's pretty easy to identify the bad program...
 
Old 12-13-2004, 06:52 AM   #3
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
top is a good one to see the most active processes. ps -aux will give you more info than ps -A.

another place to check is to look in Mandrake Control Center->system->services. you may have services running that you don't know about, don't want, &/or don't need. use the info buttons to see what they are about. just be careful. some are neccessary for the system to function properly.

otis

Last edited by otish1000c; 12-13-2004 at 07:06 AM.
 
Old 12-14-2004, 01:51 AM   #4
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by caladbolg
If you can get "top" working in the console it's pretty easy to identify the bad program...

what is that?


anyone encountered programs that stall the system completely? if so, is there a way to prevent this from happening if you don't know what program this is?
 
Old 12-14-2004, 03:57 AM   #5
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
open a terminal (or konsole in kde) as root & type top (hit enter). it will list the current running proccesses & show their memory, cpu, swap, etc. usages. you can get an idea from the output what the memory hog(s) might be.

also, did you look into services in MCC as i suggested?

otis
 
Old 12-14-2004, 06:17 AM   #6
caladbolg
Member
 
Registered: Jul 2004
Distribution: Mandrake 10.x, Fedora Core 3, Archlinux 0.7, Ubuntu 5.04
Posts: 303

Rep: Reputation: 31
You don't have to be root to view the active processes/services. You only have to be if you want to kill one.
 
  


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
HELP: capping the bandwidth hogs... woes :S kevingpo Linux - Networking 1 09-07-2005 05:11 PM
ideinit hogs 60% of cpu time zzzz Linux - General 4 06-08-2005 07:39 AM
kswapd0 hogs all cpu maenho Linux - Software 2 03-02-2005 08:36 AM
Mandrake hogs reasources? blkbird Mandriva 2 01-14-2004 12:04 PM
DVD on RH9 hogs CPU (100%) reading, chatty 'smart' NMI to blame? (combo drive) Saigua Linux - Hardware 0 08-07-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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