Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp446928ybl; Mon, 12 Aug 2019 19:51:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuAdte7NNXjw5dWxXVD1+1lyhbuh/NLUSiJQcXscQntuSen7DgRmUzyksw7fTim3kpyOlf X-Received: by 2002:a17:90a:ad86:: with SMTP id s6mr158480pjq.42.1565664677863; Mon, 12 Aug 2019 19:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565664677; cv=none; d=google.com; s=arc-20160816; b=JFlatPyaQJdak0Qvu2fd1T8t0QF0PFSmxd/zx9/1UDhvRE3Ow+9HGGf+eYrt4KitdV aWz4A+XgPwzhyxAoCTikRQYXk6OemKB1iGF1Z1d1RGujCzFW8Uxnrc/9gWs0imePG9Xx oMjMrQm6Jgcew1O61HBex/QttO0qqRrlbt8KziHclG0e6qy1cXPN9ywLAwchiOOBvEh5 Yd7hYBYwFE+sOPV/xNTd67sfDK5UrHVXhc0tZn8tJjNObI5ItHIwJhcjrdCBfDUIODk6 XQQsjN6oUKMKiYhCxfWwMKqa1LyWpssluFcQGuuRA6Ks06ZxTxQoplEK185u8qxl4n0z h3yg== 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=OkDbugzmomkEpIz9wKfDxcM3FlWVRLr/IPO0uLTcS88=; b=OIpyww82aCPC4VPO3CBISUlG8iWsI6YMNEmFnTREXFPp3ZiKfahWdpWgTave2ASqEq qxWdXY5UrGcz6VrarAcgEx8GvaSRlGJgrK4Ns3k6JwyHJOiblWsWJCuwtFm054NixMd0 iqNcW4apHQmptwpf12yZxsgGieQxY+mWL0Rmfg7Jr58G25mISi/FMVaRNPmybSre6DlX ebtMc5k1cUNvSgVTRfYRs3yz3X1+FwdZ7GLi56ZTN1QoNEMu+8yuGkIAjVKFP3HbKRa8 EbBtVDSBrkbZuB/8CzbQslEFHcehDTyr3cBf6TGObo/ALUsnCFSy/Dlm8xBbigUkXO0G UrxA== 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 124si64206155pgb.11.2019.08.12.19.51.00; Mon, 12 Aug 2019 19:51:17 -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 S1726640AbfHMCqJ (ORCPT + 99 others); Mon, 12 Aug 2019 22:46:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33106 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbfHMCqI (ORCPT ); Mon, 12 Aug 2019 22:46:08 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 74F6CC0022F1; Tue, 13 Aug 2019 02:46:08 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-72.pek2.redhat.com [10.72.12.72]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 72D3A7E466; Tue, 13 Aug 2019 02:46:04 +0000 (UTC) Date: Tue, 13 Aug 2019 10:46:00 +0800 From: Dave Young To: Michal Hocko Cc: Paul Menzel , linux-pci@vger.kernel.org, =?iso-8859-1?Q?J=F6rg_R=F6del?= , "x86@kernel.org" , kexec@lists.infradead.org, Linux Kernel Mailing List , iommu@lists.linux-foundation.org, kasong@redhat.com, lijiang@redhat.com, Donald Buczek Subject: Re: Crash kernel with 256 MB reserved memory runs into OOM condition Message-ID: <20190813024600.GA2944@dhcp-128-65.nay.redhat.com> References: <20190812095029.GE5117@dhcp22.suse.cz> <20190813024317.GA2862@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190813024317.GA2862@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 13 Aug 2019 02:46:08 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add more cc. On 08/13/19 at 10:43am, Dave Young wrote: > Hi, > > On 08/12/19 at 11:50am, Michal Hocko wrote: > > On Mon 12-08-19 11:42:33, Paul Menzel wrote: > > > Dear Linux folks, > > > > > > > > > On a Dell PowerEdge R7425 with two AMD EPYC 7601 (total 128 threads) and > > > 1 TB RAM, the crash kernel with 256 MB of space reserved crashes. > > > > > > Please find the messages of the normal and the crash kernel attached. > > > > You will need more memory to reserve for the crash kernel because ... > > > > > [ 4.548703] Node 0 DMA free:484kB min:4kB low:4kB high:4kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:568kB managed:484kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB > > > [ 4.573612] lowmem_reserve[]: 0 125 125 125 > > > [ 4.577799] Node 0 DMA32 free:1404kB min:1428kB low:1784kB high:2140kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:15720kB writepending:0kB present:261560kB managed:133752kB mlocked:0kB kernel_stack:2496kB pagetables:0kB bounce:0kB free_pcp:212kB local_pcp:212kB free_cma:0kB > > > > ... the memory is really depleted and nothing to be reclaimed (no anon. > > file pages) Look how tht free memory is below min watermark (node zone DMA has > > lowmem protection for GFP_KERNEL allocation). > > We found similar issue on our side while working on kdump on SME enabled > systemd. Kairui is working on some patches. > > Actually on those SME/SEV enabled machines, swiotlb is enabled > automatically so at least we need extra 64M+ memory for kdump other > than the normal expectation. > > Can you check if this is also your case? The question is to Paul, also it would be always good to cc kexec mail list for kexec and kdump issues.