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 05493A0352 for ; Tue, 8 Feb 2022 19:05:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4556741157; Tue, 8 Feb 2022 19:05:13 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2054.outbound.protection.outlook.com [40.107.20.54]) by mails.dpdk.org (Postfix) with ESMTP id A77B54111B; Tue, 8 Feb 2022 19:05:11 +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=YAwu7D+I/E4YinmINKwWjp4LWJsy0BbOYncpw4GBfaM=; b=0XBwQqv7q4tFnyh3f7VeHOeqV1+D6HvTi/+CM8BZUQwz6niGgTuyhDlL2ZQy1Y21fViKurmJKMFzUitpxXJdXzi4kyQjUBg4IsA+FRrTqGUgndF76KNtK1FeGTV9/81kkYpdYt0yBZrRHyTRiwad5pFnvo+oz4LmCCAqFMaDQYA= Received: from AS9PR07CA0024.eurprd07.prod.outlook.com (2603:10a6:20b:46c::33) by AS8PR08MB6406.eurprd08.prod.outlook.com (2603:10a6:20b:33c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Tue, 8 Feb 2022 18:05:10 +0000 Received: from AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:46c:cafe::a0) by AS9PR07CA0024.outlook.office365.com (2603:10a6:20b:46c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11 via Frontend Transport; Tue, 8 Feb 2022 18:05:10 +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 AM5EUR03FT016.mail.protection.outlook.com (10.152.16.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12 via Frontend Transport; Tue, 8 Feb 2022 18:05:10 +0000 Received: ("Tessian outbound 2877e54fe176:v113"); Tue, 08 Feb 2022 18:05:09 +0000 X-CR-MTA-TID: 64aa7808 Received: from 449fe2cc75b5.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D29E6A09-C67D-49A9-A2E0-D4224BC5DE16.1; Tue, 08 Feb 2022 18:05:04 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 449fe2cc75b5.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 08 Feb 2022 18:05:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FaLKzHGqLx+HM3PGB/RKfJj+jZ8mLoVXehUQBrT3jZsNLHSuCiR3mAL7yUM4MEAX5F3kLw2fKMWVVgwOq1c6dzpUBlsS/IrnJAjB+bwCAvtqRWZxpP8JwnnGV37AEZWLUYjff17VIwqB3snNwUWyGGoGjannK6XUYYOuPbHjjuuO52aAIu9P5BF05yBvIjdUZSn5dtOKUh57uJLTorkCku7Q+2h+2yKiUb2trU22zfaaakpX+k8c0ZJX4KZYuNt5CJcFse9qic799P5bCfwh0oWqMbOlWcpIuvkuLoRsBBixFS9319ASWRWY9Byots/FUfQoC5UY6RO3dModVFasTA== 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=YAwu7D+I/E4YinmINKwWjp4LWJsy0BbOYncpw4GBfaM=; b=eZTXldbgHflsVrF18bvxeLakXVggWEjSaBcVLsu3wWsvXf6YEzvOj6ainnMEXI/URybHdf6iJS1ITLCKqunjUhTwGD+7QVBw/7yTq3lL256KEMyOptSAWv9HUuHOBA64fXflaZJyeWiO/oSJUQgeab2CPsdrh5NwtYW0wYq48akoiovo/IAADaosl6kxSAOSLenZ2x4Uo2XG40F/Vr/r3VR/U2hqto6nsSzD+S6/TVfSxkuRD2pDAftAWYIee/nEPZFLALnBojcn5eZl0APVhlSgMO2YanDuygh0sMxEMHOH/ke4bS+sTUFAV+G0JXhjq8C1K32wPMR4bh8G5cjxfA== 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=YAwu7D+I/E4YinmINKwWjp4LWJsy0BbOYncpw4GBfaM=; b=0XBwQqv7q4tFnyh3f7VeHOeqV1+D6HvTi/+CM8BZUQwz6niGgTuyhDlL2ZQy1Y21fViKurmJKMFzUitpxXJdXzi4kyQjUBg4IsA+FRrTqGUgndF76KNtK1FeGTV9/81kkYpdYt0yBZrRHyTRiwad5pFnvo+oz4LmCCAqFMaDQYA= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DBBPR08MB4629.eurprd08.prod.outlook.com (2603:10a6:10:f4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Tue, 8 Feb 2022 18:05:02 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::6d04:5964:7813:4891]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::6d04:5964:7813:4891%4]) with mapi id 15.20.4951.018; Tue, 8 Feb 2022 18:05:01 +0000 From: Honnappa Nagarahalli To: wangyunjian , "dev@dpdk.org" , "users@dpdk.org" CC: Feifei Wang , Ruifeng Wang , Huangshaozhang , dingxiaoxiong , nd , 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: AdgViF0h9zoMAuSNQ6SwzCLA7pDXJwA0WT2gAVxGsfAAPUvqgAATMLyw Date: Tue, 8 Feb 2022 18:05:00 +0000 Message-ID: References: <61c1d85e0f8a42d4812830864fc59b0a@huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 4402CFF22DF16D45B22D5A6EEFCA90B6.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: 99beda58-fb9a-4a1c-0408-08d9eb2d8bd8 x-ms-traffictypediagnostic: DBBPR08MB4629:EE_|AM5EUR03FT016:EE_|AS8PR08MB6406:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:6430;OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: RPEIZp9YnGjdTwFERIbYn6F2foWrKrHs1K/bFYezZNUV28bJXnPMYs+Wx0wWJ4KpXWxUHf5wOdwiqYaW7nbnpebJVI5Rs950KHtml3r0FeNEagmFkGtBkeCsAGZGjg2L0fsA6RdRWR6qvgRQ0rvOQ7PuPn+D4NUrPdF82Yeh9qQ2+aA5cZS1Sc+IuNZoAJO47kaqJLU/XbJq64nz41O7qgZ8mohtUcNBL1UsHi/yodhDh1Osi/V5y6yVrLTv0UcJaruSgxm030RV+UaIPMKanlQEVb7wLeRVbhqTxHoGiBk4X2qw09x8cZInhD/cKoF3Dr+9uturzFr8xQAX+er/YF6vgyKL6o94fsdQg5f4I/6qlXBjh5ny8OsXN2HALAFvn7RMSE4ts5W1ljGGl+7a9Wsl8yISlVUb231lV+ao8URZz8tpypAZopLSyQwaNt7bu6rHljad8OjFJGA3lIoVGF0OpugXpOY9PDVL32OeFdE+birOdh2jv7QUSR2hwJvuEWIRwuufS5fyRV7ucp5W1ah0L7+kdaTuQyROZI/RpPRw4ZK+7Plj2Uq+VrvN0vl0VQdF21ltPK7gpAAEAFogBwseAJ9ImoXcgFSMnukv7sMQYQuFDY+fghqK7szpObW3t12uWevkrzYrM5PV6AtnoDIYfgTlkIGo/WcQOGvqkY7JNONDhy/GA+vd8+D49alqbgtDi46AipKlq3JpK3lbbQ== 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)(4326008)(55016003)(66446008)(8936002)(9326002)(64756008)(52536014)(66476007)(66556008)(2906002)(33656002)(508600001)(26005)(8676002)(66946007)(86362001)(38070700005)(110136005)(53546011)(122000001)(9686003)(5660300002)(76116006)(71200400001)(316002)(6506007)(186003)(54906003)(38100700002)(7696005); DIR:OUT; SFP:1101; Content-Type: multipart/alternative; boundary="_000_DBAPR08MB58143CC4AE15DCD6D3DF6C2D982D9DBAPR08MB5814eurp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4629 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: AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: cc215219-7a1e-4ca7-09f8-08d9eb2d86ae X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I1f9rLxVu/JCrLFU65udersvI6/6h5l4MDKpKs0kU9zl3geDsqAQM3NbYQNVWvGNvxhSgIKTNqCiLmYvmBfaVMCtwa2X4QBlxmULR0v2mdUDpFMIo2azEEm9GhxYHHy+W37Ma5crqklxUi6wt+3O9HrFB4zruxSld98XOO7UtmdecgmvldpMxmkaEHWjqwvjBsqq37gP+1HDLxOGWQ/jT/NYuAMrRL5dylyj02kj1dK7GS95fDK9CQMQgi4sCk22RFXuKblvGevJTQLGgbe4PRlm9dC196inXiMVHUo4rM9dyNL2MvE3exdbETA13qjWWdqZR8BRzkY/eL/9T8b+UgxaXZKDnRsvlEs9acuXXc7XY/lGvmLxxe5tFfTP/GKLsN9+sh80bZhY9h6pkb531WSTrdj3BgtA3bhCbFsFdf4bNt9QRj7cYBaWxRKvHS2lUeYFamEYcVOwS1UydVATycVMD9RbQoKTXDvhISnuWSv302UsFsXQocHv+G/8ZSeE9h87Jf8cQ57vcRyb2Ua/Q3DQFvFWSKTUoawq9oWUfp1ZhScfhjJnCfiVwbAj4VYiMrGizwx1xULEIbVY7BNHXRnjXXwacU3IGU03zGCdYDGiAr7RcUlCiB+hR3bPaV+1SqpkibAzuBf8lqtZjUNpWAVOULlIcp2Gnp418hd2ZU1MdnDs+OvDN8SMueHL0L78 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)(40470700004)(9686003)(36860700001)(7696005)(82310400004)(316002)(6506007)(356005)(40460700003)(26005)(55016003)(110136005)(54906003)(2906002)(53546011)(33656002)(9326002)(336012)(52536014)(86362001)(47076005)(508600001)(450100002)(4326008)(186003)(8936002)(5660300002)(70206006)(70586007)(8676002)(81166007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2022 18:05:10.0938 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99beda58-fb9a-4a1c-0408-08d9eb2d8bd8 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: AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6406 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_DBAPR08MB58143CC4AE15DCD6D3DF6C2D982D9DBAPR08MB5814eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Yunjian, This is not a synchronization problem. The memory is getting= allocated and used in the same thread. Are you using a single socket syste= m? Thanks, Honnappa From: wangyunjian Sent: Tuesday, February 8, 2022 2:01 AM To: Honnappa Nagarahalli ; dev@dpdk.org; user= s@dpdk.org Cc: Feifei Wang ; Ruifeng Wang = ; Huangshaozhang ; dingxiaoxiong ; nd Subject: RE: [dpdk-dev][dpdk-users] A problem about memory may not be all-z= ero allocated by rte_zmalloc_socket() There is also a condition that the hugepagesz is 1G. If the hugepagesz is 2M, this problem cannot be repeated. Thanks, Yunjian From: wangyunjian Sent: Monday, February 7, 2022 10:44 AM To: 'Honnappa Nagarahalli' >; dev@dpdk.org; users@dpdk.org Cc: Feifei Wang >; Ruifen= g Wang >; Huangshaozhang = >; dingxiaoxion= g >; nd > Subject: RE: [dpdk-dev][dpdk-users] A problem about memory may not be all-z= ero allocated by rte_zmalloc_socket() Hi, Honnappa This problem is probability. Test case need to be executed multiple times. The test steps and code are as follows: /home/dpdk #./arm64-armv8a-linuxapp-gcc/app/dpdk-testpmd --legacy-mem -c 0= xC -m 8192 app/test-pmd/testpmd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 55eb293cc0..3c127f9623 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -4251,6 +4251,20 @@ main(int argc, char** argv) rte_stats_bitrate_reg(bitrate_data); } #endif + + printf("start test rte_zmalloc_socket\n"); + char *a; + while((a =3D rte_zmalloc_socket(NULL, 1024 * 1024, 0, SOCKET_ID_ANY= )) !=3D NULL) { + for (int i =3D 0; i < 1024 * 1024; i++) { + if (a[i] !=3D 0) { + printf("a[%d] =3D %d\n",i,a[i]); + } + a[i] =3D 255; // This assignment is important. I= t can increase the probability. + } + } + printf("end test rte_zmalloc_socket\n"); + return EXIT_SUCCESS; + #ifdef RTE_LIB_CMDLINE if (strlen(cmdline_filename) !=3D 0) cmdline_read_from_file(cmdline_filename); Thanks, Yunjian From: Honnappa Nagarahalli [mailto:Honnappa.Nagarahalli@arm.com] Sent: Monday, January 31, 2022 12:22 PM To: wangyunjian >; de= v@dpdk.org; users@dpdk.org Cc: Feifei Wang >; Ruifen= g Wang >; Huangshaozhang = >; dingxiaoxion= g >; Honnappa Nag= arahalli = >; nd > Subject: RE: [dpdk-dev][dpdk-users] A problem about memory may not be all-z= ero allocated by rte_zmalloc_socket() 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 >; Ruifen= g Wang >; Huangshaozhang = >; dingxiaoxion= g > 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_DBAPR08MB58143CC4AE15DCD6D3DF6C2D982D9DBAPR08MB5814eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Yunjian,

   &= nbsp;           This is n= ot a synchronization problem. The memory is getting allocated and used in t= he same thread. Are you using a single socket system?

 

