]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, thp: avoid excessive compaction latency during fault fix
authorDavid Rientjes <rientjes@google.com>
Thu, 22 May 2014 00:43:13 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:13 +0000 (10:43 +1000)
commitd6ca694a2f9cb508a2b872820b388799248e8133
treea73b3404df259904d7afea567b22b7031ed7fead
parent0aa64a98f5cd188eb8a5c978ed330211f5c213fc
mm, thp: avoid excessive compaction latency during fault fix

mm-thp-avoid-excessive-compaction-latency-during-fault.patch excludes sync
compaction for all high order allocations other than thp.  What we really
want to do is suppress sync compaction for thp, but only during the page
fault path.

Orders greater than PAGE_ALLOC_COSTLY_ORDER aren't necessarily going to
loop again so this is the only way to exhaust our capabilities before
declaring that we can't allocate.

Signed-off-by: David Rientjes <rientjes@google.com>
Reported-by: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Greg Thelen <gthelen@google.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c