Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1843421imm; Thu, 24 May 2018 01:32:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrvUgMneX0AKvePaJKmMIQmYpy7VrA5w+tgQjOSUt7LIAHcpwnZpQ2455l+ml7WX/hu2Zij X-Received: by 2002:a62:ab10:: with SMTP id p16-v6mr6207801pff.211.1527150769031; Thu, 24 May 2018 01:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527150769; cv=none; d=google.com; s=arc-20160816; b=ZV8KXVm+lUhk7wFcYTNk3CAqlS6Ic7TYygrFXg7liSX+7OqDdAXIZOVXUDGv/gNsJy zCMt0qER+IgOvMy71dzwkietVo1nfcs/eCh3XtZYF+mbIqglEI1uSl+aZQT257p7Puap 3KhrrlvN8b497pryNh4KP1vuZNXjmIgGhALk8lQo3nvSsMR4faNRmKMaGLD1gaiCt8vi 8YrHmEe6WpY6LV/JC3D3Ilnl6PPC755hg3zlY5otA71/Mu7WMU+guMrSFmFImzH9fMef m8c5U9f/IBveJzKKGObq5EUDizR4THvKUZR9S420ROHjZX3bFp17wqmLbWPgtY8HEk7m IvIw== 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=LeafbwGnhfZV/iX+TZATTwwSR3rTMo618+ywy4E0vUs=; b=XbYOd4bLjKFOrCGZ5amMGOL453RxLZcjNYkNMDW1r4R7QT0Zu8Sz2IIptdx9AxsJAU 0Uct7M63+x3bG0Z4oIoelzY/92MWTVVQE/mi03AhWmjiF9aZs6brDi0PzZaZHjHDVvnP ZpFYBb0ILOvC1u4X4B9zXvUrHq3DDxjMZEpERAcedKVQs4vWPaKIy5BjFPTYfl7bxBi0 0XBVe8MrRPUqvLGJDwaHa2oX0XCRWXLj54m7k/3UvsI5b7M27O/FeRfvsUAcqjZoKtXD C5zOQVgNpugVrBegishoDdOu2IUtAyculWRVpoixgUr1u45Kkw66bvr/fZvTiEHVlEAm O1jw== 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 p23-v6si16215121pgv.153.2018.05.24.01.31.53; Thu, 24 May 2018 01:32:48 -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 S965430AbeEXIaI (ORCPT + 99 others); Thu, 24 May 2018 04:30:08 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:55688 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965175AbeEXI36 (ORCPT ); Thu, 24 May 2018 04:29:58 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 12376BB408; Thu, 24 May 2018 08:29:58 +0000 (UTC) Received: from localhost (ovpn-8-17.pek2.redhat.com [10.72.8.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 11BDD8445F; Thu, 24 May 2018 08:29:54 +0000 (UTC) Date: Thu, 24 May 2018 16:29:51 +0800 From: Baoquan He To: Dave Young Cc: Petr Tesarik , 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: <20180524082951.GG24627@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> <20180524072627.GA1940@dhcp-128-65.nay.redhat.com> <20180524075615.GC1940@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524075615.GC1940@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 24 May 2018 08:29:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 24 May 2018 08:29:58 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.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 03:56pm, Dave Young wrote: > > > > 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. > > > > Good suggestion. I have been reading that posts already at the same time before I saw > > this reply from you :) > > > > That could be a good idea and worth to discuss more. I cced Hari > > already in the thread. Hari, is it possible for you to extend your > > idea to general use, ie. shared by both kdump and fadump? Anyway I > > think that is another topic we can discuss separately. > > BTW, I remember we had some Red hat internal discussion about CMA previously > there is a problem, that is we have crashkernel=,high for reserving high > memory and ,low for low memory, we were not sure if CMA can handle this > case. Pratyush ever investigated this too see if CMA can be used so that we can dynamically adjust the crashkernel memory after boot. The result is CMA is not good. I doubt fadump can really make use of CMA to reserve crashkernel. Thanks Baoquan