Re: [PATCH] mm: optimize find_zone_movable_pfns_for_nodes to avoid unnecessary loop.

From: Andrew Morton
Date: Tue Aug 09 2016 - 19:29:25 EST


On Fri, 5 Aug 2016 22:04:07 +0800 zhongjiang <zhongjiang@xxxxxxxxxx> wrote:

> when required_kernelcore decrease to zero, we should exit the loop in time.
> because It will waste time to scan the remainder node.

The patch is rather ugly and it only affects __init code, so the only
benefit will be to boot time.

Do we have any timing measurements which would justify changing this code?