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 66F9142502; Tue, 5 Sep 2023 11:02:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A08A40270; Tue, 5 Sep 2023 11:02:34 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 6BA304026A for ; Tue, 5 Sep 2023 11:02:33 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 50ADD42503; Tue, 5 Sep 2023 11:02:33 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1282] [openssl] dpdk-test-crypto-perf got stuck for multiple segments Date: Tue, 05 Sep 2023 09:02:32 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sbadawi@nvidia.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 attachments.created Message-ID: Content-Type: multipart/alternative; boundary=16939045530.c196e0.1997401 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 --16939045530.c196e0.1997401 Date: Tue, 5 Sep 2023 11:02:33 +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=3D1282 Bug ID: 1282 Summary: [openssl] dpdk-test-crypto-perf got stuck for multiple segments Product: DPDK Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: cryptodev Assignee: dev@dpdk.org Reporter: sbadawi@nvidia.com Target Milestone: --- Created attachment 260 --> https://bugs.dpdk.org/attachment.cgi?id=3D260&action=3Dedit test_aes_gcm.data file dpdk-test-crypto-perf got stuck when using openssl driver with multiple segments. To repro the issue, follow the steps below: * To run the app, use the following command: /download/dpdk/install/bin/dpdk-test-crypto-perf -c 0x7fff --vdev crypto_openssl,max_nb_queue_pairs=3D14 -- --ptest pmd-cyclecount --aead-op encrypt --optype aead --aead-algo aes-gcm --test-file /tmp/test_aes_gcm.data --test-name gcm --total-ops 837134 --aead-key-sz 32 --aead-iv-sz 12 --aead-aad-sz 334 --buffer-sz 256 --burst-sz 32 --digest-sz 16 --segment-sz= 32 --devtype crypto_openssl --silent --csv-friendly startup log: EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' CRYPTODEV: Creating cryptodev crypto_openssl CRYPTODEV: Initialisation parameters - name: crypto_openssl,socket id: 0, m= ax queue pairs: 14 Allocated pool "sess_mp_0" on socket 0 and the app got stuck. While for mlx driver: app command: /download/dpdk/install/bin/dpdk-test-crypto-perf -c 0x7fff -a 0000:03:00.0,class=3Dcrypto,algo=3D1 -- --ptest pmd-cyclecount --aead-op e= ncrypt --optype aead --aead-algo aes-gcm --test-file /tmp/test_aes_gcm.data --test-name gcm --total-ops 837134 --aead-key-sz 32 --aead-iv-sz 12 --aead-aad-sz 334 --buffer-sz 256 --burst-sz 32 --digest-sz 16 --segment-sz= 32 --devtype mlx5_pci --silent --csv-friendly startup log: EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: Probe PCI driver: mlx5_pci (15b3:a2dc) device: 0000:03:00.0 (socket -1) CRYPTODEV: Creating cryptodev mlx5_0 CRYPTODEV: Initialisation parameters - name: mlx5_0,socket id: -1, max queue pairs: 8 Allocated pool "sess_mp_0" on socket 0 # lcore id,Buf Size,Burst Size,Enqueued,Dequeued,Enq Retries,Deq Retries,Cycles/Op,Cycles/Enq,Cycles/Deq 2, 256,32,837134,837134,0,533741119,4.285,132.728,3266.640 5, 256,32,837134,837134,0,474591992,4.187,131.554,3267.847 1, 256,32,837134,837134,0,534222454,4.188,132.515,3267.158 14, 256,32,837134,837134,0,534253999,4.290,134.163,3266.250 8, 256,32,837134,837134,0,533930935,4.183,131.477,3268.442 10, 256,32,837134,837134,0,530621045,4.270,138.768,3261.594 7, 256,32,837134,837134,0,533981498,4.198,137.662,3263.727 3, 256,32,837134,837134,0,534203541,4.285,140.712,3258.738 9, 256,32,837134,837134,0,532553766,4.433,135.760,3262.361 4, 256,32,837134,837134,0,532835430,4.189,136.872,3263.587 11, 256,32,837134,837134,0,535932003,4.186,133.716,3265.873 12, 256,32,837134,837134,0,532764050,4.320,144.503,3254.523 13, 256,32,837134,837134,0,532940094,4.262,134.450,3264.728 6, 256,32,837134,837134,0,2301821,4.278,109.988,14.931 and it works fine when using a single segment with openssl driver: app command: /download/dpdk/install/bin/dpdk-test-crypto-perf -c 0x7fff --vdev crypto_openssl,max_nb_queue_pairs=3D14 -- --ptest pmd-cyclecount --aead-op encrypt --optype aead --aead-algo aes-gcm --test-file /tmp/test_aes_gcm.data --test-name gcm --total-ops 837134 --aead-key-sz 32 --aead-iv-sz 12 --aead-aad-sz 334 --buffer-sz 256 --burst-sz 32 --digest-sz 16 --segment-sz= 272 --devtype crypto_openssl --silent --csv-friendly--silent=20 startup log: EAL: Detected CPU lcores: 16 EAL: Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' CRYPTODEV: Creating cryptodev crypto_openssl CRYPTODEV: Initialisation parameters - name: crypto_openssl,socket id: 0, m= ax queue pairs: 14 Allocated pool "sess_mp_0" on socket 0 # lcore id,Buf Size,Burst Size,Enqueued,Dequeued,Enq Retries,Deq Retries,Cycles/Op,Cycles/Enq,Cycles/Deq 14, 256,32,837134,837134,408,0,2.392,753.011,1.399 13, 256,32,837134,837134,408,0,2.380,805.099,1.418 12, 256,32,837134,837134,408,0,2.403,805.045,1.371 9, 256,32,837134,837134,408,0,2.394,805.847,1.357 8, 256,32,837134,837134,408,0,2.393,809.166,1.392 4, 256,32,837134,837134,408,0,2.389,816.142,1.320 5, 256,32,837134,837134,408,0,2.391,816.663,1.231 2, 256,32,837134,837134,408,0,2.398,816.880,1.277 3, 256,32,837134,837134,408,0,2.389,816.715,1.429 6, 256,32,837134,837134,408,0,2.380,817.423,1.309 7, 256,32,837134,837134,408,0,2.387,823.006,1.506 10, 256,32,837134,837134,408,0,2.397,838.132,1.375 11, 256,32,837134,837134,408,0,2.387,847.972,1.412 1, 256,32,837134,837134,408,0,2.381,227.413,0.590 --=20 You are receiving this mail because: You are the assignee for the bug.= --16939045530.c196e0.1997401 Date: Tue, 5 Sep 2023 11:02:33 +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 1282
Summary [openssl] dpdk-test-crypto-perf got stuck for multiple segmen= ts
Product DPDK
Version unspecified
Hardware x86
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component cryptodev
Assignee dev@dpdk.org
Reporter sbadawi@nvidia.com
Target Milestone ---

Created attachment 260 [details]
test_aes_gcm.data file

dpdk-test-crypto-perf got stuck when using openssl driver with multiple
segments.


To repro the issue, follow the steps below:

* To run the app, use the following command:

/download/dpdk/install/bin/dpdk-test-crypto-perf -c 0x7fff --vdev
crypto_openssl,max_nb_queue_pairs=3D14 --  --ptest pmd-cyclecount --aead-op
encrypt --optype aead --aead-algo aes-gcm --test-file /tmp/test_aes_gcm.data
--test-name gcm --total-ops 837134 --aead-key-sz 32 --aead-iv-sz 12
--aead-aad-sz 334 --buffer-sz 256 --burst-sz 32 --digest-sz 16 --segment-sz=
 32
--devtype crypto_openssl --silent --csv-friendly

startup log:


EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
CRYPTODEV: Creating cryptodev crypto_openssl
CRYPTODEV: Initialisation parameters - name: crypto_openssl,socket id: 0, m=
ax
queue pairs: 14
Allocated pool "sess_mp_0" on socket 0

and the app got stuck.



While for mlx driver:

app command:

/download/dpdk/install/bin/dpdk-test-crypto-perf -c 0x7fff -a
0000:03:00.0,class=3Dcrypto,algo=3D1 --  --ptest pmd-cyclecount --aead-op e=
ncrypt
--optype aead --aead-algo aes-gcm --test-file /tmp/test_aes_gcm.data
--test-name gcm --total-ops 837134 --aead-key-sz 32 --aead-iv-sz 12
--aead-aad-sz 334 --buffer-sz 256 --burst-sz 32 --digest-sz 16 --segment-sz=
 32
