From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> 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 <dev@dpdk.org>; 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: <bug-1282-3@http.bugs.dpdk.org/> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=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 <html> <head> <base href=3D"https://bugs.dpdk.org/"> </head> <body><table border=3D"1" cellspacing=3D"0" cellpadding=3D"8" class=3D"= bz_new_table"> <tr> <th>Bug ID</th> <td><a class=3D"bz_bug_link=20 bz_status_UNCONFIRMED " title=3D"UNCONFIRMED - [openssl] dpdk-test-crypto-perf got stuck for mul= tiple segments" href=3D"https://bugs.dpdk.org/show_bug.cgi?id=3D1282">1282</a> </td> </tr> <tr> <th>Summary</th> <td>[openssl] dpdk-test-crypto-perf got stuck for multiple segmen= ts </td> </tr> <tr> <th>Product</th> <td>DPDK </td> </tr> <tr> <th>Version</th> <td>unspecified </td> </tr> <tr> <th>Hardware</th> <td>x86 </td> </tr> <tr> <th>OS</th> <td>Linux </td> </tr> <tr> <th>Status</th> <td>UNCONFIRMED </td> </tr> <tr> <th>Severity</th> <td>normal </td> </tr> <tr> <th>Priority</th> <td>Normal </td> </tr> <tr> <th>Component</th> <td>cryptodev </td> </tr> <tr> <th>Assignee</th> <td>dev@dpdk.org </td> </tr> <tr> <th>Reporter</th> <td>sbadawi@nvidia.com </td> </tr> <tr> <th>Target Milestone</th> <td>--- </td> </tr></table> <p> <div class=3D"bz_comment_block"> <pre class=3D"bz_comment_text">Created <span class=3D""><a href= =3D"attachment.cgi?id=3D260" name=3D"attach_260" title=3D"test_aes_gcm.data= file">attachment 260</a> <a href=3D"attachment.cgi?id=3D260&action=3De= dit" title=3D"test_aes_gcm.data file">[details]</a></span> 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 </pre> </div> </p> <hr> <span>You are receiving this mail because:</span> <ul> <li>You are the assignee for the bug.</li> </ul> <div itemscope itemtype=3D"http://schema.org/EmailMessage"> <div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/Vi= ewAction"> =20=20=20=20=20=20=20=20=20=20 <link itemprop=3D"url" href=3D"https://bugs.dpdk.org/show_bug.cgi= ?id=3D1282"> <meta itemprop=3D"name" content=3D"View bug"> </div> <meta itemprop=3D"description" content=3D"Bugzilla bug update notif= ication"> </div> </body> </html>= --16939045530.c196e0.1997401--