Re: pre4 oom too soon

Linus Torvalds (torvalds@transmeta.com)
Fri, 5 Oct 2001 12:59:29 -0700 (PDT)


On Fri, 5 Oct 2001, Hugh Dickins wrote:
>
> I'm not sure exactly what to blame in out_of_memory(), but it does
> look wrong to depend so much on whether nr_swap_pages happens to be 0
> at that instant or not, and a lot of that full swap is duplicated in
> the swap cache. Probably that should be taken into consideration?

That sounds sane. If we have swap cache pages, we're not out of memory
yet.

Linus

-
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/