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 7AE10A0543; Fri, 26 Aug 2022 16:31:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1EE6840146; Fri, 26 Aug 2022 16:31:18 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 1DC6340143 for ; Fri, 26 Aug 2022 16:31:17 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 0DA4AA0554; Fri, 26 Aug 2022 16:31:17 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1071] Deadlock on memory allocation (rte_memzone_reserve_aligned) Date: Fri, 26 Aug 2022 14:31:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: a.dibacco.ks@gmail.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: 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 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1071 Bug ID: 1071 Summary: Deadlock on memory allocation (rte_memzone_reserve_aligned) Product: DPDK Version: 21.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: major Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: a.dibacco.ks@gmail.com Target Milestone: --- Created attachment 218 --> https://bugs.dpdk.org/attachment.cgi?id=3D218&action=3Dedit simple_mem_mp program I launch the attached program on a 56c, 2 numa x86 machine: The primary (named simple_mem_mp) does the following: 1) Starts a secondary (same image but named simple_mem_mp_sec) 2) Allocates a huge number (512) of 2M pages and release them 3) Starts a few eal threads that also allocate/release other 2M pages forev= er 4) Waits for the secondary to exit 5) Go to bullet 1 The secondary (same image as primary but named simple_mem_mp_sec): 1) Starts a few eal threads that allocate 100x2M pages and then exit 2) Wait for threads to finish and then exit The secondary is alive for almost 4 secs before exiting. After a few iterations a deadlock is experienced. The secondary seems to st= art but cannot complete the rte_eal_init and I see that lslocks reports this (a flock cannot get the lock on /dev/hugepages2M): simple_mem_mp 171272 FLOCK WRITE* 0 0 0 /dev/hugepages2= M... simple_mem_mp 171272 FLOCK WRITE 0 0 0 /dev/hugepages2= M... Here is a log: Starting core on secondary 14 Starting core on secondary 15 Starting core on secondary 7 Starting core on secondary 8 Starting core on secondary 9 Secondary started Proc type 1 exiting EAL: Detected CPU lcores: 56 EAL: Detected NUMA nodes: 2 EAL: Auto-detected process type: SECONDARY EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_171319_224be24c4ae EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized Starting core on secondary 6 Starting core on secondary 7 Starting core on secondary 8 Starting core on secondary 9 Starting core on secondary 10 Starting core on secondary 11 Secondary started Starting core on secondary 12 Starting core on secondary 14 Starting core on secondary 15 Starting core on secondary 13 Proc type 1 exiting EAL: Detected CPU lcores: 56 EAL: Detected NUMA nodes: 2 EAL: Auto-detected process type: SECONDARY EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_171333_22b0fbb7ab4 EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized --=20 You are receiving this mail because: You are the assignee for the bug.=