Re: [PATCH 0/8] Use memory compaction instead of lumpy reclaim during high-order allocations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mel Gorman
Date: Thursday, November 18, 2010 - 2:20 am

On Thu, Nov 18, 2010 at 09:38:28AM +0100, Johannes Weiner wrote:

Conceivably, but I see little problem leaving them with lumpy reclaim. As
page cache and anon pages are mixed together in MIGRATE_MOVABLE but only one
set of pages can be discarded, the success rates of either lumpy reclaim or
compaction is doubtful. It'd require a specific investigation.


The series never calls lumpy reclaim once CONFIG_COMPACTION is set. The code
could be shrunk with the below patch but the saving to vmlinux is minimal
(288 bytes for me on x86-64). My preference is still to have lumpy reclaim
available as a comparison point with compaction for a development cycle or two.

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 52a0f0c..7488983 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1048,7 +1048,7 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan,
 			BUG();
 		}
 
-		if (!order)
+		if (!order || COMPACTION_BUILD)
 			continue;
 
 		/*

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 0/8] Use memory compaction instead of lumpy rec ..., KAMEZAWA Hiroyuki, (Thu Nov 18, 1:26 am)
Re: [PATCH 7/8] mm: compaction: Use the LRU to get a hint ..., KAMEZAWA Hiroyuki, (Thu Nov 18, 2:10 am)
Re: [PATCH 0/8] Use memory compaction instead of lumpy rec ..., Mel Gorman, (Thu Nov 18, 2:20 am)
Re: [PATCH 3/8] mm: vmscan: Reclaim order-0 and use compac ..., Andrea Arcangeli, (Thu Nov 18, 11:09 am)
Re: [PATCH 4/8] mm: migration: Allow migration to operate ..., Andrea Arcangeli, (Thu Nov 18, 11:21 am)
Re: [PATCH 6/8] mm: compaction: Perform a faster scan in t ..., Andrea Arcangeli, (Thu Nov 18, 11:34 am)
Re: [PATCH 7/8] mm: compaction: Use the LRU to get a hint ..., Andrea Arcangeli, (Thu Nov 18, 11:46 am)
Re: [PATCH 4/8] mm: migration: Allow migration to operate ..., Andrea Arcangeli, (Thu Nov 18, 12:00 pm)
Re: [PATCH 6/8] mm: compaction: Perform a faster scan in t ..., Andrea Arcangeli, (Thu Nov 18, 12:08 pm)