LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-29-2004, 11:31 AM   #1
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
Question CPU load -> process control?


Im sorta wondering about controling processes. After having my CPU running for a while and running a few programs, gkrellm tells me my processor is on a 99% load, when it should be at 10% tops. I want to know if there is a way to tell which process is abusing my poor CPU, so i can localize the problem and get my CPU power back. I can tell my computers lagging when it shouldn't.

Specs that might be of interest:

amd xp 2600+ running at 2ghz (barely an OC i know :P )
512 mb ram
500 mb swap
7200 rpm 120 gb hdd

i have started to notice this problem more or less after running aMule, though it might not be related...
 
Old 10-29-2004, 11:37 AM   #2
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
Open a console and execute the command 'top'.

Good luck.
 
Old 10-29-2004, 12:12 PM   #3
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Original Poster
Rep: Reputation: 30
sweet thanks, but do you know a way to force close processes?
 
Old 10-29-2004, 01:38 PM   #4
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
In the first column of the 'top' screen you see a PID number (process id). You can kill a process by using the command "kill -9 [processid]. So if your proces has ID number 1012: "kill -9 1012".

Another nice command is 'ps' which lists the processes running on your system. I normally use the command "ps -Af" (which lists all the processes running on your system).
 
Old 10-29-2004, 01:43 PM   #5
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
I forgot to tell you that if the proces is a daemon, you can stop it with the command "/etc/init.d/[daemon-name] stop". Actually this way you can start/stop/restart daemons.

I sometimes have problems with the FAM daemon (it eats 99% of my cpu), so I restart it with "/etc/init.d/fam restart".
 
  


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
X Process: Occasional High CPU Load Fahrion Linux - Software 6 07-16-2005 06:47 PM
how to control cpu freq ruh31 Debian 6 02-14-2005 09:58 AM
Process control...? kleptophobiac Linux - General 2 09-25-2004 10:03 AM
How to control cpu stepping. Lurker01 *BSD 4 09-09-2004 07:03 AM
Regaining Process Control mikeyt_333 Linux - General 5 03-21-2002 02:21 PM

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

All times are GMT -5. The time now is 11:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration