From: Steve Kemp Subject: Re: How to diagnose memory leak in kvm-qemu-0.14.0? Date: Thu, 19 May 2011 12:57:34 +0100 Message-ID: <20110519115734.GB3490@bytemark.co.uk> References: <20110518164429.GA20927@bytemark.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: kvm@vger.kernel.org Return-path: Received: from nog.sh.bytemark.co.uk ([212.110.161.168]:35824 "EHLO nog.sh.bytemark.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755685Ab1ESL5f (ORCPT ); Thu, 19 May 2011 07:57:35 -0400 Received: from bytemail.bytemark.co.uk ([212.110.161.227]) by nog.sh.bytemark.co.uk with esmtp (Exim 4.69) (envelope-from ) id 1QN1rC-0003kx-ET for kvm@vger.kernel.org; Thu, 19 May 2011 12:57:34 +0100 Received: from steve by bytemail.bytemark.co.uk with local (Exim 4.72) (envelope-from ) id 1QN1rC-0002d4-BW for kvm@vger.kernel.org; Thu, 19 May 2011 12:57:34 +0100 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? Also why the sleep 10? I'm 99% certain the leak is coming from the virtio block device now. A simple test is: wget http://mirror.bytemark.co.uk/misc/test-files/500M while true; do cp 500M foo.img; rm foo.img; sleep 2; done "top" shows the virt memory growing to >1gb in under two minutes. Steve Kemp -- Bytemark Hosting http://www.bytemark.co.uk/ phone UK: 0845 004 3 004 Dedicated Linux hosts from 15ukp ($30) per month