From: Steve Kemp Subject: Re: How to diagnose memory leak in kvm-qemu-0.14.0? Date: Thu, 19 May 2011 12:00:06 +0100 Message-ID: <20110519110006.GC27605@bytemark.co.uk> References: <20110518164429.GA20927@bytemark.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Stefan Hajnoczi Return-path: Received: from nog.sh.bytemark.co.uk ([212.110.161.168]:56828 "EHLO nog.sh.bytemark.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547Ab1ESLAI (ORCPT ); Thu, 19 May 2011 07:00:08 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Thu May 19, 2011 at 09:40:41 +0100, Stefan Hajnoczi wrote: > You are exercising both networking and storage. Have you cut the test > down to just wget vs cp/rm? Both seem to leak; but the cp/rm leaks more. Which suggests to me that we're seeing a leak in the virtio block handling. > Also why the sleep 10? Just to keep the machine responsive! > If you are building qemu-kvm from source you might like to enable > tracing to track memory allocations in qemu-kvm. For full information > see qemu-kvm/docs/tracing.txt. Thanks that was a good read, and your wee recipe was very useful. I'm now rebuilding with tracing of virtio stuff to see if anything leaps out at me. > Feel free to contact me on #qemu (oftc) or #kvm (freenode) IRC if you > want some pointers, my nick is stefanha. Thanks a lot. Steve Kemp -- Bytemark Hosting http://www.bytemark.co.uk/ phone UK: 0845 004 3 004 Dedicated Linux hosts from 15ukp ($30) per month