From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/vhost/virtio Bug 1747] [dpdk-25.07] virtio_pvp_regression: perf drop
Date: Fri, 04 Jul 2025 11:24:10 +0000 [thread overview]
Message-ID: <bug-1747-3@https.bugs.dpdk.org/> (raw)
[-- Attachment #1: Type: text/plain, Size: 5447 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1747
Bug ID: 1747
Summary: [dpdk-25.07] virtio_pvp_regression: perf drop
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: vhost/virtio
Assignee: dev@dpdk.org
Reporter: yux.jiang@intel.com
Target Milestone: ---
[Environment]
DPDK version:
commit 20460dcffd08a4680f881c39916ae783ee830374 (HEAD -> main, tag: v25.07-rc2,
origin/main, origin/HEAD)
Author: Thomas Monjalon <thomas@monjalon.net>
Date: Mon Jun 30 00:23:49 2025 +0200
version: 25.07-rc2
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
OS: Ubuntu 24.04.2 LTS (Noble Numbat); 6.8.0-62-generic
Compiler: gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
Hardware platform: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz CPU @ 2.3GHz
QEMU: qemu-10.0.2
NIC: Ethernet Controller E810-C for QSFP 1592
[Bad commit Debug Info]:
3e3c7f3fa5 net/virtio: fix check of threshold for Tx freeing
[Test Setup]
Steps to reproduce
List the steps to reproduce the issue.
1, Build dpdk
rm -rf x86_64-native-linuxapp-gcc
CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static
x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc
2, Bind one NIC port and launch vhost-user
usertools/dpdk-devbind.py --force --bind=vfio-pci 0000:4b:00.0
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 5-7 -n 8 -a 0000:4b:00.0
--file-prefix=vhost_343434_20250703181552 --vdev
'eth_vhost0,iface=/root/dpdk/vhost-net,queues=2,client=1' -- -i --nb-cores=2
--rxq=2 --txq=2 --txd=1024 --rxd=1024
set fwd mac
start
3, Launch qemu and start testpmd
lsof -n -i:6000
taskset -c 20,21,22,23,24,25,26,27
/home/QEMU/qemu-10.0.2/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.245:6000-:22 -device
e1000,netdev=nttsip1 -chardev socket,id=char0,path=/root/dpdk/vhost-net,server
-netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce,queues=2 -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,mq=on,vectors=15
-cpu host -smp 8 -m 8192 -object
memory-backend-file,id=mem,size=8192M,mem-path=/dev/hugepages,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
IN VM:
echo 0 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
echo 1024 >
/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
modprobe vfio
modprobe vfio-pci
echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
usertools/dpdk-devbind.py --force --bind=vfio-pci --noiommu-mode 0000:00:04.0
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x7 -n 4 -- -i
--enable-hw-vlan-strip --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024
set fwd mac
start
4, Use trex to send pkgs
Ether(dst="40:a6:b7:96:e4:00")/IP(src="192.168.4.1")/("X"*26)
5, on Vhost side check NIC statistics:
testpmd> show port stats all
[Actual Result]
testpmd> show port stats all
######################## NIC statistics for port 0 ########################
RX-packets: 1335228256 RX-missed: 3852467168 RX-bytes: 1257101091618
RX-errors: 0
RX-nombuf: 0
TX-packets: 1335227072 TX-errors: 0 TX-bytes: 922022159232
Throughput (since last show)
Rx-pps: 2082875 Rx-bps: 8546636528
Tx-pps: 2082875 Tx-bps: 10284137360
############################################################################
######################## NIC statistics for port 1 ########################
RX-packets: 1335227200 RX-missed: 0 RX-bytes: 2021533980800
RX-errors: 0
RX-nombuf: 0
TX-packets: 1335227392 TX-errors: 0 TX-bytes: 2021534271488
Throughput (since last show)
Rx-pps: 2082875 Rx-bps: 25227789696
Tx-pps: 2082875 Tx-bps: 25227789696
############################################################################
testpmd>
[Expect Result]
testpmd> show port stats all
######################## NIC statistics for port 0 ########################
RX-packets: 161121824 RX-missed: 290949041 RX-bytes: 684435274430
RX-errors: 0
RX-nombuf: 0
TX-packets: 161069126 TX-errors: 0 TX-bytes: 243858650692
Throughput (since last show)
Rx-pps: 2880720 Rx-bps: 98209559280
Tx-pps: 2880658 Tx-bps: 34890425968
############################################################################
######################## NIC statistics for port 1 ########################
RX-packets: 161069346 RX-missed: 0 RX-bytes: 243858989844
RX-errors: 0
RX-nombuf: 0
TX-packets: 161070988 TX-errors: 50004 TX-bytes: 243861475832
Throughput (since last show)
Rx-pps: 2880737 Rx-bps: 34891493424
Tx-pps: 2880737 Tx-bps: 34891493424
########
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 7492 bytes --]
reply other threads:[~2025-07-04 11:24 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-1747-3@https.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.