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 011DD45474; Mon, 17 Jun 2024 04:54:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91284402BE; Mon, 17 Jun 2024 04:54:34 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 7C901402AC for ; Mon, 17 Jun 2024 04:54:32 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 706034547B; Mon, 17 Jun 2024 04:54:32 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/vhost/virtio Bug 1462] [dpdk-24.07] virtio_smoke/test_virtio_loopback: Vhost or Virtio hang Date: Mon, 17 Jun 2024 02:54:30 +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: 24.07 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yux.jiang@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=17185928720.3583d9fB.2060125 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 --17185928720.3583d9fB.2060125 Date: Mon, 17 Jun 2024 04:54:32 +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=3D1462 Bug ID: 1462 Summary: [dpdk-24.07] virtio_smoke/test_virtio_loopback: Vhost or Virtio hang Product: DPDK Version: 24.07 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: 24.07.0-rc0 OS: Ubuntu 22.04.3 LTS; 5.15.0-82-generic Compiler: gcc version 11.4.0 Hardware platform: Intel(R) Xeon(R) Platinum 8280M CPU @ 2.70GHz [Test Setup] Steps to reproduce List the steps to reproduce the issue. 1.Build dpdk rm -rf x86_64-native-linuxapp-gcc CC=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib --default-library=3Dst= atic x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc 2.Launch vhost as client mode x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 -n 4 --file-prefix=3Dvh= ost --no-pci --vdev 'eth_vhost0,iface=3Dvhost-net,client=3D1,queues=3D8' -- -i --nb-cores=3D2 --rxq=3D2 --txq=3D2 3, Launch virtio-user as server mode x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 4-6 -n 4 --file-prefix=3Dvi= rtio1 --no-pci --vdev 'net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,server=3D1,que= ues=3D8,mrg_rxbuf=3D1,in_order=3D1' --single-file-segments -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=3D2 --rxq=3D8 --txq=3D8 [Actual Result] Vhost hang's log=20 root@dut214:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 -n 4= =20 --file-prefix=3Dvhost --no-pci --vdev 'eth_vhost0,iface=3Dvhost-net,client=3D1,queues=3D8' -- -i --nb-cores=3D2= --rxq=3D2 --txq=3D2 EAL: Detected CPU lcores: 112 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/vhost/mp_socket EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized Interactive-mode selected testpmd: create a new mbuf pool : n=3D163456, size=3D2176, socke= t=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=3Dpaired and odd forward ports number, the last port= will pair with itself. Configuring Port 0 (socket 0) VHOST_CONFIG: (vhost-net) vhost-user client: socket created, fd: 33 VHOST_CONFIG: (vhost-net) Setting max queue pairs to 8 Virtio-user hang, vhost's log: root@dut214:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 -n 4= =20 --file-prefix=3Dvhost --no-pci --vdev 'eth_vhost0,iface=3Dvhost-net,client=3D1,queues=3D8' -- -i --nb-cores=3D2= --rxq=3D2 --txq=3D2 EAL: Detected CPU lcores: 112 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/vhost/mp_socket EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized Interactive-mode selected testpmd: create a new mbuf pool : n=3D163456, size=3D2176, socke= t=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=3Dpaired and odd forward ports number, the last port= will pair with itself. Configuring Port 0 (socket 0) VHOST_CONFIG: (vhost-net) vhost-user client: socket created, fd: 33 VHOST_CONFIG: (vhost-net) Setting max queue pairs to 8 VHOST_CONFIG: (vhost-net) failed to connect: No such file or directory VHOST_CONFIG: (vhost-net) reconnecting... Port 0: 56:48:4F:53:54:00 Checking link statuses... Done testpmd> VHOST_CONFIG: (vhost-net) connected VHOST_CONFIG: (vhost-net) new device, handle is 0 testpmd> [Expected Result] Not hang root@dut214:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 -n 4= =20 --file-prefix=3Dvhost --no-pci --vdev 'eth_vhost0,iface=3Dvhost-net,client=3D1,queues=3D8' -- -i --nb-cores=3D2= --rxq=3D2 --txq=3D2 EAL: Detected CPU lcores: 112 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/vhost/mp_socket EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized Interactive-mode selected testpmd: create a new mbuf pool : n=3D163456, size=3D2176, socke= t=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=3Dpaired and odd forward ports number, the last port= will pair with itself. Configuring Port 0 (socket 0) VHOST_CONFIG: (vhost-net) vhost-user client: socket created, fd: 33 VHOST_CONFIG: (vhost-net) Setting max queue pairs to 8 VHOST_CONFIG: (vhost-net) failed to connect: No such file or directory VHOST_CONFIG: (vhost-net) reconnecting... Port 0: 56:48:4F:53:54:00 Checking link statuses... Done testpmd>=20 [Regression] Is this issue a regression: (Y) Bad commit id1: ///////Virtio hang 02a7ca5114 vhost: improve fdset initialization Bad commit id2: ///////vhost hang c23f6373c8 vhost: hide synchronization within FD manager --=20 You are receiving this mail because: You are the assignee for the bug.= --17185928720.3583d9fB.2060125 Date: Mon, 17 Jun 2024 04:54:32 +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 1462
Summary [dpdk-24.07] virtio_smoke/test_virtio_loopback: Vhost or Virt= io hang
Product DPDK
Version 24.07
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: 24.07.0-rc0
OS: Ubuntu 22.04.3 LTS; 5.15.0-82-generic
Compiler: gcc version 11.4.0
Hardware platform: Intel(R) Xeon(R) Platinum 8280M CPU @ 2.70GHz

