]> git.baikalelectronics.ru Git - kernel.git/commit
mm: page_alloc: do not update zlc unless the zlc is active
authorMel Gorman <mgorman@suse.de>
Wed, 4 Jun 2014 23:10:05 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:08 +0000 (16:54 -0700)
commitcea6f81997c0b34a2bbd75b5cb41e5790ba4855f
tree03a55a0eb6bc7fbf4778539d26fc3be8f8ec9d52
parentc11a3100737620cf19dcd85eddcfa6388222ffdc
mm: page_alloc: do not update zlc unless the zlc is active

The zlc is used on NUMA machines to quickly skip over zones that are full.
 However it is always updated, even for the first zone scanned when the
zlc might not even be active.  As it's a write to a bitmap that
potentially bounces cache line it's deceptively expensive and most
machines will not care.  Only update the zlc if it was active.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c