]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: reduce the amount of work done when updating min_free_kbytes
authorMel Gorman <mgorman@suse.de>
Tue, 10 Jan 2012 23:07:14 +0000 (15:07 -0800)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 6 Jun 2012 18:49:38 +0000 (22:49 +0400)
commit388161a8a9dd8e6667df9ac280c40ebbf0aebab4
treec2009db24f2784f4b09353c881dae4d0d5ae6a8e
parent90a6618daf69b273d583d168399a009717cdcae3
mm: reduce the amount of work done when updating min_free_kbytes

Orabug: 14073214
When min_free_kbytes is updated, some pageblocks are marked
MIGRATE_RESERVE.  Ordinarily, this work is unnoticable as it happens early
in boot but on large machines with 1TB of memory, this has been reported
to delay boot times, probably due to the NUMA distances involved.

The bulk of the work is due to calling calling pageblock_is_reserved() an
unnecessary amount of times and accessing far more struct page metadata
than is necessary.  This patch significantly reduces the amount of work
done by setup_zone_migrate_reserve() improving boot times on 1TB machines.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 938929f14cb595f43cd1a4e63e22d36cab1e4a1f)

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
mm/page_alloc.c