diff options
author | Mel Gorman <mgorman@suse.de> | 2012-10-08 19:32:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 03:22:50 -0400 |
commit | 753341a4b85ff337487b9959c71c529f522004f4 (patch) | |
tree | 6a705fd73dd599e7eeb58cb06e84c86c07c03a64 /mm/page_alloc.c | |
parent | f40d1e42bb988d2a26e8e111ea4c4c7bac819b7e (diff) |
revert "mm: have order > 0 compaction start off where it left"
This reverts commit 7db8889ab05b ("mm: have order > 0 compaction start
off where it left") and commit de74f1cc ("mm: have order > 0 compaction
start near a pageblock with free pages"). These patches were a good
idea and tests confirmed that they massively reduced the amount of
scanning but the implementation is complex and tricky to understand. A
later patch will cache what pageblocks should be skipped and
reimplements the concept of compact_cached_free_pfn on top for both
migration and free scanners.
Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Richard Davies <richard@arachsys.com>
Cc: Shaohua Li <shli@kernel.org>
Cc: Avi Kivity <avi@redhat.com>
Acked-by: Rafael Aquini <aquini@redhat.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ca002b39b9b4..628968c1ccf4 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -4490,11 +4490,6 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat, | |||
4490 | 4490 | ||
4491 | zone->spanned_pages = size; | 4491 | zone->spanned_pages = size; |
4492 | zone->present_pages = realsize; | 4492 | zone->present_pages = realsize; |
4493 | #if defined CONFIG_COMPACTION || defined CONFIG_CMA | ||
4494 | zone->compact_cached_free_pfn = zone->zone_start_pfn + | ||
4495 | zone->spanned_pages; | ||
4496 | zone->compact_cached_free_pfn &= ~(pageblock_nr_pages-1); | ||
4497 | #endif | ||
4498 | #ifdef CONFIG_NUMA | 4493 | #ifdef CONFIG_NUMA |
4499 | zone->node = nid; | 4494 | zone->node = nid; |
4500 | zone->min_unmapped_pages = (realsize*sysctl_min_unmapped_ratio) | 4495 | zone->min_unmapped_pages = (realsize*sysctl_min_unmapped_ratio) |