Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1793197imm; Thu, 24 May 2018 00:38:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZra/pk7ZDm5pWL5dARr8Z2ez0K7h2r78lglOTxahjvxSqW/oUPrwrYW+iqhHhQQrvoD2Z3k X-Received: by 2002:a17:902:a717:: with SMTP id w23-v6mr6177313plq.130.1527147534319; Thu, 24 May 2018 00:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527147534; cv=none; d=google.com; s=arc-20160816; b=bAPiw413Mm5jsOk1pRAxr4hWMR3tow2+lnbJnqXHhR8JGOqK6ILZHleswxOc/Fx+6R Rpqnmn2by1iZZhTzBbGSBbYlmkIC3m+4kwFLi2GZiUFJdbLl4l9oerqwc9Nh0XzugLLX pj1VFkAxudyzUoesmzvfoGdnnDxmM7K0t0yo3CeCeOETnzfOXyKTBYAjmc+ohYK6y5M+ +V34jirTPhMRMCbvc2Lt8jZMlXQCj4QV6+z0enQc0XNoyWv6y0o5jt6GflQxjFpn9xOh 4L4kNwkAiB3322GgFsNqYDJN/iXdhAgGP0BhlwUDtMVS7liZtaT2eY8DFfmwwEE9wFhR oOtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=4fKieKeT4G2zoi/RcHJoMlUFvw9ymYb1fYBYTdK5svo=; b=lg8kpvdv3RCruDP+vVuiPsbonUorxn2mh8+qXu4G7qU/tPAD93ze+nIFpjL30j2ONG anFladS5OwncqpaGqf+h7BD2DmHMA6DVkBvUdRDEF8k6KZUgjtUnu3fRIsGRKjuCyE1y ls1f+BMxJzPSQsAJx1wGysAt1J/sRBRUqUaumON+LDIOg2Hg4Z0k1uoH7fXBED1iQqxX 7y4y9j9akGyxDz8MW428aktCD0/Dtty6eSEpz1p0SchsfvBukr+POHH5nCTZ0FOVfv8q mMHqpWBOGssadYhTtcdr+LjhMZ4rleERcBPQV6eV6mufYheyZhvNMtZ+DGI4x8zANe4q iVUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si20462286ply.37.2018.05.24.00.38.26; Thu, 24 May 2018 00:38:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935669AbeEXHbO (ORCPT + 99 others); Thu, 24 May 2018 03:31:14 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43400 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935628AbeEXHbM (ORCPT ); Thu, 24 May 2018 03:31:12 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 894BB402178A; Thu, 24 May 2018 07:31:11 +0000 (UTC) Received: from localhost (ovpn-8-17.pek2.redhat.com [10.72.8.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0C36C2026DEF; Thu, 24 May 2018 07:31:09 +0000 (UTC) Date: Thu, 24 May 2018 15:31:05 +0800 From: Baoquan He To: Petr Tesarik Cc: Dave Young , dzickus@redhat.com, Neil Horman , Tony Luck , Michael Ellerman , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Schwidefsky , "Eric W. Biederman" , Benjamin Herrenschmidt , Hari Bathini , Cong Wang , Andrew Morton , Ingo Molnar , Vivek Goyal Subject: Re: [PATCH] kdump: add default crashkernel reserve kernel config options Message-ID: <20180524073105.GF24627@MiWiFi-R3L-srv> References: <20180521025337.GA4627@dhcp-128-65.nay.redhat.com> <20180521120215.117d963a7619eb0d1f54bced@linux-foundation.org> <20180523070641.GA1689@dhcp-128-65.nay.redhat.com> <877enucqr0.fsf@xmission.com> <20180523222236.5a96732e@ezekiel.suse.cz> <20180524014905.GB2031@dhcp-128-65.nay.redhat.com> <20180524085708.31aa311d@ezekiel.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524085708.31aa311d@ezekiel.suse.cz> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 24 May 2018 07:31:11 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 24 May 2018 07:31:11 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'bhe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/24/18 at 08:57am, Petr Tesarik wrote: > On Thu, 24 May 2018 09:49:05 +0800 > Dave Young wrote: > > > Hi Petr, > > > > On 05/23/18 at 10:22pm, Petr Tesarik wrote: > >[...] > > > In short, if one size fits none, what good is it to hardcode that "one > > > size" into the kernel image? > > > > I agreed with all the things that we can not know the exact memory > > requirement for 100% use cases. But that does not means this is useless > > it is still useful for common use cases of no special and memory hog > > requirements as I mentioned in another reply it can simplify the kdump > > deployment for those people who do not need the special setup. > > I still tend to disagree. This "common-case" reservation depends on > things that are defined by user space. It surely does not make it > easier to build a distribution kernel. Today, I get bug reports that > the number calculated and added to the boot loader configuration by the > installer is inaccurate. If I put a fixed number into a kernel config > option, I will start getting bugs that this number is incorrect (for > some systems). > > > For example, if this is a workstation I just want to break into a shell > > to collect some panic info, then I just need a very minimal initrd, then > > the Kconfig will work just fine. > > What is "a very minimal initrd"? Last time I had to make a significant > adjustment to the estimation for openSUSE, this was caused by growing > user-space requirements (systemd in this case, but I don't want to > start flamewars on that topic, please). > > Anyway, if you want to improve the "common case", then look how IBM > tries to solve it for firmware-assisted dump (fadump) on powerpc: > > https://patchwork.ozlabs.org/patch/905026/ > > The main idea is: > > > Instead of setting aside a significant chunk of memory nobody can use, > > [...] reserve a significant chunk of memory that the kernel is prevented > > from using [...], but applications are free to use it. > > That works great, because user space pages are filtered out in the > common case, so they can be used freely by the panic kernel. This seems a good idea, just makedumpfile need be adjusted since it allows user to decide if dump user space data or not.