On Sat, 24 Mar 2001, Jonathan Morton wrote:
> Hmm... "if ( freemem < (size_of_mallocing_process / 20) ) fail_to_allocate;"
>
> Seems like a reasonable soft limit - processes which have already got
> lots of RAM can probably stand not to have that little bit more and
> can be curbed more quickly.
This looks like it could nicely in preventing a single process
from getting out of hand and gobbling up all memory.
It won't prevent the system from a mongolian horde of processes,
but nobody should expect your one-liner to fix world piece ;)
I like it, now lets test it ;)
regards,
Rik
--
Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...
http://www.surriel.com/
http://www.conectiva.com/ http://distro.conectiva.com.br/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Re: [PATCH] Prevent OOM from killing init nick
- Re: [PATCH] Prevent OOM from killing init Alan Cox
- Re: [PATCH] Prevent OOM from killing in... Stephen E. Clark
- Re: [PATCH] Prevent OOM from killi... G�rard Roudier
- Re: [PATCH] Prevent OOM from killing init Jonathan Morton
- Re: [PATCH] Prevent OOM from killing init Marco Colombo
- RE: [PATCH] Prevent OOM from killing init Stephen Satchell
- Re: [PATCH] Prevent OOM from killing init Andries . Brouwer
- Re: [PATCH] Prevent OOM from killing init Martin Dalecki
- Re: [PATCH] Prevent OOM from killing init Jonathan Morton
- Re: [PATCH] Prevent OOM from killing init Rik van Riel
- Re: [PATCH] Prevent OOM from killing init Jonathan Morton
- Re: [PATCH] Prevent OOM from killing in... Jonathan Morton
- Re: [PATCH] Prevent OOM from killing init Paul Jakma
- Re: [PATCH] Prevent OOM from killing init Andries . Brouwer
- Re: [PATCH] Prevent OOM from killing init Jonathan Morton
- Re: [PATCH] Prevent OOM from killing init Andreas Franck
- Fwd: Re: [PATCH] Prevent OOM from killing init Ed Tomlinson
- Re: [PATCH] Prevent OOM from killing init Andries . Brouwer
- Re: [PATCH] Prevent OOM from killing init Benoit Garnier
- Re: [PATCH] Prevent OOM from killing init Stephen Satchell

