summaryrefslogtreecommitdiff
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2012-01-10 23:07:14 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-11 00:30:42 (GMT)
commit938929f14cb595f43cd1a4e63e22d36cab1e4a1f (patch)
tree54c23d02494c05d13cc6a6ffb327cc1fb03e72fd /mm/swapfile.c
parent937a94c9db30a818baa5e2c09dbf4589251355c3 (diff)
downloadlinux-938929f14cb595f43cd1a4e63e22d36cab1e4a1f.tar.xz
mm: reduce the amount of work done when updating min_free_kbytes
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>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions