LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 03-18-2008, 07:18 PM   #1
bt227
LQ Newbie
 
Registered: Mar 2008
Posts: 2
Thanked: 0
Help with cpuspeed


[Log in to get rid of this advertisement]
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!
bt227 is offline  
Tag This Post , ,
Reply With Quote
Old 03-19-2008, 02:38 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Dali, China
Distribution: Slackware
Posts: 6,620
Thanked: 50
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.
Bruce Hill is offline     Reply With Quote
Old 03-19-2008, 10:12 AM   #3
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux, Xfce+Compiz
Posts: 288
Thanked: 21
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.
TITiAN is offline     Reply With Quote
Old 03-19-2008, 04:14 PM   #4
bt227
LQ Newbie
 
Registered: Mar 2008
Posts: 2
Thanked: 0

Original Poster
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!
bt227 is offline     Reply With Quote
Old 03-19-2008, 05:22 PM   #5
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 6,908
Thanked: 165
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.
syg00 is offline     Reply With Quote
Old 03-20-2008, 10:16 AM   #6
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux, Xfce+Compiz
Posts: 288
Thanked: 21
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..
TITiAN is offline     Reply With Quote
Old 05-01-2008, 10:57 AM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 3,599
Blog Entries: 9
Thanked: 45
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.
archtoad6 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 06:23 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration