DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] vhost-user performance.
@ 2018-01-10 14:26 Tonghao Zhang
  0 siblings, 0 replies; only message in thread
From: Tonghao Zhang @ 2018-01-10 14:26 UTC (permalink / raw)
  To: dev

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 ?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-10 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-10 14:26 [dpdk-dev] vhost-user performance Tonghao Zhang

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