linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/1] vmscan: give referenced, active and unmapped pages a second trip around the LRU
@ 2007-05-24 23:57 akpm, Andrew Morton
  2007-05-25  7:02 ` Peter Zijlstra
  2007-05-25 14:43 ` Rik van Riel
  0 siblings, 2 replies; 15+ messages in thread
From: akpm, Andrew Morton @ 2007-05-24 23:57 UTC (permalink / raw)
  To: linux-mm; +Cc: akpm, mbligh, riel

Martin spotted this.

In the original rmap conversion in 2.5.32 we broke aging of pagecache pages on
the active list: we deactivate these pages even if they had PG_referenced set.

We should instead clear PG_referenced and give these pages another trip around
the active list.

We have basically no way of working out whether or not this change will
benefit or worsen anything.

Cc: Martin Bligh <mbligh@mbligh.org>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmscan.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN mm/vmscan.c~vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru mm/vmscan.c
--- a/mm/vmscan.c~vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru
+++ a/mm/vmscan.c
@@ -836,6 +836,9 @@ force_reclaim_mapped:
 				list_add(&page->lru, &l_active);
 				continue;
 			}
+		} else if (TestClearPageReferenced(page)) {
+			list_add(&page->lru, &l_active);
+			continue;
 		}
 		list_add(&page->lru, &l_inactive);
 	}
_

--
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>

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-05-25 17:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-24 23:57 [patch 1/1] vmscan: give referenced, active and unmapped pages a second trip around the LRU akpm, Andrew Morton
2007-05-25  7:02 ` Peter Zijlstra
2007-05-25  7:18   ` Andrew Morton
2007-05-25  7:23     ` Peter Zijlstra
2007-05-25  7:28       ` Andrew Morton
2007-05-25  7:36         ` Peter Zijlstra
2007-05-25  7:48           ` Andrew Morton
2007-05-25  7:51             ` Peter Zijlstra
2007-05-25  8:01               ` Andrew Morton
2007-05-25  8:35                 ` Peter Zijlstra
2007-05-25  8:43                   ` Andrew Morton
2007-05-25 10:13                     ` Peter Zijlstra
2007-05-25 14:50   ` Rik van Riel
2007-05-25 14:43 ` Rik van Riel
2007-05-25 17:20   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox