> Index: linux/mm/vmscan.c
> ===================================================================
> --- linux.orig/mm/vmscan.c 2010-04-14 09:03:28.000000000 +0800
> +++ linux/mm/vmscan.c 2010-04-14 09:19:56.000000000 +0800
> @@ -1629,6 +1629,22 @@ static void get_scan_count(struct zone *
> fraction[0] = ap;
> fraction[1] = fp;
> denominator = ap + fp + 1;
> +
> + /*
> + * memory pressure isn't high, we allow percentage underflow. This
> + * avoids swap in stream io case.
> + */
> + if (priority == DEF_PRIORITY) {
> + if (fraction[0] * 99 < fraction[1]) {
> + fraction[0] = 0;
> + fraction[1] = 1;
> + denominator = 1;
> + } else if (fraction[1] * 99 < fraction[0]) {
> + fraction[0] = 1;
> + fraction[1] = 0;
> + denominator = 1;
> + }
> + }
> out:
> for_each_evictable_lru(l) {
> int file = is_file_lru(l);
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to
majordomo@kvack.org. For more info on Linux MM,
> see:
http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org">
email@kvack.org </a>