From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Hajnoczi Subject: Re: How to diagnose memory leak in kvm-qemu-0.14.0? Date: Fri, 20 May 2011 12:01:58 +0100 Message-ID: References: <20110518164429.GA20927@bytemark.co.uk> <20110519115734.GB3490@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: Steve Kemp Return-path: Received: from mail-gx0-f174.google.com ([209.85.161.174]:58437 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934304Ab1ETLB7 convert rfc822-to-8bit (ORCPT ); Fri, 20 May 2011 07:01:59 -0400 Received: by gxk21 with SMTP id 21so1250542gxk.19 for ; Fri, 20 May 2011 04:01:58 -0700 (PDT) In-Reply-To: <20110519115734.GB3490@bytemark.co.uk> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, May 19, 2011 at 12:57 PM, Steve Kemp wro= te: > On Thu May 19, 2011 at 09:40:41 +0100, Stefan Hajnoczi wrote: > >> You are exercising both networking and storage. =A0Have you cut the = test >> down to just wget vs cp/rm? =A0Also why the sleep 10? > > =A0I'm 99% certain the leak is coming from the virtio block device > =A0now. =A0A simple test is: > > =A0wget http://mirror.bytemark.co.uk/misc/test-files/500M > =A0while true; do cp 500M foo.img; rm foo.img; sleep 2; done > > =A0"top" shows the virt memory growing to >1gb in under two minutes. Were you able to track down the culprit? Stefan