diff options
author | David Rientjes <[email protected]> | 2013-09-30 13:45:03 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-09-30 14:31:01 -0700 |
commit | f6ea3adb70b20ae36277a1b0eaaf4da9f6479a28 (patch) | |
tree | 9d21f9dfff81d06902db1bdd18d0bd575c06065c /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 72023656961b8c81a168a7a6762d589339d0d7ec (diff) |
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 <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Reviewed-by: Wanpeng Li <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions