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 17341A0093 for ; Tue, 23 Aug 2022 16:54:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8EBAB40DFD; Tue, 23 Aug 2022 16:54:22 +0200 (CEST) Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) by mails.dpdk.org (Postfix) with ESMTP id 32EF540DDE for ; Tue, 23 Aug 2022 16:54:21 +0200 (CEST) Received: by mail-ua1-f54.google.com with SMTP id cd25so5645318uab.8 for ; Tue, 23 Aug 2022 07:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=argonnetech.net; s=google; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=PamSZ2wV8DDiBxoYluFB1lks3ohHyg+6ty9od0B788s=; b=gAy86p1p4dB6YqW96F7UUd7gVW6Tuz5YR17CHuuudPRmIALZMtC+8n5E3hy2Ur5UVS 36Dzwc/9/G0UD7QHFtDpS4jZ2U93u79SB8+Yv5+b9AhinDmOMKAjO6o/RJpLCIk1/deH arFkFYttt/I5wV44b9nKCFmqRUomYzmBS+d+2p5bPh0c+J/G8DL8SlmeJfZlfkuGvzBQ CXhexFc2g6iUoqwqxQfWLv8xAQA7F+w/MMiPctWnJgL1fDV+06H+yxE7Yyh7uKV7348P nVXe2royOZKqiP43/ulqohdiMIt8NljsfGkxY2exIGXHfO2huVjM3kUp2aOLwWXZSqeW UtQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=PamSZ2wV8DDiBxoYluFB1lks3ohHyg+6ty9od0B788s=; b=dJlhow9rRC1R7oBlmBAZzF2V+oHIg8M4jrVSo+JzT1iM6U8vEz3GnAcNb0ca80JeMt oNB1BqoR6HN7fQqPLTBy73ZqA1rqQP2VTxB6614+xb3alXBCeIgJxTV8KD4ULPvT5AV2 OKDKrkiUKIjO14pxkMHeBYsLG33G+982HTKKmSZCa3oNYSUwF4KuDVxSPngvUUgGTS4B 1+QwpypYpbUqrTU0ZSGbAPHg630YnAdVidzIE7EWwY6++XiRpr2sROUDNMFnUIxCLSc5 84BjrusYP8G6cubtcDZM00Jwo9j5Jyti7IPZj6bkukO0fr83Vdb7Agg6QcWD6WBsKi4l QpNQ== X-Gm-Message-State: ACgBeo3f0HqeDh2pDkslzlgtwofW10vqqapOgazKP6C0kp+bEOHCZK7y mx5UqKNEGrgr4bcCW0UisO3DHyN8EYlGyPAO5D6tMv4dWYE= X-Google-Smtp-Source: AA6agR7pZsBW9esxT+evKjQmsBgld4CoPdConYGwh7GmdBTX9GCuR2PpiqQt9SEoFghv8pXJkSIOF0GMsmP5wW5TOBE= X-Received: by 2002:a05:6130:10b:b0:37f:a52:99fd with SMTP id h11-20020a056130010b00b0037f0a5299fdmr9137078uag.96.1661266460137; Tue, 23 Aug 2022 07:54:20 -0700 (PDT) MIME-Version: 1.0 From: Anna Tauzzi Date: Tue, 23 Aug 2022 16:54:09 +0200 Message-ID: Subject: Secondary process stuck in rte_eal_memory_init To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000003bf61e05e6e9bd70" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --0000000000003bf61e05e6e9bd70 Content-Type: text/plain; charset="UTF-8" I have a primary process that spawns a secondary process.Primary is on NUMA 1 while secondary on NUMA 0. The secondary process starts up but when calling rte_eal_init it gets stuck with this backtrace: flock() sync_walk() rte_memseg_list_walk_thread_unsafe() eal_memalloc_sync_with_primary() rte_eal_hugepage_attach() rte_eal_memory_init() rte_eal_init.cold() While starting the secondary, it is possible that the primary is allocating memory on different NUMAs. I'm saying this because if in the primary I replace the dpdk memory allocation function (rte_zalloc...) with a plain memalign I don't get this problem. --0000000000003bf61e05e6e9bd70 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a primary process that spawns a secondary process.P= rimary is on NUMA 1 while secondary on NUMA 0.
The secondary process st= arts up but when calling rte_eal_init it gets stuck with this backtrace:

flock()
sync_walk()
rte_memseg_l= ist_walk_thread_unsafe()
eal_memalloc_sync_with_primary()
rte_eal_hugepage_attach()
rte_eal_memory_init()
rte_= eal_init.cold()

While starting the secondary, it i= s possible that the primary is allocating memory on different=C2=A0NUMAs. I= 'm saying this because if in the primary I replace the dpdk memory allo= cation function (rte_zalloc...) with a plain memalign I don't get this = problem.



--0000000000003bf61e05e6e9bd70--