Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7121953ybi; Thu, 13 Jun 2019 09:57:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdDMcqxuIBKmn5JmyDcaCpU45eYquDKCo0evZkodwsLBZrYCzfEbyEQagAsy002JTXsXwG X-Received: by 2002:a63:4c1c:: with SMTP id z28mr31447856pga.122.1560445030384; Thu, 13 Jun 2019 09:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560445030; cv=none; d=google.com; s=arc-20160816; b=Y7E+ofLAuTwJW0dQguMriTaP1jt3PKZV9Oo+ficBG1n7SjnpaqRnM/0X1mkYZ9ltPT Pj+vPkaoKV0xYTBu8Fs69N+mhgehV7XfFE+mpTrWo5bTRCtpZ+D6rt88T5RJbHqjpYCu DT8oOMT09Gkfznq7oLFxGtyE34ZZLacznn2/ezLBk1Cj1IodZziuAl+N578YlZs2xhr7 wrsrATJVOsOGJFGwNp1YODZUTFpmm54HzZM1b+vR/VYSs+fw5I8mvEreadCXtocYcnbN hyABpy6ZKUdMvDbHxIOmC9KLt3c9zwHnvz+MseNNIjTvD26WQ5lLMcI8IAHK7FeM7I0M Lu4Q== 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=MmOjigMjOBVphbSDOik3d7WL9NjwMhcvlHvZGh88wa4=; b=IZNT29oVz6nUeqMZ9j2GKqnnKNk7Fm2CtVZrC2ShsrFTuOijsB1ttndqIhS+/4VvCr 324k8Gw9EOJu/GMgpFA1GXt7yKbfhT95BseUCeyfmbGQw5EiooMNGeS5lN2koXSoDazX wHk0ZO8ZjVamTCsrwXaB0TFA/Dv6eBXEfT1RQJ8WidB8GEWtJWxjF2IqjlL9nDXFbJl7 UhLGxRH4ruEUGOhkjxhy8/Y+j5ibGtzw6Uks+KNTgiJGLU2i1/GuE/SO/45EzKG5xw0U 1lBVL8FfCryKKCPwnktsk0Bv07LOz88Aa6y+20c24PuY4wDmKF74sHM5P3DcKvfrOT9K kLrA== 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 c15si210948pgm.421.2019.06.13.09.56.56; Thu, 13 Jun 2019 09:57:10 -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 S1730024AbfFMQ4y (ORCPT + 99 others); Thu, 13 Jun 2019 12:56:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59558 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729955AbfFMBSO (ORCPT ); Wed, 12 Jun 2019 21:18:14 -0400 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 B6C07307C940; Thu, 13 Jun 2019 01:18:13 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-87.pek2.redhat.com [10.72.12.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 88DD65C298; Thu, 13 Jun 2019 01:18:08 +0000 (UTC) Date: Thu, 13 Jun 2019 09:18:04 +0800 From: "dyoung@redhat.com" To: Borislav Petkov Cc: "Lendacky, Thomas" , Baoquan He , lijiang , "linux-kernel@vger.kernel.org" , "kexec@lists.infradead.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "akpm@linux-foundation.org" , "dave.hansen@linux.intel.com" , "luto@kernel.org" , "peterz@infradead.org" , "x86@kernel.org" , "hpa@zytor.com" Subject: Re: [PATCH 0/3 v11] add reserved e820 ranges to the kdump kernel e820 table Message-ID: <20190613011804.GA27786@dhcp-128-65.nay.redhat.com> References: <20190608035451.GB26148@MiWiFi-R3L-srv> <20190608091030.GB32464@zn.tnic> <20190608100139.GC26148@MiWiFi-R3L-srv> <20190608100623.GA9138@zn.tnic> <20190608102659.GA9130@MiWiFi-R3L-srv> <20190610113747.GD5488@zn.tnic> <20190612015549.GI26148@MiWiFi-R3L-srv> <20190612151033.GJ32652@zn.tnic> <3dfa5985-008a-20d8-5171-cfe96807c303@amd.com> <20190612180724.GP32652@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612180724.GP32652@zn.tnic> User-Agent: Mutt/1.11.3 (2019-02-01) 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]); Thu, 13 Jun 2019 01:18:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/12/19 at 08:07pm, Borislav Petkov wrote: > On Wed, Jun 12, 2019 at 04:52:22PM +0000, Lendacky, Thomas wrote: > > I think the discussion ended up being that debuginfo wasn't being stripped > > from the kernel and initrd (mainly the initrd). What are the sizes of > > the kernel and initrd that you are loading for kdump via kexec? > > > > From previous post: > > kexec -s -p /boot/vmlinuz-5.2.0-rc3+ --initrd=/boot/initrd.img-5.2.0-rc3+ > > You mean those sizes? > > $ ls -lh /boot/vmlinuz-5.2.0-rc3+ /boot/initrd.img-5.2.0-rc3+ > -rw-r--r-- 1 root root 7.8M Jun 10 12:53 /boot/initrd.img-5.2.0-rc3+ > -rw-r--r-- 1 root root 6.7M Jun 10 12:53 /boot/vmlinuz-5.2.0-rc3+ > > That should fit easily in 256M :) The final used size is uncompressed size, for example in my case: $ ls -lth arch/x86/boot/bzImage -rw-rw-r-- 1 dyoung dyoung 6.3M May 24 11:19 arch/x86/boot/bzImage $ ls -lth arch/x86/boot/compressed/vmlinux.bin -rwxrwxr-x 1 dyoung dyoung 25M May 24 11:19 arch/x86/boot/compressed/vmlinux.bin The vmlinuz is 6.3M, uncompressed kernel is about 25M, since yours bzImage is 7.8M, I would expect the final size is around 29M for initramfs, you can check it by: $ ls -lth /boot/initramfs-5.0.9-301.fc30.x86_64kdump.img -rw------- 1 root root 16M May 28 08:59 /boot/initramfs-5.0.9-301.fc30.x86_64kdump.img $ mkdir tmp $ cd tmp $ sudo lsinitrd --unpack /boot/initramfs-5.0.9-301.fc30.x86_64kdump.img $ du -hs . 46M . You can see my kdump initrd is 46M after unpacking. > > -- > Regards/Gruss, > Boris. > > Good mailing practices for 400: avoid top-posting and trim the reply. Thanks Dave