killall5

Discuss Applications

killall5

Postby agent007 » Wed Nov 26, 2003 12:43 pm

hi all,

Inorder to kill all the runaway processes at one instant, I ran the command 'killall5'...Xserver went on respawing, so I had to reboot the system which is rather a long procedure..

What I want to do is kill all the processes and then do a 'init 5' so as to get that freshly booted feeling..

thanks.
agent007
administrator
administrator
 
Posts: 254
Joined: Wed Feb 12, 2003 11:26 pm

Postby Void Main » Wed Nov 26, 2003 1:33 pm

I can't imagine running killall5 interactively. That's just not the right way to do it. I'm sure your X is respawning because you've probably killed xfs which needs to be running before X can start (if your X is conigured to use xfs that is, Red Hat and many other systems do this by default).
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Tux » Wed Nov 26, 2003 2:10 pm

Wouldn't telinit 1/3;telinit 5 suffice? or am I missing the point?
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Postby agent007 » Thu Nov 27, 2003 2:14 am

No, changing runlevels does not work cause it only stops the services and not the other run away processes....Also, just after switching on the system I have about 175MB RAM free....Changing runlevels does not result in that much amt of free RAM.
agent007
administrator
administrator
 
Posts: 254
Joined: Wed Feb 12, 2003 11:26 pm

Postby Void Main » Sat Nov 29, 2003 5:06 pm

The amount of free memory has nothing to do with the number of processes running. The longer your system runs and the more you use it the less free memory there will be. This is *not* a bad thing, it is a good thing. That memory is being used for i/o caching and the more your system caches the faster it will be. If you have runaway processes then you have a problem that needs to be fixed. Which processes are you having problems with and what causes you to believe they are "runaway"?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby X11 » Sun Dec 14, 2003 10:06 am

I just kill whatever stares at me the wrong way manually, and the Linux system i normally use these days has 32mb of ram, and i have no problems.
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby agent007 » Mon Dec 15, 2003 12:47 pm

Thats true....But, sometimes a reboot is inevitable.. So instead of going through the whole procedure, I would prefer to somehow kill everything and then do a init 5..Assuming I kill everything in init 3. Am pretty sure there should be a way though...


Void Main wrote:The amount of free memory has nothing to do with the number of processes running. The longer your system runs and the more you use it the less free memory there will be. This is *not* a bad thing, it is a good thing. That memory is being used for i/o caching and the more your system caches the faster it will be. If you have runaway processes then you have a problem that needs to be fixed. Which processes are you having problems with and what causes you to believe they are "runaway"?
agent007
administrator
administrator
 
Posts: 254
Joined: Wed Feb 12, 2003 11:26 pm

Postby Void Main » Mon Dec 15, 2003 1:18 pm

If you have to reboot then there is something wrong. You should *never* have to do the things you are doing. Again, what leads you to believe you have "runaway" processes, and what processes are those? If I were you I would be much more interested in fixing the problem rather than looking for a workaround.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby X11 » Tue Dec 16, 2003 11:02 am

Id have to agree with voidmain.

If you see a few odd processes that you dont see doing anything, kill them.

Dont reboot your computer, think of the poor jiffies going to waste.
X11
guru
guru
 
Posts: 674
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia

Postby agent007 » Thu Dec 25, 2003 12:54 pm

hmm.....This will be a bit tough to explain, but let me give it a shot. When the system is first switched ON, I do a free -m from the console and make a note of the free RAM available. I then login and fire up evolution, galeon etc etc. After closing all the apps, free -m shows hardly any free RAM. This is normal considering that the objects need to be cached and helps to speed up future loading etc...

Now, what I am trying to do is get the first free -m readings without having to reboot the system, even though there are NO runaway processes....Everyting is normal but there are other processes which are *still* left over by Evolution, or any other app which runs in X. While it is possible to manually kill them, I want to terminate them in one go....
agent007
administrator
administrator
 
Posts: 254
Joined: Wed Feb 12, 2003 11:26 pm

Postby Tux » Fri Dec 26, 2003 3:38 pm

agent007 wrote:Now, what I am trying to do is get the first free -m readings without having to reboot the system, even though there are NO runaway processes....


As far as my understanding of the way the Linux kernel does things this will never happen.
I'm sure Void knows how to explain this properly, I think i do, but i'm not 100%

agent007 wrote:Everyting is normal but there are other processes which are *still* left over by Evolution, or any other app which runs in X. While it is possible to manually kill them, I want to terminate them in one go....


Now that on the other hand does not sound right, I don't know what is the problem though...
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am


Return to Applications

Who is online

Users browsing this forum: No registered users and 1 guest

cron