Re: [PATCH 2/5] vmscan: sleep only if backingdev is congested

2012-08-25 Thread Rik van Riel
On 08/22/2012 03:15 AM, Minchan Kim wrote: +++ b/mm/vmscan.c @@ -2705,8 +2705,16 @@ loop_again: if (total_scanned && (sc.priority < DEF_PRIORITY - 2)) { if (has_under_min_watermark_zone) count_vm_event(KSWAPD_SKIP_CONGESTION

[PATCH 2/5] vmscan: sleep only if backingdev is congested

2012-08-22 Thread Minchan Kim
In small high zone(ex, 40M movable zone), reclaim priority could be raised easily so congestion_wait of balance_pgdat can make kswapd sleep unnecessarily so process ends up entering into direct reclaim path. It means processes's latency would be longer. This patch changes congestion_wait with wait