Re: [PATCH] mmtom: Prevent shrinking of active anon lru list in caseof no swap space V3

From: Rik van Riel
Date: Thu May 14 2009 - 13:26:38 EST


Andrew Morton wrote:
On Thu, 14 May 2009 23:15:55 +0900
MinChan Kim <minchan.kim@xxxxxxxxx> wrote:

Now shrink_zone can deactivate active anon pages even if we don't have a swap device. Many embedded products don't have a swap device. So the deactivation of anon pages is unnecessary.

Does shrink_list() need to scan the anon LRUs at all if there's no swap
online?

It doesn't. Get_scan_ratio() will return 0 as the
anon percentage if no swap is online.
--
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/