Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751898AbbEGWwd (ORCPT ); Thu, 7 May 2015 18:52:33 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53256 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbbEGWwb (ORCPT ); Thu, 7 May 2015 18:52:31 -0400 Date: Thu, 7 May 2015 23:52:26 +0100 From: Mel Gorman To: Andrew Morton Cc: Waiman Long , Nathan Zimmer , Dave Hansen , Scott Norton , Daniel J Blueman , Linux-MM , LKML Subject: Re: [PATCH] mm: meminit: Finish initialisation of struct pages before basic setup Message-ID: <20150507225226.GM2462@suse.de> References: <1430231830-7702-1-git-send-email-mgorman@suse.de> <554030D1.8080509@hp.com> <5543F802.9090504@hp.com> <554415B1.2050702@hp.com> <20150504143046.9404c572486caf71bdef0676@linux-foundation.org> <20150505104514.GC2462@suse.de> <20150505130255.49ff76bbf0a3b32d884ab2ce@linux-foundation.org> <20150507072518.GL2462@suse.de> <20150507150932.79e038167f70dd467c25d6ee@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20150507150932.79e038167f70dd467c25d6ee@linux-foundation.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1361 Lines: 32 On Thu, May 07, 2015 at 03:09:32PM -0700, Andrew Morton wrote: > On Thu, 7 May 2015 08:25:18 +0100 Mel Gorman wrote: > > > Waiman Long reported that 24TB machines hit OOM during basic setup when > > struct page initialisation was deferred. One approach is to initialise memory > > on demand but it interferes with page allocator paths. This patch creates > > dedicated threads to initialise memory before basic setup. It then blocks > > on a rw_semaphore until completion as a wait_queue and counter is overkill. > > This may be slower to boot but it's simplier overall and also gets rid of a > > section mangling which existed so kswapd could do the initialisation. > > Seems a reasonable compromise. It makes a bit of a mess of the patch > sequencing. > > Have some tweaklets: > The tweaks are prefectly reasonable. As for the patch sequencing, I'm ok with adding the patch on top if you are because that preserves the testing history. If you're unhappy, I can shuffle it into a better place and resend the full series that includes all the fixes so far. Thanks. -- Mel Gorman SUSE Labs -- 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/