Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964908AbbGVBNm (ORCPT ); Tue, 21 Jul 2015 21:13:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38067 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934008AbbGVBNl (ORCPT ); Tue, 21 Jul 2015 21:13:41 -0400 Date: Wed, 22 Jul 2015 09:13:35 +0800 From: Baoquan He To: Ingo Molnar Cc: Dave Young , tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, bp@suse.de, akpm@linux-foundation.org, jkosina@suse.cz, vgoyal@redhat.com, linux-kernel@vger.kernel.org, yinghai@kernel.org, Peter Zijlstra Subject: Re: [PATCH v2] Do not reserve crashkernel high memory if crashkernel low memory reserving failed Message-ID: <20150722011335.GA2639@dhcp-17-102.nay.redhat.com> References: <1437304064-9916-1-git-send-email-bhe@redhat.com> <20150719145320.GB9968@dhcp-17-102.nay.redhat.com> <20150721073123.GA30649@dhcp-129-220.nay.redhat.com> <20150721073814.GA17513@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150721073814.GA17513@gmail.com> 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: 1969 Lines: 46 On 07/21/15 at 09:38am, Ingo Molnar wrote: > > * Dave Young wrote: > > > Hi, Baoquan > > > > The interface was introduced by Yinghai, ccing him. > > Also, why was this syntax introduced in the first place? Why should the user > care?? The user space tool makedumpfile default to use bitmap array to mark all pages if they are dumpable or need be filtered out. For x86_64 the filtering logic requires 2bits per 4K of RAM except of kdump kernel running. Then 1G memory will cost 512K bytes, 1T costs 512M. So for system with more than 1T physical memory user prefers crashkernel memory resereved above 4G since memory space above 4G could be huge while memory under 4G is very limited. So system with more than 1T physical memory should take high memory and with a very few low memory reservation, e.g about 100M. This is very cost-effective for those systems where pci memory space is very precious because of many pci devices. I think it's more meaningful to provide a ,high/,low for those systems which need reserve about 500M~1G crashkernel memory since they can be allocated in below 4G successfully and can be allocated above 4G for saving pci memory space. where to reserve is decided by user who knows if they need it. > > We should only have a single crashkernel option, to enable it - and everything > else should be figured out by the kernel, automatically. We could provide a single crashkernel option, like crashkernel=xxx:yyy-zzz, xxx is size, yyy-zzz is range starting and end address. But when memory is reserved above 4G, we still need be told if low memory is needed since some systems must have low memory, some don't need it like systems with hardware iommu. Thanks Baoquan -- 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/