--devtype mlx5_pci --silent --csv-friendly
startup log:

EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probe PCI driver: mlx5_pci (15b3:a2dc) device: 0000:03:00.0 (socket -1)
CRYPTODEV: Creating cryptodev mlx5_0
CRYPTODEV: Initialisation parameters - name: mlx5_0,socket id: -1, max queue
pairs: 8
Allocated pool "sess_mp_0" on socket 0
# lcore id,Buf Size,Burst Size,Enqueued,Dequeued,Enq Retries,Deq
Retries,Cycles/Op,Cycles/Enq,Cycles/Deq
         2,       256,32,837134,837134,0,533741119,4.285,132.728,3266.640
         5,       256,32,837134,837134,0,474591992,4.187,131.554,3267.847
         1,       256,32,837134,837134,0,534222454,4.188,132.515,3267.158
        14,       256,32,837134,837134,0,534253999,4.290,134.163,3266.250
         8,       256,32,837134,837134,0,533930935,4.183,131.477,3268.442
        10,       256,32,837134,837134,0,530621045,4.270,138.768,3261.594
         7,       256,32,837134,837134,0,533981498,4.198,137.662,3263.727
         3,       256,32,837134,837134,0,534203541,4.285,140.712,3258.738
         9,       256,32,837134,837134,0,532553766,4.433,135.760,3262.361
         4,       256,32,837134,837134,0,532835430,4.189,136.872,3263.587
        11,       256,32,837134,837134,0,535932003,4.186,133.716,3265.873
        12,       256,32,837134,837134,0,532764050,4.320,144.503,3254.523
        13,       256,32,837134,837134,0,532940094,4.262,134.450,3264.728
         6,       256,32,837134,837134,0,2301821,4.278,109.988,14.931


and it works fine when using a single segment with openssl driver:

app command:

/download/dpdk/install/bin/dpdk-test-crypto-perf -c 0x7fff --vdev
crypto_openssl,max_nb_queue_pairs=3D14 --  --ptest pmd-cyclecount --aead-op
encrypt --optype aead --aead-algo aes-gcm --test-file /tmp/test_aes_gcm.data
--test-name gcm --total-ops 837134 --aead-key-sz 32 --aead-iv-sz 12
--aead-aad-sz 334 --buffer-sz 256 --burst-sz 32 --digest-sz 16 --segment-sz=
 272
--devtype crypto_openssl --silent --csv-friendly--silent=20
startup log:

EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
CRYPTODEV: Creating cryptodev crypto_openssl
CRYPTODEV: Initialisation parameters - name: crypto_openssl,socket id: 0, m=
ax
queue pairs: 14
Allocated pool "sess_mp_0" on socket 0
# lcore id,Buf Size,Burst Size,Enqueued,Dequeued,Enq Retries,Deq
Retries,Cycles/Op,Cycles/Enq,Cycles/Deq
        14,       256,32,837134,837134,408,0,2.392,753.011,1.399
        13,       256,32,837134,837134,408,0,2.380,805.099,1.418
        12,       256,32,837134,837134,408,0,2.403,805.045,1.371
         9,       256,32,837134,837134,408,0,2.394,805.847,1.357
         8,       256,32,837134,837134,408,0,2.393,809.166,1.392
         4,       256,32,837134,837134,408,0,2.389,816.142,1.320
         5,       256,32,837134,837134,408,0,2.391,816.663,1.231
         2,       256,32,837134,837134,408,0,2.398,816.880,1.277
         3,       256,32,837134,837134,408,0,2.389,816.715,1.429
         6,       256,32,837134,837134,408,0,2.380,817.423,1.309
         7,       256,32,837134,837134,408,0,2.387,823.006,1.506
        10,       256,32,837134,837134,408,0,2.397,838.132,1.375
        11,       256,32,837134,837134,408,0,2.387,847.972,1.412
         1,       256,32,837134,837134,408,0,2.381,227.413,0.590
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16939045530.c196e0.1997401--