Received: from eggs.gnu.org ([2001:4830:134:3::10]:45618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTjfh-0000AN-N3 for qemu-devel@nongnu.org; Fri, 28 Mar 2014 23:11:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTjfX-0001zm-Kk for qemu-devel@nongnu.org; Fri, 28 Mar 2014 23:11:01 -0400 Received: from indium.canonical.com ([91.189.90.7]:59829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTjfX-0001zS-EZ for qemu-devel@nongnu.org; Fri, 28 Mar 2014 23:10:51 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1WTjfW-0002pm-OD for ; Sat, 29 Mar 2014 03:10:50 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id AA44D2E80C8 for ; Sat, 29 Mar 2014 03:10:50 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 29 Mar 2014 03:02:23 -0000 From: Aidan Gauland Sender: bounces@canonical.com References: <20140306085506.13520.47301.malonedeb@gac.canonical.com> Message-Id: <20140329030223.30334.16982.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1288620] Re: memory leak with default NIC model Reply-To: Bug 1288620 <1288620@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I have been able to consistently reproduce the bug again, and have run QEMU with Valgrind until OOM. It is unrelated to networking; it is caused by loading a config file. I ran QEMU from Git commit 7f6613cedc59fa849105668ae971dc31004bca1c under valgrind via... valgrind qemu-system-x86_64 -readconfig windows8_throwaway_VM.conf -m 1G -vga std 2>&1 | tee valgrind.log ...where the contents of windows8_throwaway_VM.conf is... [drive] file =3D "windows8_throwaway_HDD.img" index =3D "0" media =3D "disk" if =3D "virtio" [net] type =3D "nic" vlan =3D "0" model =3D "virtio" [net] type =3D "user" vlan =3D "0" [rtc] base =3D "localtime" [machine] accel =3D "kvm" (I will attach the file in a separate comment, because launchpad appears to only allow at most one attachment per comment.) It does not seem to matter whether VirtIO is used, as I have had this problem when not using any VirtIO devices, but the Windows guest I had on-hand was already using it. If I invoke QEMU with the equivalent settings all via the command line, it does not gobble memory (again, regardless of VirtIO). qemu-system-x86_64 -drive file=3Dwindows8_throwaway_HDD.img,index=3D0,media=3Ddisk,if=3Dvirtio -enabl= e-kvm -m 1G -vga std -net nic,vlan=3D0,model=3Dvirtio -net user,vlan=3D0 -rtc localtime ** Attachment added: "valgrind.log" https://bugs.launchpad.net/qemu/+bug/1288620/+attachment/4049961/+files/= valgrind.log -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1288620 Title: memory leak with config file Status in QEMU: New Bug description: I have a Windows 7 SP1 Professional 64-bit installation on a QCOW2 image with compat=3D1.1, which I launch via qemu-system-x86_64 -drive file=3Dwindows_base_HDD.img,index=3D0,media=3Dd= isk -enable-kvm -m 512M -vga std -net nic,vlan=3D0 -net user,vlan=3D0 As soon as I start using the network in any application =E2=80=94 for exa= mple, visiting www.google.com in Internet Explorer =E2=80=94 QEMU starts gobbli= ng memory until the (host) kernel kills it because of an OOM condition. If I run the QEMU with the same options, but with model=3De1000 option set for the NIC (i.e. -net -nic,vlan=3D0,model=3De1000), I can use the network from the guest OS without any noticeable effect on QEMU's memory consumption. I do not have this problem when running QEMU with the exact same options = (as above, without model=3De1000) but with a Debian wheezy installation (on= a QCOW image of the same format). My host system in Ubuntu 13.10 x86_64, = kernel image 3.11.0-17-generic, but with the QEMU packages from trusty (the= codename for the next release): Output of `dpkg -l \*qemu\* | grep '^ii'`: ii ipxe-qemu 1.0.0+git-20130710.936134e-0ubu= ntu1 all Virtual package to support use of kvm-ipxe with qe= mu ii qemu-keymaps 1.7.0+dfsg-3ubuntu2 = all QEMU keyboard maps ii qemu-system-common 1.7.0+dfsg-3ubuntu2 = amd64 QEMU full system emulation binaries (common files) ii qemu-system-x86 1.7.0+dfsg-3ubuntu2 = amd64 QEMU full system emulation binaries (x86) ii qemu-utils 1.7.0+dfsg-3ubuntu2 = amd64 QEMU utilities (If necessary, I can try to reproduce this with QEMU built from the upstream source or the latest source from version control.) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1288620/+subscriptions