Re: [RFC PATCH V3] mm readahead: Fix the readahead fail in case ofempty numa node

From: Raghavendra K T
Date: Wed Jan 08 2014 - 06:50:36 EST


On 01/08/2014 04:17 PM, Jan Kara wrote:
On Wed 08-01-14 14:19:23, Raghavendra K T wrote:
On 01/07/2014 03:43 AM, Andrew Morton wrote:
On Mon, 6 Jan 2014 15:51:55 +0530 Raghavendra K T <raghavendra.kt@xxxxxxxxxxxxxxxxxx> wrote:
[...]
But having said that I am not able to get an idea of sane implementation
to solve this readahead failure bug overcoming the anomaly you pointed
:(. hints/ideas.. ?? please let me know.
So if we would be happy with just fixing corner cases like this, we might
use total node memory size to detect them, can't we? If total node memory
size is 0, we can use 16 MB (or global number of free pages / 2 if we would
be uneasy with fixed 16 MB limit) as an upperbound...


Thanks Honza.

This seems to be more sensible option, I 'll send the patch with that
change (including 16MB limit if nobody disagrees).

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