From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
by inbox.dpdk.org (Postfix) with ESMTP id 7645B42AD5;
Thu, 11 May 2023 10:11:41 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
by mails.dpdk.org (Postfix) with ESMTP id 67E8442D5E;
Thu, 11 May 2023 10:11:41 +0200 (CEST)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
by mails.dpdk.org (Postfix) with ESMTP id 627B442D5D
for ; Thu, 11 May 2023 10:11:39 +0200 (CEST)
Received: by inbox.dpdk.org (Postfix, from userid 33)
id 4B7DB42AD6; Thu, 11 May 2023 10:11:39 +0200 (CEST)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: =?UTF-8?B?W0J1ZyAxMjI4XSBbZHBkay0yMS4xMS40XXB2cF9xZW11X211bHRp?=
=?UTF-8?B?X3BhdGhzX3BvcnRfcmVzdGFydDpwZXJmX3B2cF9xZW11X3ZlY3Rvcl9yeF9t?=
=?UTF-8?B?YWM6IHBlcmZvcm1hbmNlIGRyb3AgYWJvdXQgMjMuNSUgd2hlbiBzZW5kIHNt?=
=?UTF-8?B?YWxsIHBhY2tldHM=?=
Date: Thu, 11 May 2023 08:11:39 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: DPDK
X-Bugzilla-Component: vhost/virtio
X-Bugzilla-Version: 21.11
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: weix.ling@intel.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: Normal
X-Bugzilla-Assigned-To: dev@dpdk.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
op_sys bug_status bug_severity priority component assigned_to reporter
target_milestone
Message-ID:
Content-Type: multipart/alternative; boundary=16837926990.AFa56Ae.2706079
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
MIME-Version: 1.0
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dev-bounces@dpdk.org
--16837926990.AFa56Ae.2706079
Date: Thu, 11 May 2023 10:11:39 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
https://bugs.dpdk.org/show_bug.cgi?id=3D1228
Bug ID: 1228
Summary: [dpdk-21.11.4]pvp_qemu_multi_paths_port_restart:perf_p
vp_qemu_vector_rx_mac: performance drop about 23.5%
when send small packets
Product: DPDK
Version: 21.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: vhost/virtio
Assignee: dev@dpdk.org
Reporter: weix.ling@intel.com
Target Milestone: ---
[Environment]
DPDK version:=20
Use make showversion or for a non-released version: git remote -v && git
show-ref --heads
21.11.4-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=3Dvfio-pci 0000:18:00.0
2.View the numa node of the NIC port
root@dut220:~# cat /sys/bus/pci/devices/0000\:18\:00.0/numa_node
0
3.View the lcore of the server
root@dut220:~# /root/dpdk/usertools/cpu_layout.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Core and Socket Information (as reported by '/sys/devices/system/cpu')
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dcores =3D=20
[0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22,=
24,
25, 26, 27, 28, 29, 30]
sockets =3D =C2=A0[0, 1]=C2=A0 =C2=A0 =C2=A0 =C2=A0=20
Socket 0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Socket 1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 -------- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0----=
----
Core 0 =C2=A0[0, 56] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [28, 84]
Core 1 =C2=A0[1, 57] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [29, 85]
Core 2 =C2=A0[2, 58] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [30, 86]
Core 3 =C2=A0[3, 59] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [31, 87]
Core 4 =C2=A0[4, 60] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [32, 88]
Core 5 =C2=A0[5, 61] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [33, 89]
Core 6 =C2=A0[6, 62] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [34, 90]
Core 8 =C2=A0[7, 63] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [35, 91]
Core 9 =C2=A0[8, 64] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [36, 92]
Core 10 [9, 65] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [37, 93]
Core 11 [10, 66] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[38, 94]
Core 12 [11, 67] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[39, 95]
Core 13 [12, 68] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[40, 96]
Core 14 [13, 69] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[41, 97]
Core 16 [14, 70] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[42, 98]
Core 17 [15, 71] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[43, 99]
Core 18 [16, 72] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[44, 100]
Core 19 [17, 73] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[45, 101]
Core 20 [18, 74] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[46, 102]
Core 21 [19, 75] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[47, 103]
Core 22 [20, 76] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[48, 104]
Core 24 [21, 77] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[49, 105]
Core 25 [22, 78] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[50, 106]
Core 26 [23, 79] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[51, 107]
Core 27 [24, 80] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[52, 108]
Core 28 [25, 81] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[53, 109]
Core 29 [26, 82] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[54, 110]
Core 30 [27, 83] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[55, 111]
4.Start vhost-user with the lcores same numa with the NIC port(eg: on scoket
0):
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 18,19 -n 4 -a 0000:18:00.0=20
--file-prefix=3Dvhost_2352949_20230407162534 =C2=A0--vdev
'net_vhost0,iface=3Dvhost-net,queues=3D1' -- -i --nb-cores=3D1 --txd=3D1024=
--rxd=3D1024
testpmd>set fwd mac
testpmd>start
5.Start VM0 with QEMU-7.0.0 with the lcores different numa with the NIC
port(eg: on scoket 1):=20=20
taskset -c 30,31,32,33,34,35,36,37 /home/QEMU/qemu-7.0.0/bin/qemu-system-x8=
6_64
=C2=A0-name vm0 -enable-kvm -pidfile /tmp/.vm0.pid -daemonize -monitor
unix:/tmp/vm0_monitor.sock,server,nowait -netdev
user,id=3Dnttsip1,hostfwd=3Dtcp:10.239.252.220:6000-:22 -device
e1000,netdev=3Dnttsip1 =C2=A0-chardev socket,id=3Dchar0,path=3D./vhost-net =
-netdev
type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce -device
virtio-net-pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,disable-modern=3Dtr=
ue,mrg_rxbuf=3Doff,rx_queue_size=3D1024,tx_queue_size=3D1024
-cpu host -smp 8 -m 16384 -object
memory-backend-file,id=3Dmem,size=3D16384M,mem-path=3D/mnt/huge,share=3Don =
-numa
node,memdev=3Dmem -mem-prealloc -chardev
socket,path=3D/tmp/vm0_qga0.sock,server,nowait,id=3Dvm0_qga0 -device virtio=
-serial
-device virtserialport,chardev=3Dvm0_qga0,name=3Dorg.qemu.guest_agent.0 -vn=
c :4
-drive file=3D/home/image/ubuntu2004.img
6.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/huge
modprobe vfio-pci
echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
dpdk-devbind.py --force --bind=3Dvfio-pci 0000:00:04.0
7.Start testpmd in VM0:
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -a
0000:00:04.0,vectorized=3D1 -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024
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) | =C2=A0 =C2=A0 =C2=A0 =C2=A0 Mode =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 | Throughput(Mpps) | % linerate | =C2=A0 =C2=A0
Cycle =C2=A0 =C2=A0 =C2=A0|
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+
| 64 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | virtio0.95 vector_rx | 4.314 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 7.247 =C2=A0 =C2=A0 =C2=A0| Before
Restart |
+--------------+----------------------+------------------+------------+----=
------------+
Expected Result
Explain what is the expected result in text or as an example output:
+--------------+----------------------+------------------+------------+----=
------------+
| FrameSize(B) | =C2=A0 =C2=A0 =C2=A0 =C2=A0 Mode =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 | Throughput(Mpps) | % linerate | =C2=A0 =C2=A0
Cycle =C2=A0 =C2=A0 =C2=A0|
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+
| 64 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | virtio0.95 vector_rx | 5.642 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 9.478 =C2=A0 =C2=A0 =C2=A0| Before
Restart |
+--------------+----------------------+------------------+------------+----=
------------+
Regression
Is this issue a regression: (Y/N) Y
Version the regression was introduced: Specify git id if known.
commit c41493361c87e730459ead9311c68528eb0874aa (HEAD)
Author: Boleslav Stankevich
Date: =C2=A0 Fri Mar 3 14:19:29 2023 +0300
=C2=A0 =C2=A0 net/virtio: deduce IP length for TSO checksum
=C2=A0 =C2=A0 [ upstream commit d069c80a5d8c0a05033932421851cdb7159de0df ]
=C2=A0 =C2=A0 The length of TSO payload could not fit into 16 bits provided=
by the
=C2=A0 =C2=A0 IPv4 total length and IPv6 payload length fields. Thus, deduc=
e it
=C2=A0 =C2=A0 from the length of the packet.
=C2=A0 =C2=A0 Fixes: 696573046e9e ("net/virtio: support TSO")
=C2=A0 =C2=A0 Signed-off-by: Boleslav Stankevich
=C2=A0 =C2=A0 Reviewed-by: Andrew Rybchenko
=C2=A0 =C2=A0 Reviewed-by: Maxime Coquelin
Stack Trace or Log
# Add a long stack trace or log output in a noformat block like this.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--16837926990.AFa56Ae.2706079
Date: Thu, 11 May 2023 10:11:39 +0200
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
Bug ID |
1228
|
Summary |
[dpdk-21.11.4]pvp_qemu_multi_paths_port_restart:perf_pvp_qemu=
_vector_rx_mac: performance drop about 23.5% when send small packets
|
Product |
DPDK
|
Version |
21.11
|
Hardware |
All
|
OS |
All
|
Status |
UNCONFIRMED
|
Severity |
normal
|
Priority |
Normal
|
Component |
vhost/virtio
|
Assignee |
dev@dpdk.org
|
Reporter |
weix.ling@intel.com
|
Target Milestone |
---
|
You are receiving this mail because:
- You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
=
--16837926990.AFa56Ae.2706079--