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

From: zhong jiang
Date: Tue Aug 09 2016 - 22:37:54 EST


On 2016/8/10 7:29, Andrew Morton wrote:
> 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.
yes
> Do we have any timing measurements which would justify changing this code?
I am sorry for that. That is a only theoretical analysis.
>