[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] mm: compaction: cache if a pageblock was scanned an
From: |
Mel Gorman |
Subject: |
[Qemu-devel] [PATCH] mm: compaction: cache if a pageblock was scanned and no pages were isolated -fix2 |
Date: |
Thu, 27 Sep 2012 13:06:21 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
The clearing of PG_migrate_skip potentially takes a long time if the
zone is massive. Be safe and check if it needs to reschedule.
This is a fix for
mm-compaction-cache-if-a-pageblock-was-scanned-and-no-pages-were-isolated.patch
Signed-off-by: Mel Gorman <address@hidden>
---
mm/compaction.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mm/compaction.c b/mm/compaction.c
index fb07abb..722d10f 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -85,6 +85,9 @@ static void reset_isolation_suitable(struct zone *zone)
/* Walk the zone and mark every pageblock as suitable for isolation */
for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) {
struct page *page;
+
+ cond_resched();
+
if (!pfn_valid(pfn))
continue;
- Re: [Qemu-devel] [PATCH 6/9] mm: compaction: Acquire the zone->lock as late as possible, (continued)
Re: [Qemu-devel] [PATCH 6/9] mm: compaction: Acquire the zone->lock as late as possible, Minchan Kim, 2012/09/25
[Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Mel Gorman, 2012/09/21
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Rafael Aquini, 2012/09/21
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Andrew Morton, 2012/09/22
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Mel Gorman, 2012/09/24
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Andrew Morton, 2012/09/24
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Mel Gorman, 2012/09/25
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Andrew Morton, 2012/09/25
- [Qemu-devel] [PATCH] mm: compaction: cache if a pageblock was scanned and no pages were isolated -fix2,
Mel Gorman <=
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Mel Gorman, 2012/09/27
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Minchan Kim, 2012/09/25
- Re: [Qemu-devel] [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated, Mel Gorman, 2012/09/27
[Qemu-devel] [PATCH 9/9] mm: compaction: Restart compaction from near where it left off, Mel Gorman, 2012/09/21
[Qemu-devel] [PATCH 4/9] mm: compaction: Abort compaction loop if lock is contended or run too long, Mel Gorman, 2012/09/21
[Qemu-devel] [PATCH 5/9] mm: compaction: Acquire the zone->lru_lock as late as possible, Mel Gorman, 2012/09/21