From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Possible memory leak in qemu-dm (qemu-dm swapping 20GB+, adding 2gb+ per day) Date: Wed, 26 Mar 2014 17:01:59 +0200 Message-ID: <20140326150159.GF3200@reaktio.net> References: <5330E500.6020906@crc.id.au> <20140325070913.GC3200@reaktio.net> <1395743334.6294.37.camel@kazak.uk.xensource.com> <53315EE5.7050803@crc.id.au> <1395745431.6294.46.camel@kazak.uk.xensource.com> <533165A3.20605@citrix.com> <5332646C.4040905@crc.id.au> <1395824223.29683.20.camel@dagon.hellion.org.uk> <5332994A.5080203@crc.id.au> <1395826894.22808.15.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1395826894.22808.15.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Andrew Cooper , Steven Haigh , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Mar 26, 2014 at 09:41:34AM +0000, Ian Campbell wrote: > On Wed, 2014-03-26 at 20:09 +1100, Steven Haigh wrote: > > On 26/03/14 19:57, Ian Campbell wrote: > > > On Wed, 2014-03-26 at 16:23 +1100, Steven Haigh wrote: > > >> Valgrind log available here: > > >> http://xen.crc.id.au/bugs/view.php?id=3D25 > > > = > > > Thanks. > > > = > > > Before we go any further, can you confirm that you have this commit in > > > your qemu-xen-traditional tree: > > > commit 96b58a44756a8821c108358439b0f2c06e531159 > > > Author: Matthew Daley > > > Date: Wed Dec 4 15:16:18 2013 +1300 > > > = > > > xen_disk: fix memory leak > > > = > > > On ioreq_release the full ioreq was memset to 0, losing a= ll the data > > > and memory allocations inside the QEMUIOVector, which lea= ds to a > > > memory leak. Create a new function to specifically reset = ioreq. > > > = > > > Reported-by: Maik Wessler > > > Signed-off-by: Roger Pau Monn=E9 > > > Signed-off-by: Stefano Stabellini > > > = > > > Backport to qemu-xen-traditional. > > > = > > > Signed-off-by: Matthew Daley > > > Acked-by: Ian Jackson > > > = > > >> Do you have any further suggestions / ideas based on this? > > > = > > > Unfortunately the qemu-dm binary seems to have been stripped, which > > > removes much of the useful info from the traces. Please can you make > > > sure you have the following commit to the qemu-xen-traditional tree: > > > commit 18a08a23da88863435d56a0b14ff72013ef3b003 > > > Author: Olaf Hering > > > Date: Tue Oct 15 11:42:26 2013 +0200 > > > = > > > qemu-traditional: do not strip binaries during make insta= ll > > > = > > > It is wrong to strip code during make install, unless exp= licit > > > requested. Introduce a new variable INSTALL_PROG and use = it along with > > > an optional STRIP_OPT where currently install -s -m 755 i= s used. > > > This is what upstream qemu offers in version 1.6. > > > = > > > Signed-off-by: Olaf Hering > > > = > > = > > I am using the qemu-xen-traditional that comes with xen-4.2.3.tar.gz > = > And have you confirmed that this does or does not contain the above fix? > = http://xenbits.xen.org/gitweb/?p=3Dqemu-xen-4.2-testing.git;a=3Dsummary So qemu-traditional in Xen 4.2.3 does NOT have the fix. The fix is included in Xen 4.2.4. -- Pasi