All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Piotr Karbowski <piotr.karbowski@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Enabling vhost-net cause insane high memory usage.
Date: Wed, 15 Jan 2014 12:03:53 +0200	[thread overview]
Message-ID: <20140115100353.GA2154@redhat.com> (raw)
In-Reply-To: <52CF2A0F.1060305@gmail.com>

On Fri, Jan 10, 2014 at 12:00:31AM +0100, Piotr Karbowski wrote:
> Hello,
> 
> 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.

Could you explain how you measure that exactly?

> 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
> 
> -- Piotr.

Yes, this should not happen.
One interesting thing to try would be switching device type from
virtio-net to e1000.

This means vhost will be initialized but not started.

-- 
MST

  parent reply	other threads:[~2014-01-15 10:04 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
2014-01-15 10:03 ` Michael S. Tsirkin [this message]
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=20140115100353.GA2154@redhat.com \
    --to=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.