From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx196.postini.com [74.125.245.196]) by kanga.kvack.org (Postfix) with SMTP id 5A9D66B0083 for ; Sun, 15 Sep 2013 13:03:55 -0400 (EDT) Date: Sun, 15 Sep 2013 13:03:39 -0400 From: Johannes Weiner Subject: Re: [PATCH] Have __free_pages_memory() free in larger chunks. Message-ID: <20130915170339.GA3278@cmpxchg.org> References: <1378839444-196190-1-git-send-email-nzimmer@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1378839444-196190-1-git-send-email-nzimmer@sgi.com> Sender: owner-linux-mm@kvack.org List-ID: To: Nathan Zimmer Cc: mingo@kernel.org, hpa@zytor.com, Robin Holt , Linux Kernel , Linux MM , Rob Landley , Mike Travis , Daniel J Blueman , Andrew Morton , Greg KH , Yinghai Lu , Mel Gorman On Tue, Sep 10, 2013 at 01:57:24PM -0500, Nathan Zimmer wrote: > From: Robin Holt > > On large memory machines it can take a few minutes to get through > free_all_bootmem(). > > Currently, when free_all_bootmem() calls __free_pages_memory(), the > number of contiguous pages that __free_pages_memory() passes to the > buddy allocator is limited to BITS_PER_LONG. BITS_PER_LONG was originally > chosen to keep things similar to mm/nobootmem.c. But it is more > efficient to limit it to MAX_ORDER. > > base new change > 8TB 202s 172s 30s > 16TB 401s 351s 50s > > That is around 1%-3% improvement on total boot time. > > This patch was spun off from the boot time rfc Robin and I had been > working on. > > Signed-off-by: Robin Holt > Signed-off-by: Nathan Zimmer > To: "H. Peter Anvin" > To: Ingo Molnar > Cc: Linux Kernel > Cc: Linux MM > Cc: Rob Landley > Cc: Mike Travis > Cc: Daniel J Blueman > Cc: Andrew Morton > Cc: Greg KH > Cc: Yinghai Lu > Cc: Mel Gorman Acked-by: Johannes Weiner -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org