[PATCH] factor free memory into max_sane_readahead()
max_sane_readahead() permits the user to readahead up to half-the-inactive-list's worth of pages. Which is totally wrong if most of memory is free. So make the limit be (nr_inactive + nr_free) / 2
Showing
Please register or sign in to comment