DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-12-02 13:10 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2026-12-02 13:10 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=2166

            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=graniterapids -Ofast
AMD     EPYC 8534P (znver4)     -march=znver4 -Ofast
AMD     EPYC 8635P (znver5)     -march=znver5 -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%–8% lower throughput, depending on the
processor and workload. Some configurations in the broader test matrix exhibit
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 – CTR decrypt (MOps/s)     33.08   30.94   -6.5%
64 B – CBC decrypt (MOps/s)     36.57   33.67   -7.9%
64 B – CTR encrypt (MOps/s)     32.96   30.77   -6.7%
2048 B – CTR decrypt (MOps/s)   8.81    8.63    -2.0%
2048 B – CBC decrypt (MOps/s)   9.08    8.94    -1.5%
2048 B – 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–56.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–43.2 cycles 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–33.6% of worker
execution time.

Reproduction 

============ 
1. Build IPsec-MB 2.0/2.0.1. 
2. Build DPDK 26.11 against that installation. 
3. Run the following crypto-perf command at least three times: 

  dpdk-test-crypto-perf \
  --no-pci --in-memory --file-prefix ipsecmb -l 15,16 --main-lcore 15 \
  --force-max-simd-bitwidth=512 --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. 
5. Rebuild the same DPDK source using identical Meson and compiler 
options. 
6. Execute the same command on the same isolated CPU and NUMA node. 
7. Compare the median throughput. 

The following settings were held constant: 
- DPDK source revision 
- compiler and compiler flags 
- crypto-perf command 
- worker CPU and NUMA placement 
- CPU frequency and Boost/Turbo configuration 
- operation count and number of repetitions 


Initial analysis \
================
Initial profiling indicates that most of the additional cost is in 
the DPDK PMD dequeue job-setup path: 
aesni_mb_dequeue_burst() 

-> set_mb_job_params() 



The IPsec-MB crypto execution itself contributes a smaller portion of 
the measured increase in the representative case. 
This is an initial localization only. We have not yet determined 
whether the appropriate correction belongs in the DPDK PMD, the 
IPsec-MB 3.0 integration, compiler-sensitive code organization, or a 
combination of these. 



Expected behavior 
================= 
Building crypto_aesni_mb against IPsec-MB 3.0 should not introduce a 
material throughput regression for existing AES workloads compared 
with IPsec-MB 2.0/2.0.1. 


Impact 
====== 
Performance-sensitive crypto_aesni_mb users, particularly those 
processing small buffers, may observe reduced throughput after moving 
to IPsec-MB 3.0. 



Temporary workaround 
==================== 
Where newly introduced IPsec-MB 3.0 functionality is not required, 
continue using IPsec-MB 2.0/2.0.1 while this issue is investigated. 



Additional information 
======================   
The regression has been independently reproduced on AMD EPYC and 
Intel Xeon systems.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-02 13:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 13:10 [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 bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox