summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2015-09-09 00:02:49 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-09 00:35:28 +0200
commit9fcd6d2e052eef525e94a9ae58dbe7ed4df4f5a7 (patch)
tree73352bbd22c199a0dcbd7a1a06f3bd5f5a4111ad /tools
parentmm, compaction: always skip all compound pages by order in migrate scanner (diff)
downloadlinux-9fcd6d2e052eef525e94a9ae58dbe7ed4df4f5a7.tar.xz
linux-9fcd6d2e052eef525e94a9ae58dbe7ed4df4f5a7.zip
mm, compaction: skip compound pages by order in free scanner
The compaction free scanner is looking for PageBuddy() pages and skipping all others. For large compound pages such as THP or hugetlbfs, we can save a lot of iterations if we skip them at once using their compound_order(). This is generally unsafe and we can read a bogus value of order due to a race, but if we are careful, the only danger is skipping too much. When tested with stress-highalloc from mmtests on 4GB system with 1GB hugetlbfs pages, the vmstat compact_free_scanned count decreased by at least 15%. Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Cc: Minchan Kim <minchan@kernel.org> Cc: Mel Gorman <mgorman@suse.de> Acked-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Acked-by: Michal Nazarewicz <mina86@mina86.com> Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: Christoph Lameter <cl@linux.com> Cc: Rik van Riel <riel@redhat.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions