From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 806] Throughput with dpdk + vhost-user + vIOMMU is lower with it's first connection
Date: Fri, 03 Sep 2021 06:46:49 +0000 [thread overview]
Message-ID: <bug-806-3@http.bugs.dpdk.org/> (raw)
https://bugs.dpdk.org/show_bug.cgi?id=806
Bug ID: 806
Summary: Throughput with dpdk + vhost-user + vIOMMU is lower
with it's first connection
Product: DPDK
Version: 20.11
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: pezhang@redhat.com
Target Milestone: ---
Versions:
OS:RHEl8
DPDK:
We tested dpdk 19.11, 20.11. Both hit this issue.
Kernel:
4.18
Qemu:
6.0
Steps:
1. In the host, boot testpmd with iommu enabled
/home/dpdk-stable/build/app/testpmd \
-l 2,4,6,8,10,12,14,16,18 \
--socket-mem 1024,1024 \
-n 4 \
--vdev
'net_vhost0,iface=/tmp/vhost-user1,queues=2,client=1,iommu-support=1' \
--vdev
'net_vhost1,iface=/tmp/vhost-user2,queues=2,client=1,iommu-support=1' \
-b 0000:3b:00.0 -b 0000:3b:00.1 \
-d /home/dpdk-stable/build/lib/librte_pmd_vhost.so \
-- \
--portmask=f \
-i \
--rxd=512 --txd=512 \
--rxq=2 --txq=2 \
--nb-cores=8 \
--forward-mode=io
testpmd> set portlist 0,2,1,3
testpmd> start
2. Boot VM with vhost-user with iommu enabled
<interface type="vhostuser">
<mac address="88:66:da:5f:dd:02" />
<source mode="server" path="/tmp/vhost-user1" type="unix" />
<model type="virtio" />
<driver ats="on" iommu="on" name="vhost" queues="2" rx_queue_size="1024"
/>
<address bus="0x6" domain="0x0000" function="0x0" slot="0x00" type="pci"
/>
</interface>
<interface type="vhostuser">
<mac address="88:66:da:5f:dd:03" />
<source mode="server" path="/tmp/vhost-user2" type="unix" />
<model type="virtio" />
<driver ats="on" iommu="on" name="vhost" queues="2" rx_queue_size="1024"
/>
<address bus="0x7" domain="0x0000" function="0x0" slot="0x00" type="pci"
/>
</interface>
3. In VM, start testpmd to receive/send packets
4. In another server, start Moongen as the packets generator.
5. Check the throughput value, it's very low.
Additional info:
1. Disabling viommu, we can get expected throughput.
--
You are receiving this mail because:
You are the assignee for the bug.
reply other threads:[~2021-09-03 6:46 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=bug-806-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--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).