Re: [patch] 2.4's sys_readahead is borked

From: Marcelo Tosatti
Date: Wed Feb 04 2004 - 09:31:17 EST




On Tue, 3 Feb 2004, Robert Love wrote:

> In 2.4, sys_readahead() performs readahead against a maximum of half the
> number of inactive pages. This is dumb, as it ignores the number of
> free pages completely. Worse, in certain situations, such as boot, the
> inactive list can be quite small and the free list quite large, but
> readahead(2) won't do anything.
>
> The right thing to do is limit sys_readahead() to a maximum of half of
> the sum of the number of free pages and inactive pages, which is what
> 2.6 does.

Hi Robert,

This looks okay, applied.

Question: Do you know any user of sys_readahead() ?

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