All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] vmscan-prevent-shrinking-of-active-anon-lru-list-in-case-of-no-swap-space-v3.patch removed from -mm tree
@ 2009-06-17 18:35 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-06-17 18:35 UTC (permalink / raw)
  To: minchan.kim, hannes, kosaki.motohiro, riel, mm-commits


The patch titled
     vmscan: prevent shrinking of active anon lru list in case of no swap space V3
has been removed from the -mm tree.  Its filename was
     vmscan-prevent-shrinking-of-active-anon-lru-list-in-case-of-no-swap-space-v3.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: vmscan: prevent shrinking of active anon lru list in case of no swap space V3
From: MinChan Kim <minchan.kim@gmail.com>

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.

This patch prevents unnecessary deactivation of anon lru pages.  But, it
don't prevent aging of anon pages to swap out.

Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmscan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/vmscan.c~vmscan-prevent-shrinking-of-active-anon-lru-list-in-case-of-no-swap-space-v3 mm/vmscan.c
--- a/mm/vmscan.c~vmscan-prevent-shrinking-of-active-anon-lru-list-in-case-of-no-swap-space-v3
+++ a/mm/vmscan.c
@@ -1570,7 +1570,7 @@ static void shrink_zone(int priority, st
 	 * Even if we did not try to evict anon pages at all, we want to
 	 * rebalance the anon lru active/inactive ratio.
 	 */
-	if (inactive_anon_is_low(zone, sc))
+	if (inactive_anon_is_low(zone, sc) && nr_swap_pages > 0)
 		shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0);
 
 	throttle_vm_writeout(sc->gfp_mask);
_

Patches currently in -mm which might be from minchan.kim@gmail.com are

origin.patch
linux-next.patch
memcg-fix-lru-rotation-in-isolate_pages.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-17 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17 18:35 [merged] vmscan-prevent-shrinking-of-active-anon-lru-list-in-case-of-no-swap-space-v3.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.