Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4339511imc; Mon, 25 Feb 2019 03:13:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IbWflasU0dA4Hq7iZkQcd9838OH4epNwpIqMrE743j2lwWe6cGgFgEclusMA7dbruOkm6dl X-Received: by 2002:a17:902:bb0b:: with SMTP id l11mr19790010pls.219.1551093218940; Mon, 25 Feb 2019 03:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551093218; cv=none; d=google.com; s=arc-20160816; b=iJU2wrqFTDMAXRJ4bgWoiIvVDuWHteu1uJYRT5VSa7OlzldoDL3eZxq8WqiSdeXkdP X+OSOXm9H/u7+lHh/8bQVBUux23FcOt7KxyqM8WvtlDX5KzXW2hGCYSgfceMpB1v3EtZ 11PaABI0zptMIxkajARQagJT/9DZkAK+n/TVxm8yIEu3p++1DE1DDTVoWk4nNnEV5hFY O9CmTcYN4sfOo3sEsydPeLjzbt/XdXdsnJj1l8IHMyzlO4EZ6devAD9InEB3RGRIjmbX B05sgPB0TQouAoRE2sIiOsMGBd+S5bI+UY6TNlX09SRRu/DNK8sqWjnuKCJLVWWKtnTN W9Cg== 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; bh=c9uRcvQUPviJyryHITXaWjjZul1zX9g4hpoxbimC9+U=; b=INDVYiqcbGbv566RSiewLgj2TYyjxL3/7erxcjF/IqeNqI6Q0tYeqhGY9EQ5ho1Y0i j9wCOCTmEPgkZZPSh0MqG4SQ3dMYC4xIV+2nLi5BSRm/xQqEp01P2coa9WIGGIXFHb4O LjdzZXbLCkGEa6ik/Y1paX6So4q1QQ75jGV1iTwrPfNQp2lXpxBpqew/GHanSZS+1Jrn XCBp0gBa+26VyhTBfdGq3QN5Ud/m5DMQhyHXUNU/3cWXIKBUb4l5IVFKE35xLFk2CYzu bzhuwjq44ZovlSKjLiDpWH1jWprbsLVWg9xdveNydiXBJyMHrhO0ZRZU3tRQz8bAJbXW mjgg== 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 r39si9933164pld.70.2019.02.25.03.13.10; Mon, 25 Feb 2019 03:13:38 -0800 (PST) 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 S1726765AbfBYLM0 (ORCPT + 99 others); Mon, 25 Feb 2019 06:12:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40680 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfBYLM0 (ORCPT ); Mon, 25 Feb 2019 06:12:26 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F0BB53082E20; Mon, 25 Feb 2019 11:12:25 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-140.pek2.redhat.com [10.72.12.140]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 647535C21E; Mon, 25 Feb 2019 11:12:20 +0000 (UTC) Date: Mon, 25 Feb 2019 19:12:16 +0800 From: Dave Young To: Joerg Roedel Cc: Borislav Petkov , bhe@redhat.com, Jerry Hoemann , x86@kernel.org, Randy Dunlap , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Pingfan Liu , Mike Rapoport , Andrew Morton , yinghai@kernel.org, vgoyal@redhat.com, iommu@lists.linux-foundation.org, konrad.wilk@oracle.com Subject: Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr Message-ID: <20190225111216.GA9276@dhcp-128-65.nay.redhat.com> References: <20190211204816.GB21473@dhcp-128-65.nay.redhat.com> <20190215102458.GD10433@zn.tnic> <20190218014820.GA10711@dhcp-128-65.nay.redhat.com> <20190220083241.GA3447@zn.tnic> <20190220094146.GA8597@dhcp-128-65.nay.redhat.com> <20190221171321.GD12997@zn.tnic> <20190222021101.GA11654@dhcp-128-65.nay.redhat.com> <20190222084241.GC8380@suse.de> <20190222130026.GA30766@zn.tnic> <20190225110043.GA5884@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190225110043.GA5884@suse.de> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Mon, 25 Feb 2019 11:12:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/25/19 at 12:00pm, Joerg Roedel wrote: > On Fri, Feb 22, 2019 at 02:00:26PM +0100, Borislav Petkov wrote: > > On Fri, Feb 22, 2019 at 09:42:41AM +0100, Joerg Roedel wrote: > > > The current default of 256MB was found by experiments on a bigger > > > number of machines, to create a reasonable default that is at least > > > likely to be sufficient of an average machine. > > > > Exactly, and this is what makes sense. > > > > The code should try the requested reservation and if it fails, it should > > try high allocation with default swiotlb size because we need to reserve > > *some* range. > > Right, makes sense. While at it, maybe it is time to move the default > allocation policy to 'high' again. The change was reverted six years ago > because it broke old kexec tools, but those are probably out-of-service > now. I think this change would make the whole crashdump allocation > process less fragile. One concern about this is for average cases, one do not need so much memory for kdump. For example in RHEL we use crashkernel=auto to automatically reserve kdump kernel memory, and for x86 the reserved size is like below now: 1G-64G:160M,64G-1T:256M,1T-:512M That means for a machine with less than 64G memory we only allocate 160M, it works for most machines in our lab. If we move to high as default, it will allocate 160M high + 256M low. It is too much for people who is good with the default 160M. Especially for virtual machine with less memory (but > 4G) To make the process less fragile maybe we can remove the 896M limitation and only try <4G then go to high. Thanks Dave