[lkml]   [2001]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: out_of_memory() heuristic broken for different mem configurations (fwd)

On Thu, 8 Nov 2001, Marcelo Tosatti wrote:
> I guess you forgot to apply the following patch on 2.4.15-pre1, right ?

The thing is, I _really_ think it is broken.

The way to make it fail is to have many large SHARED mappings - in which
case we have backing space for 99% of all memory, and returning -1 just
because a few pages need swap-space and can't be thrown out is wrong.

Try it with no swap, and having some processes that MAP_SHARED much more
than available memory and many (small) processes that do not, and need
swap-space. It should work fine - we're never even _close_ to being out of
memory, but your change makes "swap_out()" fail all the time.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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