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 1A88145B40; Tue, 15 Oct 2024 08:48:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D391C4027C; Tue, 15 Oct 2024 08:48:29 +0200 (CEST) Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by mails.dpdk.org (Postfix) with ESMTP id C71E840270 for ; Tue, 15 Oct 2024 08:48:27 +0200 (CEST) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 5329613021 for ; Tue, 15 Oct 2024 08:48:27 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 42F0912EF3; Tue, 15 Oct 2024 08:48:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on hermod.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,AWL, T_SCC_BODY_TEXT_LINE autolearn=disabled version=4.0.0 X-Spam-Score: -1.2 Received: from [192.168.1.85] (h-62-63-215-114.A163.priv.bahnhof.se [62.63.215.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id D1F6B12FAA; Tue, 15 Oct 2024 08:48:24 +0200 (CEST) Message-ID: <5d51d4b7-8e07-49cd-b4e1-0e849567e9a4@lysator.liu.se> Date: Tue, 15 Oct 2024 08:48:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 7/7] eal: keep per-lcore power intrinsics state in lcore variable To: Stephen Hemminger , =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: dev@dpdk.org, =?UTF-8?Q?Morten_Br=C3=B8rup?= , Konstantin Ananyev , David Marchand , Jerin Jacob , Luka Jankovic , Konstantin Ananyev , Chengwen Feng References: <20241011081901.816211-2-mattias.ronnblom@ericsson.com> <20241014074348.821962-1-mattias.ronnblom@ericsson.com> <20241014074348.821962-8-mattias.ronnblom@ericsson.com> <20241014093048.01dd7e40@hermes.local> Content-Language: en-US From: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= In-Reply-To: <20241014093048.01dd7e40@hermes.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP 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 On 2024-10-14 18:30, Stephen Hemminger wrote: > On Mon, 14 Oct 2024 09:43:48 +0200 > Mattias Rönnblom wrote: > >> Keep per-lcore power intrinsics state in a lcore variable to reduce >> cache working set size and avoid any CPU next-line-prefetching causing >> false sharing. >> >> Signed-off-by: Mattias Rönnblom >> Acked-by: Morten Brørup >> Acked-by: Konstantin Ananyev >> Acked-by: Chengwen Feng >> Acked-by: Stephen Hemminger > > This looks like a problem. > > -------------------------------BEGIN LOGS---------------------------- > #################################################################################### > #### [Begin job log] "ubuntu-22.04-clang-asan+doc+tests" at step Build and test > #################################################################################### > + configure_coredump > + which gdb > + ulimit -c unlimited > + sudo sysctl -w kernel.core_pattern=/tmp/dpdk-core.%e.%p > kernel.core_pattern = /tmp/dpdk-core.%e.%p > + devtools/test-null.sh > ================================================================= > ==67776==ERROR: AddressSanitizer: invalid alignment requested in aligned_alloc: 64, alignment must be a power of two and the requested size 0x8000008 must be a multiple of alignment (thread T0) > #0 0x5562b2504042 in aligned_alloc (/home/runner/work/dpdk/dpdk/build/app/dpdk-testpmd+0xaad042) (BuildId: 731d8ec8ca4a6bf8e01bfd7548ebeb784aece6e3) > #1 0x5562b37f671b in lcore_var_alloc /home/runner/work/dpdk/dpdk/build/../lib/eal/common/eal_common_lcore_var.c:77:20 > #2 0x5562b37f671b in rte_lcore_var_alloc /home/runner/work/dpdk/dpdk/build/../lib/eal/common/eal_common_lcore_var.c:123:9 > #3 0x5562b341b902 in rte_power_ethdev_pmgmt_init /home/runner/work/dpdk/dpdk/build/../lib/power/rte_power_pmd_mgmt.c:775:2 > #4 0x7f76b7829eba in call_init csu/../csu/libc-start.c:145:3 > #5 0x7f76b7829eba in __libc_start_main csu/../csu/libc-start.c:379:5 > > ==67776==HINT: if you don't care about these errors you may set allocator_may_return_null=1 > SUMMARY: AddressSanitizer: invalid-aligned-alloc-alignment (/home/runner/work/dpdk/dpdk/build/app/dpdk-testpmd+0xaad042) (BuildId: 731d8ec8ca4a6bf8e01bfd7548ebeb784aece6e3) in aligned_alloc > ==67776==ABORTING Yes. Thanks.