lkml.org 
[lkml]   [2002]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: Killing/balancing processes when overcommited
From
Date
On Fri, 2002-09-13 at 01:05, Giuliano Pochini wrote:
>
> > I still favor an installation file in /etc specifying the order in which
> > things are to be killed. Any alogrithmic assumptions are bound to fail at
> > some point to the dissatisfaction of the installation.
>

There is another solution. And that is never allocate memory unless
you have swap space. Yes, the issue is that you need to have lots of
disk allocated to swap but on a big machine you will have that space.

This way the offending process that asks for more memory will be
the one that gets killed. Even if the 1st couple of ones aren't the
misbehaving process eventually it will ask for more memory and suffer
process execution.

Of course you don't allocate swap every time somebody asks for
a byte but you do it on some big boundary and do it when somebody
crosses that line.

Tim

> I agree, I don't see any other solution. btw the thing is not
> simple. The oom killer should be able to comply instructions
> like:
>
> if (oom)
> kill netscape if it uses more than 80MB {stdprio 10}
> //sometimes if start sucking memory endlessly
> kill make and its childs if overall they use {stdprio 7}
> more than ...[cpu files memory]
> //ever tried to make -j bzImage on a 64MB box ?
> kill httpd if it's swapping too much {stdprio 3}
> ...
>
>
> Well, it's not simple. It must be planned carefully, or it
> will and up being as uneffective as the current killer is.
>
>
> Bye.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Timothy D. Witham - Lab Director - wookie@osdlab.org
Open Source Development Lab Inc - A non-profit corporation
15275 SW Koll Parkway - Suite H - Beaverton OR, 97006
(503)-626-2455 x11 (office) (503)-702-2871 (cell)
(503)-626-2436 (fax)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.121 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site