From: Steve Kemp Subject: Re: How to diagnose memory leak in kvm-qemu-0.14.0? Date: Fri, 20 May 2011 15:52:46 +0100 Message-ID: <20110520145246.GN27422@bytemark.co.uk> References: <20110518164429.GA20927@bytemark.co.uk> <20110519115734.GB3490@bytemark.co.uk> <20110520114707.GG27422@bytemark.co.uk> <20110520134731.GK27422@bytemark.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Stefan Hajnoczi Return-path: Received: from egg.sh.bytemark.co.uk ([212.110.161.171]:55414 "EHLO egg.sh.bytemark.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572Ab1ETOwr (ORCPT ); Fri, 20 May 2011 10:52:47 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Fri May 20, 2011 at 15:32:34 +0100, Stefan Hajnoczi wrote: > > =A0virtio_blk_alloc_request 0.000 req=3D0x91e08f0 =A0-> Allocation = 1 > > =A0virtio_blk_alloc_request 77.659 req=3D0x9215650 =A0-> Allocation= 2 > > Are you sure this isn't the temporary one that is allocated but freed > immediately once the virtqueue is empty: Good catch. Adding traces above both the qemu_free() calls I can see that the allocation & freeing of VirtIOBlockReq structures is paired. Looks like I'm going to have to bite the bullet and do real allocatio= n tracking. Steve Kemp -- Bytemark Hosting http://www.bytemark.co.uk/ phone UK: 0845 004 3 004 Dedicated Linux hosts from 15ukp ($30) per month