From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3GPx-0005Yb-Mi for qemu-devel@nongnu.org; Tue, 14 Jan 2014 21:41:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3GPp-0008OS-9f for qemu-devel@nongnu.org; Tue, 14 Jan 2014 21:41:21 -0500 Received: from mail-ee0-x232.google.com ([2a00:1450:4013:c00::232]:48663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3GPp-0008N3-3U for qemu-devel@nongnu.org; Tue, 14 Jan 2014 21:41:13 -0500 Received: by mail-ee0-f50.google.com with SMTP id d17so581537eek.9 for ; Tue, 14 Jan 2014 18:41:12 -0800 (PST) Date: Wed, 15 Jan 2014 10:41:00 +0800 From: Stefan Hajnoczi Message-ID: <20140115024100.GA29559@stefanha-thinkpad.redhat.com> References: <52CF2A0F.1060305@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52CF2A0F.1060305@gmail.com> Subject: Re: [Qemu-devel] Enabling vhost-net cause insane high memory usage. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Piotr Karbowski Cc: jasowang@redhat.com, qemu-devel@nongnu.org, "Michael S. Tsirkin" On Fri, Jan 10, 2014 at 12:00:31AM +0100, Piotr Karbowski wrote: > kernel 3.12.5, qemu-1.7.0. > > With vhost=on, qemu shortly after start uses all its assigned memory > (2G for example), without vhost-net enabled it does not go to more > than 200 MB on my idling test virtual machine. 100% reproducable. I > think its not how it should be. > > Full command: > /usr/bin/qemu-system-x86_64 -machine accel=kvm -name _debian -usb > -machine accel=kvm -cpu host,level=9 -smp cpus=2 -vga std -monitor unix://home/piotr/src/vmninja/sockets/_debian.monitor.socket,server,nowait > -vnc unix://home/piotr/src/vmninja/sockets/_debian.vnc.socket -m > 2048 -boot order=d,menu=on -drive > if=ide,index=2,media=cdrom,id=virtcd -netdev > tap,id=if0,helper=/usr/libexec/qemu-bridge-helper --br=lebridge0 > -device virtio-net-pci,netdev=if0,mac=de:ee:b3:9e:a3:d5,romfile= > -drive > file=/home/piotr/virt/kvm/_debian.raw,if=virtio,cache=writeback How are you measuring memory usage? Please post the output of the command. Did previous kernel/qemu versions work better? Maybe Michael or Jason can give you hints on debugging this. Stefan