qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Piotr Karbowski <piotr.karbowski@gmail.com>
Cc: jasowang@redhat.com, qemu-devel@nongnu.org,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] Enabling vhost-net cause insane high memory usage.
Date: Wed, 15 Jan 2014 10:41:00 +0800	[thread overview]
Message-ID: <20140115024100.GA29559@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <52CF2A0F.1060305@gmail.com>

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

  reply	other threads:[~2014-01-15  2:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-09 23:00 [Qemu-devel] Enabling vhost-net cause insane high memory usage Piotr Karbowski
2014-01-15  2:41 ` Stefan Hajnoczi [this message]
2014-01-15 10:03 ` Michael S. Tsirkin
2014-01-15 21:36   ` Piotr Karbowski
2014-01-15 21:44     ` Piotr Karbowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140115024100.GA29559@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=jasowang@redhat.com \
    --cc=mst@redhat.com \
    --cc=piotr.karbowski@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).