Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757244Ab3IORDy (ORCPT ); Sun, 15 Sep 2013 13:03:54 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:55074 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757147Ab3IORDx (ORCPT ); Sun, 15 Sep 2013 13:03:53 -0400 Date: Sun, 15 Sep 2013 13:03:39 -0400 From: Johannes Weiner 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 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1599 Lines: 41 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/