From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by kanga.kvack.org (Postfix) with ESMTP id 1E1176B0037 for ; Fri, 15 Nov 2013 09:07:49 -0500 (EST) Received: by mail-pd0-f181.google.com with SMTP id p10so3487266pdj.40 for ; Fri, 15 Nov 2013 06:07:48 -0800 (PST) Received: from psmtp.com ([74.125.245.124]) by mx.google.com with SMTP id sr5si2131541pab.63.2013.11.15.06.07.45 for ; Fri, 15 Nov 2013 06:07:46 -0800 (PST) Date: Fri, 15 Nov 2013 09:07:38 -0500 From: Vivek Goyal Subject: Re: [PATCH 0/3] Early use of boot service memory Message-ID: <20131115140738.GB6637@redhat.com> References: <20131113224503.GB25344@anatevka.fc.hp.com> <52840206.5020006@zytor.com> <20131113235708.GC25344@anatevka.fc.hp.com> <20131114180455.GA32212@anatevka.fc.hp.com> <20131115005049.GJ5116@anatevka.fc.hp.com> <20131115062417.GB9237@gmail.com> <5285C639.5040203@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5285C639.5040203@zytor.com> Sender: owner-linux-mm@kvack.org List-ID: To: "H. Peter Anvin" Cc: Yinghai Lu , Ingo Molnar , jerry.hoemann@hp.com, Pekka Enberg , Rob Landley , Thomas Gleixner , Ingo Molnar , x86 maintainers , Matt Fleming , Andrew Morton , "list@ebiederm.org:DOCUMENTATION" , "list@ebiederm.org:MEMORY MANAGEMENT" , linux-efi@vger.kernel.org, LKML On Thu, Nov 14, 2013 at 10:59:05PM -0800, H. Peter Anvin wrote: > On 11/14/2013 10:55 PM, Yinghai Lu wrote: > > > > Why just asking distros to append ",high" in their installation > > program for 64bit by default? > > > [...] > > > > What is hpa's suggestion? > > > > Pretty much what you just said ;) I think crashkernel=X,high is not a good default choice for distros. Reserving memory high reserves 72MB (or more) low memory for swiotlb. We work hard to keep crashkernel memory amount low and currently reserve 128M by default. Now suddenly our total memory reservation will shoot to 200 MB if we choose ,high option. That's jump of more than 50%. It is not needed. We can do dumping operation successfully in *less* reserved memory by reserving memory below 4G. And hence crashkernel=,high is not a good default. Instead, crashkernel=X is a good default if we are ready to change semantics a bit. If sufficient crashkernel memory is not available in low memory area, look for it above 4G. This incurs penalty of 72M *only* if it has to and not by default on most of the systems. And this should solve jerry's problem too on *latest* kernels. For older kernels, we don't have ,high support. So using that is not an option. (until and unless somebody is ready to backport everything needed to boot old kernel above 4G). Thanks Vivek -- 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