Re: [RFC][PATCH] avoid swapping out with swappiness==0

From: Rik van Riel
Date: Sat May 12 2012 - 18:21:53 EST


On 05/11/2012 05:11 PM, Satoru Moriya wrote:
On 04/20/2012 08:21 PM, Satoru Moriya wrote:
Ah yes, it is not so small now.
On 4GB server, without THP min_free_kbytes is 8113 but with THP it is
67584.

How about using low watermark or min watermark?
Are they still big?

...or should we use other value?

What do you think of the idea above?

I believe that using the high watermark is just fine.

We want to start swapping, before the page cache is so
small that we start thrashing from that.

So, I propose that we start with applying this patch first
and then discuss/improve the threshold.

The patch may not be perfect but, at least, we can improve
the kernel behavior in the enough filebacked memory case
with this patch. I believe it's better than nothing.

Agreed.

--
All rights reversed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/