From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBg43-00080j-7T for qemu-devel@nongnu.org; Mon, 06 Nov 2017 06:59:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBg3z-0003Uw-AH for qemu-devel@nongnu.org; Mon, 06 Nov 2017 06:59:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58800) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eBg3z-0003U9-4D for qemu-devel@nongnu.org; Mon, 06 Nov 2017 06:59:35 -0500 Date: Mon, 6 Nov 2017 19:59:31 +0800 From: Fam Zheng Message-ID: <20171106115931.GB3898@lemon> References: <80415da5-4eef-bf85-b617-fadc3dae4475@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] qemu core file size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Wanpeng Li , Alexey Kardashevskiy , "qemu-devel@nongnu.org Developers" On Mon, 11/06 11:26, Paolo Bonzini wrote: > On 06/11/2017 11:01, Wanpeng Li wrote: > > 2017-11-06 17:41 GMT+08:00 Paolo Bonzini : > >> On 06/11/2017 10:11, Wanpeng Li wrote: > >>> Hi all, > >>> > >>> qemu core dump, max_core="unlimited", dump_guest_core=0, kill -11 pid > >>> to generate a qemu core file, the Rss of qemu itself is ~40MB, the > >>> core file is almost ~40MB in centos 6.x, but ~400MB in cents 7.x, any > >>> idea? > >> > >> My suspicion is the memory API, which isn't used in CentOS 6.x. QEMU > >> 2.11 should fix that. > > > > Could you point out the patchset for the fix? > > Between 447b0d0b9ee8a0ac216c3186e0f3c427a1001f0c and > 092aa2fc65b7a35121616aad8f39d47b8f921618. Not sure how these relate to the core size, but I've tested upstream (ec7a8bf0b8f7dc7288fe8745464ee8217528cc6c) and with dump-guest-core=off the core file is 363M, still significantly larger than rss (~73M). What is bloating the core file? Fam