Thanks,<= /span>

Honnappa=

 

From: = wangyunjian <wangyunjian@huawei.com>
Sent: Tuesday, February 8, 2022 2:01 AM
To: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>; dev@d= pdk.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>; nd <nd@arm.com>
Subject: RE: [dpdk-dev][dpdk-users] A problem about memory may not b= e all-zero allocated by rte_zmalloc_socket()

 =

There is also a condition that the hugepagesz is 1G.=

If the hugepagesz is 2M, this problem cannot be repe= ated.

 

Thanks,

Yunjian

 

From: wangyunjian
Sent: Monday, February 7, 2022 10:44 AM
To: 'Honnappa Nagarahalli' <Honnappa.Nagarahalli@arm.com>; dev@dpdk.org; users@dpdk.org
Cc: Feifei Wang <Feifei.W= ang2@arm.com>; Ruifeng Wang <Ruifeng.Wang@arm.com>; Huangshaozhang <huangshaozhang@huawei.com>; dingxiaoxiong <dingxiaoxion= g@huawei.com>; nd <nd@arm.com&g= t;
Subject: RE: [dpdk-dev][dpdk-users] A problem about memory may not b= e all-zero allocated by rte_zmalloc_socket()

 

Hi, Honnappa=

&= nbsp;

This p= roblem is probability. Test case need to be executed multiple times.

