LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-18-2008, 07:18 PM   #1
bt227
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Help with cpuspeed


I was trying to monitor my server's CPU load and was playing around with cpuspeed, I ran it a bunch of times and it didn't seem to be doing anything. But when I check the list of running processes, I see there are 40+ instances of it running! The server load average has gone from below 1 to over 40, this probably has something to do with the freq scaling cpuspeed is doing. I tried to kill the process using kill but to no avail.

I am new to linux, any help you guys can offer would be much appreciated. I just want to get rid of these running instances and restore my server to the original state. Thanks for your help!
 
Old 03-19-2008, 02:38 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Welcome to LQ!

Read "man kill" -- every Linux command should have a manual page.

In a terminal issue "ps aux" to see the running processes. If you
can't kill it as user with "kill <pid>" then su - to root and issue
"kill -9 <pid>" where <pid> is the process ID.
 
Old 03-19-2008, 10:12 AM   #3
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
You can also issue "killall <process name>" or "killall -sKILL <process name>" if you want to kill every single process with the name <process name>. The argument "-sKILL" should only be used when it doesn't work without, though, as it interrupts the ending procedure in a program.
 
Old 03-19-2008, 04:14 PM   #4
bt227
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your tips. I am logged in as root. I tried "kill -9 <pid>" as well as "killall cpuspeed", but I still see them running when I use "ps -Al" I also see these cpuspeed processes when I use "ps aux" and it says they have been running since yesterday.

Any other suggestions would be appreciated!
 
Old 03-19-2008, 05:22 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Why do I have visions of the Mickey Mouse in Fantasia before my eyes ... ???.

If you are merely worried about the high load count, don't be - have a look at "top", and see if all those cpuspeed instances have a status of "D".
If so, that's what's contributing to the count. If you can't kill them, recycle the server at some time.

And be a little more circumspect in future.
 
Old 03-20-2008, 10:16 AM   #6
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
Quote:
Originally Posted by TITiAN View Post
You can also issue [...] "killall -sKILL <process name>" [...]. The argument "-sKILL" should only be used when it doesn't work without[...].
Quote:
Originally Posted by bt227 View Post
Thanks for your tips. I am logged in as root. I tried "kill -9 <pid>" as well as "killall cpuspeed", but I still see them running when I use "ps -Al" I also see these cpuspeed processes when I use "ps aux" and it says they have been running since yesterday.

Any other suggestions would be appreciated!
How about that argument?
( edit: ) Maybe SIGTERM (default signal) isn't enough, so you need SIGKILL which you envoke by the argument ...

Last edited by TITiAN; 03-20-2008 at 12:56 PM.
 
Old 05-01-2008, 10:57 AM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Did you fix the problem?
If so, how?

Funny, no one mentioned:
Code:
killall -9 cpuspeed
as a possible solution. Did you by any chance find & use it?

Also, htop (when run as root) allows to to interactively kill processes 1-at-a-time or in groups, & you can select the signal to send. I find it so useful, I usually have an X terminal (Konsole) running:
Quote:
nice -n-13 htop
at all times.
 
  


Reply

Tags
kill, processes


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
cpuspeed Problem a_m0d Linux - Hardware 1 05-18-2007 12:14 AM
cpuspeed activation kjan.ondrace Linux - Software 3 11-17-2006 04:33 PM
cpuspeed - throttling not supported? lordSaurontheGreat Fedora 2 10-26-2006 04:41 PM
cpuspeed 74039186 Fedora 5 04-20-2004 12:17 AM
cpuspeed? Smerk Linux - Software 2 09-09-2003 11:26 AM


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