lkml.org 
[lkml]   [2001]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectFwd: Re: [PATCH] Prevent OOM from killing init
Date

,--------------- Forwarded message (begin)

Subject: Re: [PATCH] Prevent OOM from killing init
From: Jonathan Morton <chromi@cyberspace.org>
Date: Fri, 23 Mar 2001 20:45:43 -0500

>Hmm... "if ( freemem < (size_of_mallocing_process / 20) ) fail_to_allocate;"

Not sure this is that reasonable on a 4G box... 800M is a big chunk...

Why not base this on the vm's free goal. If I remember correctly it tries to keep one
second of pages ready for allocating. If memory is so tight that a second's worth of
memory does not exist. Note that I mean memory free in main memory and swap.

Think your malloc patch along with UID weighting (1-99 protected, 100-999 endangered,
1000+ open season - with poaching expected if there is no choise) will make help oom
processing.

Ed Tomlinson

-
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:17    [W:0.040 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site