From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla@dpdk.org Subject: [Bug 188] significant multi-core performance degradation with SR-IOV/macswap in some cases Date: Mon, 14 Jan 2019 09:27:34 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable To: dev@dpdk.org Return-path: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D188 Bug ID: 188 Summary: significant multi-core performance degradation with SR-IOV/macswap in some cases Product: DPDK Version: 19.02 Hardware: x86 OS: Linux Status: CONFIRMED Severity: critical Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: alialnu@mellanox.com Target Milestone: --- Hi, I'm seeing a performance degradation with testpmd running with multiple cor= es. I saw the issue with ConnectX-3, ConnectX-4 Lx, and ConnectX-5. ### For ConnectX-3: - With 2 Cores, I see a degradation from 19.2 mpps to 13.5 mpps. testpmd command: `MLX4_INLINE_RECV_SIZE=3D64 ./build/app/test-pmd/testpmd -c 0x7 -n 4 -w 0002:00:02.0 --vdev=3Dnet_vdev_netvsc,ignore=3D1 --socket-mem=3D2048 -- --port-numa-config=3D0,0 --socket-num=3D0 --burst=3D64 --txd=3D256 --rxd=3D= 256 --mbcache=3D512 --rxq=3D2 --txq=3D2 --nb-cores=3D2 -i -a --forward-mode=3D= macswap` - With 4 Cores, I see a degradation from 19.2 mpps - 13.9 mpps. testpmd command: `MLX4_INLINE_RECV_SIZE=3D64 ./build/app/test-pmd/testpmd -c 0x1f -n 4 -w 0002:00:02.0 --vdev=3Dnet_vdev_netvsc,ignore=3D1 --socket-mem=3D2048 -- --port-numa-config=3D0,0 --socket-num=3D0 --burst=3D64 --txd=3D256 --rxd=3D= 256 --mbcache=3D512 --rxq=3D2 --txq=3D2 --nb-cores=3D4 -i -a --forward-mode=3D= macswap` ### For ConnectX-4 Lx: - With 2 Cores, I see a degradation from 32.9 mpps to 26.8 mpps. testpmd command: `./build/app/test-pmd/testpmd -c 0x7 -n 4 -w 0003:00:02.0 --vdev=3D"net_vdev_netvsc,ignore=3D1" -- --burst=3D64 --txd=3D1024 --rxd=3D= 256 --mbcache=3D512 --rxq=3D2 --txq=3D2 --nb-cores=3D2 --rss-udp --port-topolog= y=3Dchained --forward-mode=3Dmacswap -i -a` - With 4 Cores, I see a degradation from 34.8 mpps to 19 mpps. testpmd command: `./build/app/test-pmd/testpmd -c 0x1f -n 4 -w 0003:00:02.0 --vdev=3D"net_vdev_netvsc,ignore=3D1" -- --burst=3D64 --txd=3D8192 --rxd=3D= 256 --mbcache=3D512 --rxq=3D4 --txq=3D4 --nb-cores=3D4 --rss-udp --port-topolog= y=3Dchained --forward-mode=3Dmacswap -i -a` Server specs: OS: Ubuntu 16.04.2 LTS Kernel: 4.15.0-rc3 I'm using IXIA as a traffic generator, and to get the forwarding performanc= e. DPDK version: master:a89fbda The cause of the degradation is the patch: ``` commit 62b52877adbe8d3ad19615b0827e7725e51feadc Author: Qi Zhang Date: Sun Dec 16 08:58:35 2018 +0800 app/testpmd: batch MAC swap for performance on x86 Do four packets macswap in same loop iterate to squeeze more CPU cycles. Signed-off-by: Qi Zhang Reviewed-by: Ferruh Yigit Acked-by: Bernard Iremonger ``` --=20 You are receiving this mail because: You are the assignee for the bug.=