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

2016-08-09 Thread zhong jiang
On 2016/8/10 7:29, Andrew Morton wrote: > On Fri, 5 Aug 2016 22:04:07 +0800 zhongjiang 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 th

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

2016-08-09 Thread Andrew Morton
On Fri, 5 Aug 2016 22:04:07 +0800 zhongjiang 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 ha

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

2016-08-09 Thread zhong jiang
On 2016/8/5 22:04, zhongjiang wrote: > From: zhong jiang > > when required_kernelcore decrease to zero, we should exit the loop in time. > because It will waste time to scan the remainder node. > > Signed-off-by: zhong jiang > --- > mm/page_alloc.c | 10 +++--- > 1 file changed, 7 insertions