&= nbsp;

The te= st steps and code are as follows:

&= nbsp;

/home/= dpdk #./arm64-armv8a-linuxapp-gcc/app/dpdk-testpmd --legacy-mem  -c 0x= C  -m 8192

&= nbsp;

app/te= st-pmd/testpmd.c | 14 ++++++++++++++

1 file= changed, 14 insertions(+)

&= nbsp;

diff -= -git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c

index = 55eb293cc0..3c127f9623 100644

--- a/= app/test-pmd/testpmd.c

+++ b/= app/test-pmd/testpmd.c

@@ -42= 51,6 +4251,20 @@ main(int argc, char** argv)

 =             &nb= sp;    rte_stats_bitrate_reg(bitrate_data);

 =        }

#endif=

+=

+ = ;      printf("start test rte_zmalloc_socket\= n");

+ = ;      char *a;

+ = ;      while((a =3D rte_zmalloc_socket(NULL, 1024 = * 1024, 0, SOCKET_ID_ANY)) !=3D NULL) {

+ = ;            &n= bsp;  for (int i =3D 0; i < 1024 * 1024; i++) {

+ = ;            &n= bsp;            if (= a[i] !=3D 0) {

+ = ;            &n= bsp;            = ;         printf("a[%d] =3D %d= \n",i,a[i]);

+ = ;            &n= bsp;            }

+ = ;            &n= bsp;            a[i]= =3D 255; // This assignment is important. It can increase the probability.=

+ = ;            &n= bsp;  }

+ = ;      }

