Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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!
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.
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.
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
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 ...
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.