From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBgMw-00068r-BK for qemu-devel@nongnu.org; Mon, 06 Nov 2017 07:19:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBgMn-0004uw-2g for qemu-devel@nongnu.org; Mon, 06 Nov 2017 07:19:10 -0500 Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:48823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBgMm-0004un-Ub for qemu-devel@nongnu.org; Mon, 06 Nov 2017 07:19:01 -0500 Received: by mail-oi0-x22a.google.com with SMTP id m198so6895876oig.5 for ; Mon, 06 Nov 2017 04:19:00 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <80415da5-4eef-bf85-b617-fadc3dae4475@redhat.com> <20171106115931.GB3898@lemon> From: Wanpeng Li Date: Mon, 6 Nov 2017 20:18:59 +0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] qemu core file size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Fam Zheng , Alexey Kardashevskiy , "qemu-devel@nongnu.org Developers" 2017-11-06 20:02 GMT+08:00 Paolo Bonzini : > On 06/11/2017 12:59, Fam Zheng wrote: >>>> 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? > > My guess would have been fragmented heap. The core file, unlike the > RSS, includes all the mmaped memory (e.g. from shared libraries) that > has never been used. > > For example, all the Ceph/Gluster/PulseAudio/SPICE/whatever libraries > are included in the core file but likely are not in the RSS. Do you mean not use Memory API will avoid the fragmented heap? Regards, Wanpeng Li