DPDK patches and discussions
 help / color / mirror / Atom feed
From: Tonghao Zhang <xiangxia.m.yue@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] vhost-user performance.
Date: Wed, 10 Jan 2018 22:26:11 +0800	[thread overview]
Message-ID: <CAMDZJNVVrQt6k+YRFJjhscaxJhnWC7P39CT0qQ-3i_cYbHFtuQ@mail.gmail.com> (raw)

hi,
I tested the vhost-user, but i dont get a better performance.
The test case is VM2VM which are in the same host.

if we use the vhost-net in kernel, we get a 20 Gbits/sec throughput,
but vhost-user is only 5Gits/sec.

vhost-net:
qemu-system-x86_64 -enable-kvm -m 1G -smp 4 \
-cpu host \
-netdev tap,ifname=tap0,id=hostnet0,vhost=on,script=no,downscript=no
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:02:d9:01 \
-mem-prealloc \
-display none -nographic \
/root/zth/local/qemu-img/__centos7_base.img

vhost-user:
qemu-system-x86_64 -enable-kvm -m 1G -smp 1 \
-chardev socket,id=char1,path=/tmp/dpdkvhostclient0,server \
-netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce \
-device virtio-net-pci,netdev=mynet1,mac=52:54:00:02:d9:01 \
-object memory-backend-file,id=mem0,size=1G,mem-path=/dev/hugepages,share=on \
-numa node,memdev=mem0,nodeid=0 \
-monitor unix:/var/run/qemu.sock,server,nowait \
-mem-prealloc \
-display none -nographic \
/root/zth/local/qemu-img/__centos7_base.img


The vhost-user does't do better in the VM2VM case ?

                 reply	other threads:[~2018-01-10 14:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAMDZJNVVrQt6k+YRFJjhscaxJhnWC7P39CT0qQ-3i_cYbHFtuQ@mail.gmail.com \
    --to=xiangxia.m.yue@gmail.com \
    --cc=dev@dpdk.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).