diff options
author | Mel Gorman <mgorman@suse.de> | 2011-10-31 17:09:33 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-01 12:27:15 -0700 |
commit | 4682e89d1455d66e2536d9efb2875d61a1f1f294 (patch) | |
tree | c278cfc68547bbdc641d4d89a9c07a99d51c1e43 /mm/filemap.c | |
parent | 4d4724067d512e7f17010112da8ec64917c192e7 (diff) | |
download | lwn-4682e89d1455d66e2536d9efb2875d61a1f1f294.tar.gz lwn-4682e89d1455d66e2536d9efb2875d61a1f1f294.zip |
vmscan: abort reclaim/compaction if compaction can proceed
commit e0c23279c9f800c403f37511484d9014ac83adec upstream.
Stable note: Not tracked on Bugzilla. THP and compaction was found to
aggressively reclaim pages and stall systems under different
situations that was addressed piecemeal over time.
If compaction can proceed, shrink_zones() stops doing any work but its
callers still call shrink_slab() which raises the priority and potentially
sleeps. This is unnecessary and wasteful so this patch aborts direct
reclaim/compaction entirely if compaction can proceed.
Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: Johannes Weiner <jweiner@redhat.com>
Cc: Josh Boyer <jwboyer@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions