Home
last modified time | relevance | path

Searched hist:f6ea3adb70b20ae36277a1b0eaaf4da9f6479a28 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/
H A Dcompaction.cdiff f6ea3adb70b20ae36277a1b0eaaf4da9f6479a28 Mon Sep 30 15:45:03 CDT 2013 David Rientjes <rientjes@google.com> mm/compaction.c: periodically schedule when freeing pages

We've been getting warnings about an excessive amount of time spent
allocating pages for migration during memory compaction without
scheduling. isolate_freepages_block() already periodically checks for
contended locks or the need to schedule, but isolate_freepages() never
does.

When a zone is massively long and no suitable targets can be found, this
iteration can be quite expensive without ever doing cond_resched().

Check periodically for the need to reschedule while the compaction free
scanner iterates.

Signed-off-by: David Rientjes <rientjes@google.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>