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! |
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. |
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.
|
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! |
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. |
Quote:
Quote:
( edit: ) Maybe SIGTERM (default signal) isn't enough, so you need SIGKILL which you envoke by the argument ... |
Did you fix the problem?
If so, how? Funny, no one mentioned: Code:
killall -9 cpuspeed 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:
|
All times are GMT -5. The time now is 07:07 PM. |