+ = ;      printf("end test rte_zmalloc_socket\n&= quot;);

+ = ;      return EXIT_SUCCESS;

+=

#ifdef= RTE_LIB_CMDLINE

 =        if (strlen(cmdline_filename) !=3D 0)

 =             &nb= sp;    cmdline_read_from_file(cmdline_filename);<= /span>

 

Thanks,

Yunjian

 

From: Honnappa Nagarahalli = [mailto:Honnappa.Nagarahall= i@arm.com]
Sent: Monday, January 31, 2022 12:22 PM
To: wangyunjian <wangyu= njian@huawei.com>; dev@dpdk.org; users@dpdk.org
Cc: Feifei Wang <Feifei.W= ang2@arm.com>; Ruifeng Wang <Ruifeng.Wang@arm.com>; Huangshaozhang <huangshaozhang@huawei.com>; dingxiaoxiong <dingxiaoxion= g@huawei.com>; Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>; nd <nd@arm.com>
Subject: RE: [dpdk-dev][dpdk-users] A problem about memory may not b= e all-zero allocated by rte_zmalloc_socket()

 

Hi Yunjian,

           &= nbsp;    That’s interesting. Is it possible to elabora= te 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 architecture uses. There could be a barrier missing i= n the code.

 

Thanks,

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.W= ang2@arm.com>; Ruifeng Wang <Ruifeng.Wang@arm.com>; Huangshaozhang <huangshaozhang@huawei.com>; dingxiaoxiong <dingxiaoxion= g@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_DBAPR08MB58143CC4AE15DCD6D3DF6C2D982D9DBAPR08MB5814eurp_--