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 A4F74A04A9 for ; Mon, 31 Jan 2022 05:22:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 78E934116A; Mon, 31 Jan 2022 05:22:20 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80079.outbound.protection.outlook.com [40.107.8.79]) by mails.dpdk.org (Postfix) with ESMTP id CD7EB40F35; Mon, 31 Jan 2022 05:22:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RCORWT5h7aos83kaiaIIlzfFEKIb61C29HRotUio9ZA=; b=Pm+F1VzijZVe/9nbnjBVt84SvJxvB+Xw6e4K0Ult1QIFwBt6pyWaHylHd9qTqS7LEKzpscTLDSV4QgiuxXgDw+m9JVoJw4FLqiHJlv0Go5sWVgnV7PX3QOzx9EHL8r0wIR2cblZDI+gdRubAqgxEiHq1pLqrmgfq0Kih+eJwKXU= Received: from DB8PR03CA0019.eurprd03.prod.outlook.com (2603:10a6:10:be::32) by VI1PR08MB3295.eurprd08.prod.outlook.com (2603:10a6:803:4a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.18; Mon, 31 Jan 2022 04:22:15 +0000 Received: from DB5EUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:be:cafe::a2) by DB8PR03CA0019.outlook.office365.com (2603:10a6:10:be::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.21 via Frontend Transport; Mon, 31 Jan 2022 04:22:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT052.mail.protection.outlook.com (10.152.21.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.15 via Frontend Transport; Mon, 31 Jan 2022 04:22:14 +0000 Received: ("Tessian outbound 18e50a6f0513:v113"); Mon, 31 Jan 2022 04:22:14 +0000 X-CR-MTA-TID: 64aa7808 Received: from cc1ea938b11a.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6F19BED3-580E-48E2-9A01-A4C80810E829.1; Mon, 31 Jan 2022 04:22:03 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cc1ea938b11a.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 31 Jan 2022 04:22:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gWm1bTpFMRMDfyPjzZ7Hr8HiS86zogcYkhtf3AfIPI3/kGi1EC0xN05r3HgizVK4IaqGX4vhGH5wwTR7k2D42X/FokUvdeOqfvFzmVTGkcbBNFjSY8qwu9ZSfsqChp10bm2qnvFrE+pdhGvQrnNT6KUCZ9fnoRKyW+N8TdA+TedIZ/dgrtyBfU/lUFdUviMd8h94D3vPnZYLm1UwHIZtAsju1/s4Mhbkl0z2gfhJFazkkjhghg+KJyJPuQfelvKNLGBuzf7Rs9WY163RNViSy4bsY03qtziAGqU2YwH5G1oeFyTdXaGcE7o2ExZ5AzJwECMiKfm0heTScnUQXVDeSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RCORWT5h7aos83kaiaIIlzfFEKIb61C29HRotUio9ZA=; b=eKQo0BMqqjqLLlWTUPMGYYZwR3xMI+EK4hUWjQcLUIAG0yWskzzHh7FYK0/r2TxGBKDHPU2HigRqClXMmyKJ4aaFR/7KbHbueeI0E1x3dQ8TkBjCupJfS73c8bnSyjrKO/Mr+CMLP61S2sskB9fLK+uTtT9tbuQZji9wcyLMSy4QmvCuItIAhjJVZ3tsaRS1nY8hxgPpPkzRxmkte9mbYdW2mwYL5rm63FreybBuEJ/1B1c6yo8Vkpzsy0fWH/ZkZljm6Ubg3egxoLHwpUPLpwj/ldBjWXFIprPZEfREeNzU9qtZQZggV1smZ1AmXAsu2NLRktnJf7w3shZdg9wn4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RCORWT5h7aos83kaiaIIlzfFEKIb61C29HRotUio9ZA=; b=Pm+F1VzijZVe/9nbnjBVt84SvJxvB+Xw6e4K0Ult1QIFwBt6pyWaHylHd9qTqS7LEKzpscTLDSV4QgiuxXgDw+m9JVoJw4FLqiHJlv0Go5sWVgnV7PX3QOzx9EHL8r0wIR2cblZDI+gdRubAqgxEiHq1pLqrmgfq0Kih+eJwKXU= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by HE1PR0802MB2490.eurprd08.prod.outlook.com (2603:10a6:3:d9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.20; Mon, 31 Jan 2022 04:21:59 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::7c20:8c83:fc45:db99]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::7c20:8c83:fc45:db99%7]) with mapi id 15.20.4930.021; Mon, 31 Jan 2022 04:21:58 +0000 From: Honnappa Nagarahalli To: wangyunjian , "dev@dpdk.org" , "users@dpdk.org" CC: Feifei Wang , Ruifeng Wang , Huangshaozhang , dingxiaoxiong , Honnappa Nagarahalli , nd Subject: RE: [dpdk-dev][dpdk-users] A problem about memory may not be all-zero allocated by rte_zmalloc_socket() Thread-Topic: [dpdk-dev][dpdk-users] A problem about memory may not be all-zero allocated by rte_zmalloc_socket() Thread-Index: AdgViF0h9zoMAuSNQ6SwzCLA7pDXJwA0WT2g Date: Mon, 31 Jan 2022 04:21:57 +0000 Message-ID: References: <61c1d85e0f8a42d4812830864fc59b0a@huawei.com> In-Reply-To: <61c1d85e0f8a42d4812830864fc59b0a@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 3CB3805F6BEEF0449742AD4370EA7686.0 x-checkrecipientchecked: true Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-MS-Office365-Filtering-Correlation-Id: 649c700c-f40a-4f8c-e7b5-08d9e4714263 x-ms-traffictypediagnostic: HE1PR0802MB2490:EE_|DB5EUR03FT052:EE_|VI1PR08MB3295:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: XQsWOqacFfbamkiZz3QkIxEcd0VwCiHdjElG7Z1cc2I2ECKszm+sWs5pQnDwEFr5B8mUIyxp6bB+XPa1pNz7kyU8XvOiAbQGmBa/pjI8YC7qhsdJTgMhS20mf2Drkvj3hZelfuHF6Dk0qQarzr0XrMBV4NOI7uTUbgToih7EUH0KXBC0SkCWUKm3Z75+rrfJ3pv2gC6cp8RYoh/12ofk0mojONAntr5I6VC6R06udLBfXGGWbJPQiAo4okrrgTUqxtQC5ZxFZPwNZqpQNnVhmAOLQmlJaNhNwJ6mjEq1vrck6fCVpXl3OOzlcyE+s0ScPeZV4mdImE+960qL/EYnop1i98RrjRMMpM0pQYgpcuNt3KNsMzAw+NC/qEpAB6Y8n1cr/7RFgNCB/+OkzwcNt/PvrEEXY5LvuXbTiArU8IpRCY1tD48eZeLmT4YXKi7roJDbtaPrJZwP2AurKqJdc5DUd6gJR9fYBRW30HSD2EXjlr1062ZiZ/PYwVd2nbQm96G6m3Orr5wm/2Qtnnmx+yiwzz2spwR3U4vZdYKZW2Km3ZUY/bcNZmhNC6KsMxtSQJuBBd4vJL5nqI5ToDR/qF1xxz6zR9HOr0ttvZAEoLXGxJiOzLe7SP3PuxGa+/bdAA0CSV1ORfYBVIY+1k2NCZkej/FZ1jgHiFy+YoFyzgXlwlKZeqQKGhdPcx33S0/yZDA2qPOLnsKROMO6dgeoVQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(2906002)(9326002)(4744005)(55016003)(86362001)(5660300002)(52536014)(186003)(26005)(71200400001)(7696005)(9686003)(6506007)(53546011)(4326008)(66476007)(66556008)(66446008)(76116006)(64756008)(66946007)(54906003)(8676002)(316002)(8936002)(33656002)(508600001)(110136005)(38070700005)(122000001)(38100700002)(20210929001); DIR:OUT; SFP:1101; Content-Type: multipart/alternative; boundary="_000_DBAPR08MB58145AE8598C5B3E38A91AF298259DBAPR08MB5814eurp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2490 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1b3fa6ef-4fd8-40ca-0971-08d9e47138ae X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n63ENgGM+n4lQCuYJ0GD8GRxlb1NjvhiA7qZAeEJUaWDOj91alJIJjqy04GcjjWlkBX3Jl+U4kBc8CwxmbqlbR6QY4Vv/4TrtYTkVP2b+KNEJXz5wRMQYDI/QS9a0YBSbSVGO2Y6WNWWUASm55QXPXrDLGKRQbS8Xg6a20hXztdvOWgUoh1pl0tfNbFcCRb760sNPP4huGOvSMiO+tPbPYYVaULIk7yq/JhVZRS7NiDTk3QsoFPD9b34qbKMtgLQ4nnkZJufAq+WpmGQ1ClyOG9HwKCjs5Ac+iNJqASmiFKfZkb9f1T0wg2OCCnIS7GHLnBIiFtvnJUbdePectpi3l7XxVV4YjuftblUlqD2YLZ66+gc0q+HsKOWl2VZtG4ua86uIf6kMMmUuX6eeYGlcxKasoCN+9ZsVIAtktWEZdNKtrW8s4omcFqKRRAjeWRdi7QhdB0T60L1xgSh6zDzG5L12kc9nPteY1qdjgSsGAfJOHqbuUbtcBhOkJLcApR5X92Z17f7y60qPh4vXTIK1j3fq8mn3p9R3JqeZ8aIZbz6DMPubtNB/eU9FmIU2ZTcM9oPyziZiD1x/hUKhRqU+gMYF5lDzmz5bTyRJtzx/RE+obDXkIQ/AHectL6IiNdK3KdogF04gu+JC4nFlpek5g== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(53546011)(7696005)(54906003)(26005)(186003)(6506007)(9686003)(316002)(82310400004)(110136005)(86362001)(70206006)(70586007)(8936002)(450100002)(508600001)(356005)(81166007)(36860700001)(336012)(8676002)(47076005)(4326008)(52536014)(9326002)(33656002)(55016003)(2906002)(5660300002)(20210929001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2022 04:22:14.5760 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 649c700c-f40a-4f8c-e7b5-08d9e4714263 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3295 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 --_000_DBAPR08MB58145AE8598C5B3E38A91AF298259DBAPR08MB5814eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Yunjian, That's interesting. Is it possible to elaborate the use cas= e or possibly provide the code snippet? It is possible that it is a synchronization problem due to relaxed memory m= odel that Arm architecture uses. There could be a barrier missing in the co= de. Thanks, Honnappa From: wangyunjian Sent: Saturday, January 29, 2022 9:21 PM To: dev@dpdk.org; users@dpdk.org Cc: Feifei Wang ; Ruifeng Wang = ; Huangshaozhang ; dingxiaoxiong Subject: [dpdk-dev][dpdk-users] A problem about memory may not be all-zero = allocated by rte_zmalloc_socket() Hi, all There's a problem that the memory are allocated by rte_zmalloc_socket() may not be all-zero on the ARM platform. However, the x86 platform does not have this problem. Any ideas ? Thanks, Yunjian --_000_DBAPR08MB58145AE8598C5B3E38A91AF298259DBAPR08MB5814eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Yunjian,

   &= nbsp;            Tha= t’s interesting. Is it possible to elaborate the use case or possibly= provide the code snippet?

 

It is possible that= it is a synchronization problem due to relaxed memory model that Arm archi= tecture uses. There could be a barrier missing in the code.

 

Thanks,<= /span>

Honnappa=

 

From: = wangyunjian <wangyunjian@huawei.com>
Sent: Saturday, January 29, 2022 9:21 PM
To: dev@dpdk.org; users@dpdk.org
Cc: Feifei Wang <Feifei.Wang2@arm.com>; Ruifeng Wang <Ruife= ng.Wang@arm.com>; Huangshaozhang <huangshaozhang@huawei.com>; ding= xiaoxiong <dingxiaoxiong@huawei.com>
Subject: [dpdk-dev][dpdk-users] A problem about memory may not be al= l-zero allocated by rte_zmalloc_socket()

 =

Hi, all

&nbs= p;

There's a= problem that the memory are allocated by rte_zmalloc_socket()

may not b= e all-zero on the ARM platform.

&nbs= p;

However, = the x86 platform does not have this problem.

&nbs= p;

Any id= eas ?

&nbs= p;

Thanks= ,

Yunjia= n

&nbs= p;

--_000_DBAPR08MB58145AE8598C5B3E38A91AF298259DBAPR08MB5814eurp_--