[Test Setup]
Steps to reproduce
List the steps to reproduce the issue.

1.Build dpdk
rm -rf x86_64-native-linuxapp-gcc
CC=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib  --default-library=3Dst=
atic
x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc

2.Launch vhost as client mode
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 -n 4  --file-prefix=3Dvh=
ost
--no-pci --vdev 'eth_vhost0,iface=3Dvhost-net,client=3D1,queues=3D8'   -- -i
--nb-cores=3D2 --rxq=3D2 --txq=3D2

3, Launch virtio-user as server mode
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 4-6 -n 4  --file-prefix=3Dvi=
rtio1
--no-pci --vdev
'net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,server=3D1,que=
ues=3D8,mrg_rxbuf=3D1,in_order=3D1'
  --single-file-segments -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip
--rss-ip --nb-cores=3D2 --rxq=3D8 --txq=3D8

[Actual Result]
Vhost hang's log=20
root@dut214:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 =
-n 4=20
--file-prefix=3Dvhost --no-pci --vdev
'eth_vhost0,iface=3Dvhost-net,client=3D1,queues=3D8'   -- -i --nb-cores=3D2=
 --rxq=3D2
--txq=3D2
EAL: Detected CPU lcores: 112
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/vhost/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=3D163456, size=3D2176,=
 socket=3D0
testpmd: preferred mempool ops selected: ring_mp_mc

Warning! port-topology=3Dpaired and odd forward ports number, the last port=
 will
pair with itself.

Configuring Port 0 (socket 0)
VHOST_CONFIG: (vhost-net) vhost-user client: socket created, fd: 33
VHOST_CONFIG: (vhost-net) Setting max queue pairs to 8

Virtio-user hang, vhost's log:
root@dut214:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 =
-n 4=20
--file-prefix=3Dvhost --no-pci --vdev
'eth_vhost0,iface=3Dvhost-net,client=3D1,queues=3D8'   -- -i --nb-cores=3D2=
 --rxq=3D2
--txq=3D2
EAL: Detected CPU lcores: 112
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/vhost/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=3D163456, size=3D2176,=
 socket=3D0
testpmd: preferred mempool ops selected: ring_mp_mc

Warning! port-topology=3Dpaired and odd forward ports number, the last port=
 will
pair with itself.

Configuring Port 0 (socket 0)
VHOST_CONFIG: (vhost-net) vhost-user client: socket created, fd: 33
VHOST_CONFIG: (vhost-net) Setting max queue pairs to 8
VHOST_CONFIG: (vhost-net) failed to connect: No such file or directory
VHOST_CONFIG: (vhost-net) reconnecting...
Port 0: 56:48:4F:53:54:00
Checking link statuses...
Done
testpmd> VHOST_CONFIG: (vhost-net) connected
VHOST_CONFIG: (vhost-net) new device, handle is 0

testpmd>



[Expected Result]
Not hang
root@dut214:~/dpdk# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 =
-n 4=20
--file-prefix=3Dvhost --no-pci --vdev
'eth_vhost0,iface=3Dvhost-net,client=3D1,queues=3D8'   -- -i --nb-cores=3D2=
 --rxq=3D2
--txq=3D2
EAL: Detected CPU lcores: 112
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/vhost/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=3D163456, size=3D2176,=
 socket=3D0
testpmd: preferred mempool ops selected: ring_mp_mc

Warning! port-topology=3Dpaired and odd forward ports number, the last port=
 will
pair with itself.

Configuring Port 0 (socket 0)
VHOST_CONFIG: (vhost-net) vhost-user client: socket created, fd: 33
VHOST_CONFIG: (vhost-net) Setting max queue pairs to 8
VHOST_CONFIG: (vhost-net) failed to connect: No such file or directory
VHOST_CONFIG: (vhost-net) reconnecting...
Port 0: 56:48:4F:53:54:00
Checking link statuses...
Done
testpmd>=20


[Regression]
Is this issue a regression: (Y)
Bad commit id1: ///////Virtio hang
02a7ca5114 vhost: improve fdset initialization
Bad commit id2: ///////vhost hang
c23f6373c8 vhost: hide synchronization within FD manager
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17185928720.3583d9fB.2060125--