<html>
<head>
<base href="https://bugs.dpdk.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - [dpdk-21.11.8]pvp_qemu_multi_paths_port_restart:perf_pvp_qemu_vector_rx_mac: performance drop about 23.5% when send small packets"
href="https://bugs.dpdk.org/show_bug.cgi?id=1212">1212</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[dpdk-21.11.8]pvp_qemu_multi_paths_port_restart:perf_pvp_qemu_vector_rx_mac: performance drop about 23.5% when send small packets
</td>
</tr>
<tr>
<th>Product</th>
<td>DPDK
</td>
</tr>
<tr>
<th>Version</th>
<td>20.11
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>vhost/virtio
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dev@dpdk.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>weix.ling@intel.com
</td>
</tr>
<tr>
<th>Target Milestone</th>
<td>---
</td>
</tr></table>
<p>
<div class="bz_comment_block">
<pre class="bz_comment_text">[Environment]
DPDK version: Use make showversion or for a non-released version: git remote -v
&& git show-ref --heads
20.11.8-rc1
Other software versions: QEMU-7.0.0.
OS: Ubuntu 22.04.1 LTS/Linux 5.15.45-051545-generic
Compiler: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)
Hardware platform: Intel(R) Xeon(R) Platinum 8280M CPU @ 2.70GHz
NIC hardware: Intel Ethernet Controller XL710 for 40GbE QSFP+ 1583
NIC firmware: i40e-2.22.18/9.20 0x8000d893 1.3353.0
[Test Setup]
Steps to reproduce
List the steps to reproduce the issue.
1.Bind 1 NIC port to vfio-pci
dpdk-devbind.py --force --bind=vfio-pci 0000:af:00.0
2.Start vhost-user:
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 28,29,30 -n 4 -a 0000:af:00.0
--file-prefix=vhost_2352949_20230407162534 --vdev
'net_vhost0,iface=vhost-net,queues=1' -- -i --nb-cores=1 --txd=1024 --rxd=1024
testpmd>set fwd mac
testpmd>start
3.Start VM0 with QEMU-7.0.0
taskset -c 20,21,22,23,24,25,26,27 /home/QEMU/qemu-7.0.0/bin/qemu-system-x86_64
-name vm0 -enable-kvm -pidfile /tmp/.vm0.pid -daemonize -monitor
unix:/tmp/vm0_monitor.sock,server,nowait -netdev
user,id=nttsip1,hostfwd=tcp:10.239.252.220:6000-:22 -device
e1000,netdev=nttsip1 -chardev socket,id=char0,path=./vhost-net -netdev
type=vhost-user,id=netdev0,chardev=char0,vhostforce -device
virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=true,mrg_rxbuf=off,rx_queue_size=1024,tx_queue_size=1024
-cpu host -smp 8 -m 16384 -object
memory-backend-file,id=mem,size=16384M,mem-path=/mnt/huge,share=on -numa
node,memdev=mem -mem-prealloc -chardev
socket,path=/tmp/vm0_qga0.sock,server,nowait,id=vm0_qga0 -device virtio-serial
-device virtserialport,chardev=vm0_qga0,name=org.qemu.guest_agent.0 -vnc :4
-drive file=/home/image/ubuntu2004.img
4.SSH VM0 and bind virtio-net to vfio-pci:
echo 0 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
echo 1024 >
/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/hugemodprobe vfio-pci
echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
dpdk-devbind.py --force --bind=vfio-pci 0000:00:04.0
5.Start testpmd in VM0:
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -- -i --nb-cores=1
--txd=1024 --rxd=1024
testpmd>set fwd mac
testpmd>start
6.Use pktgen to send packets, and record the throughput.
Show the output from the previous commands.
+--------------+----------------------+------------------+------------+----------------+
| FrameSize(B) | Mode | Throughput(Mpps) | % linerate |
Cycle |
+==============+======================+==================+============+================+
| 64 | virtio0.95 vector_rx | 4.314 | 7.247 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 128 | virtio0.95 vector_rx | 4.244 | 12.563 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 256 | virtio0.95 vector_rx | 4.576 | 25.262 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 512 | virtio0.95 vector_rx | 3.435 | 36.544 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 1024 | virtio0.95 vector_rx | 2.695 | 56.268 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 1280 | virtio0.95 vector_rx | 2.490 | 64.731 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 1518 | virtio0.95 vector_rx | 2.248 | 69.140 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
[Expected Result]
Explain what is the expected result in text or as an example output:
+--------------+----------------------+------------------+------------+----------------+
| FrameSize(B) | Mode | Throughput(Mpps) | % linerate |
Cycle |
+==============+======================+==================+============+================+
| 64 | virtio0.95 vector_rx | 5.642 | 9.478 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 128 | virtio0.95 vector_rx | 5.493 | 16.259 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 256 | virtio0.95 vector_rx | 5.004 | 27.620 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 512 | virtio0.95 vector_rx | 3.343 | 35.565 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 1024 | virtio0.95 vector_rx | 2.664 | 55.629 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 1280 | virtio0.95 vector_rx | 2.500 | 64.990 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
| 1518 | virtio0.95 vector_rx | 2.309 | 71.028 | Before
Restart |
+--------------+----------------------+------------------+------------+----------------+
Regression
Is this issue a regression: (Y/N) Y
Version the regression was introduced: Specify git id if known.
Bad commit id:
commit abfe2cb0b40b3ceeb44df642c9d28a06bdfc9fb4 (HEAD)
Author: Luca Boccassi <<a href="mailto:bluca@debian.org">bluca@debian.org</a>>
Date: Mon Nov 28 14:11:25 2022 +0000
Revert "mempool: fix get objects from mempool with cache"
As requested by the author
This reverts commit 26cb4c81b552594292f7c744afb904f01700dfe8.
</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1212">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</body>
</html>