Re: [PATCH 02/10] mm: system wide ALLOC_NO_WATERMARK

Christoph Lameter
2007-08-10T01:48:50Z

On Thu, 9 Aug 2007, Daniel Phillips wrote:

> You can fix reclaim as much as you want and the basic deadlock will
> still not go away. When you finally do get to writing something out,
> memory consumers in the writeout path are going to cause problems,
> which this patch set fixes.

We currently also do *not* write out immediately. I/O is queued when
submitted so it does *not* reduce memory. It is better to actually delay
writeout until you have thrown out clean pages. At that point the free
memory is at its high point. If memory goes below the high point again by
these writes then we can again reclaim until things are right.

> Agreed that the idea of mempool always sounded strange, and we show
> how to get rid of them, but that is not the immediate purpose of this
> patch set.

Ok mempools are unrelated. The allocations problems that this patch
addresses can be fixed by making reclaim more intelligent. This may likely
make mempools less of an issue in the kernel. If we can reclaim in an
emergency even in ATOMIC contexts then things get much easier.