From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 991DC606A31A for ; Wed, 2 Dec 2026 13:10:08 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74331402DD; Wed, 2 Dec 2026 14:10:07 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTPS id A8F33402D5 for ; Wed, 2 Dec 2026 14:10:05 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 833914D040; Wed, 2 Dec 2026 14:10:05 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/cryptodev Bug 2166] A reproducible throughput regression was observed in the DPDK crypto_aesni_mb PMD with DPDK 26.11.0-rc3 built against Intel IPsec Multi-Buffer 3.0, and the issue was confirmed on both AMD EPYC and Intel Xeon platforms, indicating it is not processor-vendo Date: Wed, 02 Dec 2026 13:10:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: cryptodev X-Bugzilla-Version: 26.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: Bala.MuraliKrishna@amd.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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 X-Bugzilla-URL: https://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All X-Archived-By: MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 https://bugs.dpdk.org/show_bug.cgi?id=3D2166 Bug ID: 2166 Summary: A reproducible throughput regression was observed in the DPDK crypto_aesni_mb PMD with DPDK 26.11.0-rc3 built against Intel IPsec Multi-Buffer 3.0, and the issue was confirmed on both AMD EPYC and Intel Xeon platforms, indicating it is not processor-vendo Product: DPDK Version: 26.11 Hardware: All OS: Linux Status: UNCONFIRMED Severity: critical Priority: Normal Component: cryptodev Assignee: dev@dpdk.org Reporter: Bala.MuraliKrishna@amd.com Target Milestone: --- 2. Environment and Configuration DPDK - Version: v26.11.0-rc3 - Commit: e75a66edd20d1cf1f22984c53bfd2bce8c883953 Intel IPsec Multi-Buffer Configuration Version Commit Regressing version 3.0 75c6991063d8c4726c6a95ca84987b1ec88d11f8 Reference version 2.0 4f808234a91e87147a4f26167df40f3fd7c7f0c6 Reference version 2.0.1 adf6f6c8f90eea7df5ca9a88fa48c1ef44688af9 Build Configuration - Compiler: GCC 14.2 - OS: Ubuntu 24.04 LTS - Kernel: 6.8.0-146-generic - PMD: crypto_aesni_mb Platform Processor Compiler flags Intel Xeon 6767P (GNR) -march=3Dgraniterapids -Ofast AMD EPYC 8534P (znver4) -march=3Dznver4 -Ofast AMD EPYC 8635P (znver5) -march=3Dznver5 -Ofast 3. Observed Behavior With the DPDK source and test configuration held constant, changing IPsec-MB from version 2.0/2.0.1 to 3.0 results in lower crypto throughput. The regression is most pronounced with small buffer sizes. Representative 64-byte workloads show approximately 4%=E2=80=938% lower throughput, depend= ing on the processor and workload. Some configurations in the broader test matrix exhi= bit larger deviations. The regression has been reproduced across multiple runs and observed in both AES-CBC and AES-CTR workloads. The relative performance impact decreases as= the buffer size increases. No functional failures, failed enqueues, or failed dequeues were observed during testing. 4. Performance Comparison The following results compare IPsec-MB 2.0 against IPsec-MB 3.0 using DPDK 26.11.0-rc3. Common test configuration: - PMD: crypto_aesni_mb - Algorithm: AES-128 cipher-only - Burst size: 32 - Worker configuration: 1C1T - Total operations: 100 million - Compiler: GCC 14.2 4.1 Intel Performance Results Metric IPsec-MB 2.0 IPsec-MB 3.0 Performance change 64 B =E2=80=93 CTR decrypt (MOps/s) 33.08 30.94 -6.5% 64 B =E2=80=93 CBC decrypt (MOps/s) 36.57 33.67 -7.9% 64 B =E2=80=93 CTR encrypt (MOps/s) 32.96 30.77 -6.7% 2048 B =E2=80=93 CTR decrypt (MOps/s) 8.81 8.63 -2.0% 2048 B =E2=80=93 CBC decrypt (MOps/s) 9.08 8.94 -1.5% 2048 B =E2=80=93 CTR encrypt (MOps/s) 8.80 8.62 -2.0% 4.2 Intel Profiling Results Metric IPsec-MB 2.0 IPsec-MB 3.0 DPDK binary (cycles/op) 66.1 75.0 Dequeue + job setup (cycles/op) 46.6 54.1=E2=80=9356.5 IPsec-MB library (cycles/op) Baseline Flat (-1.5 to +0.5) An additional observation is that set_mb_job_params() is inlined into aesni_mb_dequeue_burst() with IPsec-MB 2.0, whereas with IPsec-MB 3.0 it becomes a separate function called once per operation. The separate function call accounts for approximately 40.7=E2=80=9343.2 cyc= les per operation on Intel. 4.3 AMD Performance Results Workload IPsec-MB 2.0 (seconds) IPsec-MB 3.0 (seconds) Throughput change CTR decrypt 6.978 7.268 -4.0% CBC decrypt 6.638 6.936 -4.3% CTR encrypt 7.079 7.336 -3.5% On AMD, set_mb_job_params() accounts for approximately 27.5=E2=80=9333.6% o= f worker execution time. Reproduction=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 1. Build IPsec-MB 2.0/2.0.1.=20 2. Build DPDK 26.11 against that installation.=20 3. Run the following crypto-perf command at least three times:=20 dpdk-test-crypto-perf \ --no-pci --in-memory --file-prefix ipsecmb -l 15,16 --main-lcore 15 \ --force-max-simd-bitwidth=3D512 --vdev crypto_aesni_mb \ -- --devtype crypto_aesni_mb --ptest throughput --optype cipher-only \ --cipher-algo aes-cbc --cipher-op decrypt --cipher-key-sz 16 --cipher-iv-= sz 16 \ --buffer-sz 2048 --burst-sz 32 --total-ops 100000000 --csv-friendly 4. Build IPsec-MB 3.0.=20 5. Rebuild the same DPDK source using identical Meson and compiler=20 options.=20 6. Execute the same command on the same isolated CPU and NUMA node.=20 7. Compare the median throughput.=20 The following settings were held constant:=20 - DPDK source revision=20 - compiler and compiler flags=20 - crypto-perf command=20 - worker CPU and NUMA placement=20 - CPU frequency and Boost/Turbo configuration=20 - operation count and number of repetitions=20 Initial analysis \ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Initial profiling indicates that most of the additional cost is in=20 the DPDK PMD dequeue job-setup path:=20 aesni_mb_dequeue_burst()=20 -> set_mb_job_params()=20 The IPsec-MB crypto execution itself contributes a smaller portion of=20 the measured increase in the representative case.=20 This is an initial localization only. We have not yet determined=20 whether the appropriate correction belongs in the DPDK PMD, the=20 IPsec-MB 3.0 integration, compiler-sensitive code organization, or a=20 combination of these.=20 Expected behavior=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 Building crypto_aesni_mb against IPsec-MB 3.0 should not introduce a=20 material throughput regression for existing AES workloads compared=20 with IPsec-MB 2.0/2.0.1.=20 Impact=20 =3D=3D=3D=3D=3D=3D=20 Performance-sensitive crypto_aesni_mb users, particularly those=20 processing small buffers, may observe reduced throughput after moving=20 to IPsec-MB 3.0.=20 Temporary workaround=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 Where newly introduced IPsec-MB 3.0 functionality is not required,=20 continue using IPsec-MB 2.0/2.0.1 while this issue is investigated.=20 Additional information=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =E2=80= =AF=20 The regression has been independently reproduced on AMD EPYC and=20 Intel Xeon systems. --=20 You are receiving this mail because: You are the assignee for the bug.=