Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2939831imm; Thu, 24 May 2018 19:30:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMzYjvACW4uCnATTclp4zaxpKJ5FTyhWgLVhYPmaBcEWCGIzKIl5ysQsHlwqB1saMl2S3R X-Received: by 2002:a63:7f07:: with SMTP id a7-v6mr432190pgd.173.1527215418489; Thu, 24 May 2018 19:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215418; cv=none; d=google.com; s=arc-20160816; b=S1EZr3AhjSOz0093rl/jLJLPXlG9vHLqMTodLp7gz2ApvunyjXE0u1lx+pGH0telkd +jQiIscf4XHAS59BlD3Dr0gJl5Ur/6e2DXIkJE78Cv0YuGtdexJYJjIJBnesamOiMARR u6WTRq5J1dbnfL5ZFF1RvchMQ8NbbNKyQHUdiDPz0WJ4X8Nzj5C5t8FjjBXwJYpcQHWl aPs8rH75ZspnkR1C3NiFpbmPmXXssido11GeVT1838dGxkaAelRBrXnOhl0E0T1F8nlf LkdiAvmf34j6XmtzZ1LHBqITvdpv8s1xeqIZMY7wynJJk0MQIqJ5v2v+eTBFtl/Rx93U cvJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=HTihqpvt1ac0JCe/hb2j03OGX08k1Am2zBI78jImfK4=; b=aRcckZgOdWlBiKZYxtD0QByhMqaLm2iI1sBlCAexYCrRs4BdgmTfqVORXBRcS2TPrR 2jK4flHUVxwQc6IerfK6mBdwFaUTlHtA8J7gvhJFAIk/MpDGOjIgxh2sjFbA+kO85AWJ QnOynUj0zz4hJp5hhNQd2UpTpBx5afFIvrEhzkNCMwXLsh6cZX5dcVs3tewiYbZbpePC J8H2y1AT0GMVLQgy1ShI61BaavedFGRH7+51gVQFLiClq6msksCZ+pL8A25lnLKrNnXG R2wVHTv8J81kwlUuOc8D7MoHfJXso41elwdDks2RY/RFVQD1r7MA9XwnVyxh7x+TTDuV 05jg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u89-v6si22766730pfa.234.2018.05.24.19.30.04; Thu, 24 May 2018 19:30:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031890AbeEXQeT (ORCPT + 99 others); Thu, 24 May 2018 12:34:19 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:44250 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031321AbeEXQeQ (ORCPT ); Thu, 24 May 2018 12:34:16 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fLtBv-0004fM-Ft; Thu, 24 May 2018 10:34:15 -0600 Received: from [97.119.174.25] (helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fLtBt-0002w0-RJ; Thu, 24 May 2018 10:34:15 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Petr Tesarik Cc: Dave Young , dzickus@redhat.com, Neil Horman , Tony Luck , bhe@redhat.com, Michael Ellerman , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Schwidefsky , Benjamin Herrenschmidt , Hari Bathini , Cong Wang , Andrew Morton , Ingo Molnar , Vivek Goyal 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> Date: Thu, 24 May 2018 11:34:05 -0500 In-Reply-To: <20180524085708.31aa311d@ezekiel.suse.cz> (Petr Tesarik's message of "Thu, 24 May 2018 08:57:08 +0200") Message-ID: <87k1rt3tdu.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1fLtBt-0002w0-RJ;;;mid=<87k1rt3tdu.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=97.119.174.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+ycuM3FQvLSBvFgAGgMWYzMQfE+rx6VzQ= X-SA-Exim-Connect-IP: 97.119.174.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa02.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,XMSubLong autolearn=disabled version=3.4.0 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4997] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa02 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa02 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Petr Tesarik X-Spam-Relay-Country: X-Spam-Timing: total 1216 ms - load_scoreonly_sql: 0.07 (0.0%), signal_user_changed: 3.0 (0.2%), b_tie_ro: 1.99 (0.2%), parse: 1.30 (0.1%), extract_message_metadata: 54 (4.4%), get_uri_detail_list: 3.6 (0.3%), tests_pri_-1000: 26 (2.2%), tests_pri_-950: 2.3 (0.2%), tests_pri_-900: 1.84 (0.2%), tests_pri_-400: 67 (5.5%), check_bayes: 61 (5.0%), b_tokenize: 26 (2.2%), b_tok_get_all: 10 (0.9%), b_comp_prob: 5 (0.5%), b_tok_touch_all: 3.0 (0.2%), b_finish: 0.84 (0.1%), tests_pri_0: 1030 (84.7%), check_dkim_signature: 0.92 (0.1%), check_dkim_adsp: 16 (1.3%), tests_pri_500: 12 (1.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH] kdump: add default crashkernel reserve kernel config options X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Petr Tesarik writes: 2> 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. They absolutely can not be used in the kdump case. The kdump requirement is that they are pages no-one initiates any I/O to. To avoid the problem of devices doing DMA as the new kernel starts and runs. Secondarily to avoid problems with cpus that refused to halt. Eric