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 24E0042B95 for ; Thu, 25 May 2023 07:36:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E23740DDB; Thu, 25 May 2023 07:36:08 +0200 (CEST) Received: from mx0a-00196b01.pphosted.com (mx0a-00196b01.pphosted.com [67.231.149.170]) by mails.dpdk.org (Postfix) with ESMTP id CB31140A82 for ; Thu, 25 May 2023 07:36:06 +0200 (CEST) Received: from pps.filterd (m0096263.ppops.net [127.0.0.1]) by mx0a-00196b01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34P4w4rv009946 for ; Thu, 25 May 2023 01:36:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netscout.com; h=from : to : subject : date : message-id : content-type : mime-version; s=netscout.com.09.24.2020; bh=rvW1JW2fU8d4p/lgOIkQ7CTK1lKi3ekMgnQSd1oEqbU=; b=IrKjXvp8WujbxCm/e9zth0sz3J0HSGShnGfrXM3lRmWGGHvkaerPff1tZXr/5lHuwxy4 iJd+dgV354mwxdEPmQ//pw0wqFHSP/UPdEFPQZ43QancLq+8FQW68agYPdEPF8xeZWuA D72AQcrH2w6Cfj4XybI7Xp3RR5aolehnl2tkxThshG70NirsJMgQsV0oE7LWLDQqORKU 2XhlGOuz2T/ueZDE3DhSF29PrDDZhKhxaOlpTpcQSWISLLCAJvgCWxHbGq+iRVPajnr2 TwIE056lt8w11R+4Ptv+TUBzg7IXldHdjIukq47Ug5K/rb2oMCaslIQNkqHdiLR4UAr7 fQ== Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2046.outbound.protection.outlook.com [104.47.57.46]) by mx0a-00196b01.pphosted.com (PPS) with ESMTPS id 3qptxdebtx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 25 May 2023 01:36:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C4chAHxGaBjra6I2IGnSGuBhbP370i9xyysG2LdhVafPczvF26nszuR6CxSsdS1vl4XJCXeJMRzYuQUziJOBVaPQviFTbsACt4GtG9YMBfeVk5nQA/rx1Aa49mtLbfT1F9ZJCG8+2mi2TULPpAjleXkglcuArQYQHB6CUmyXncfZIbHWjAfI35cb2oYy94t+/8B4IK8XdZiXUN801lPp/T1xxXNgVUJbecnMMYaJD8A5NXqxPG/2niWJN8RLh9Pq4DOf3tMGN+SfzzNU8nJS1OWi1rcbOlsXcI3ZYi5CVflHrN7dg8691TuwpRDoVy1HDUYiey0qrBjLH42OI9x3Ag== 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=rvW1JW2fU8d4p/lgOIkQ7CTK1lKi3ekMgnQSd1oEqbU=; b=T6yRHYnW4QlJeIbhyaJBd6iaHRSaFNAZ1jAURUQGF5qKlEfUa9QncKaYePJMO3RBkn/TGYfPEBzb4hs9n5i1M6cuyAzK3MP231S+uiTz4Ma7QuewlZXMZLhE+MpcdgSDb6xfYPa0Hgmw8HfYd9/D1CsArSAznUlYmTkLF9iTRlJYp0ZxpXWdgArgk8s5QF+rNjxpSZHCVZyejfeu1FekSTDsB/6vo8rZ1UMTyio2QYaSYwZ+E+8WlINyzHGeTT9S6lpxYGKIjiiXRr3ECGvITUaD1kbrm68j9iUOEEaVP7dsCnw8nSPrLorXn1X5hx8jv72NZrN8RhKwi527TIeeBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netscout.com; dmarc=pass action=none header.from=netscout.com; dkim=pass header.d=netscout.com; arc=none Received: from PH0PR01MB6730.prod.exchangelabs.com (2603:10b6:510:75::16) by SJ0PR01MB6269.prod.exchangelabs.com (2603:10b6:a03:298::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15; Thu, 25 May 2023 05:36:02 +0000 Received: from PH0PR01MB6730.prod.exchangelabs.com ([fe80::1145:c3a0:a948:a761]) by PH0PR01MB6730.prod.exchangelabs.com ([fe80::1145:c3a0:a948:a761%4]) with mapi id 15.20.6433.015; Thu, 25 May 2023 05:36:02 +0000 From: "Lombardo, Ed" To: "users@dpdk.org" Subject: DPDK hugepages Thread-Topic: DPDK hugepages Thread-Index: AdmOsODBuKQwLafXTtejRIUYz6xVuA== Date: Thu, 25 May 2023 05:36:02 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR01MB6730:EE_|SJ0PR01MB6269:EE_ x-ms-office365-filtering-correlation-id: c76f00db-c0ab-4c1e-33a3-08db5ce1ed53 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fIL4aWsjzqZ0YsqBtAYuGfcoCy7F073aaBnaZN2IOstkIzfr4wjePedBe/8K79Bs5zeNa2qKkuWuoIFXiVdrkNmaUZDSBeWlgW7J0xstma75tFfo5XSKk7BLBkEc4TA4MPPKqUFmoXh+uE5qIHHqHSHlUBAKYhONNUsF+VR2enX4TiQfw3orYeYqKwzZvJHFof+/idQ9FKVjKfDEhug88QWatkxUfoIUzGYAqjijn/ju659hG3XTTyRNTTmC2kpM9gFLe6pyxUe64csW2h62qMeJsbxWdp4A9ZAafOw/s+jTzXZF4Bp0QHaZgAPNQpRIW+sHS/2LeRQxaHn+/iOVCJ6Ci6jCYMkj3DPA9aCunxqwhbrcchrqSSCmrTjVjd1iD9ZFo3DjSaUE6Qd4pkeuf/2v8DM7s3va11rC5toPUBnZ6yH1z1OosYt7EXrka035fpYRcdrl0JIhWiZoc291B5HuAYCmQlVqX7A6BMG38/WZ8BjTNV/b04ZBl7KsD1uPPAJ2Guc2J5EUbX2SFAUxOnTO60Gg26ShKCc4xP11WRk6XRGv3dX/5UwXeKXCBel6bC4NWemYIwmEQHJQ/OepKMduXfaaHTGzkdNhRB7RKLs4vz5nQ5Bba3X+xV4biraN x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR01MB6730.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230028)(39860400002)(346002)(136003)(396003)(366004)(376002)(451199021)(7116003)(64756008)(52536014)(66446008)(6916009)(41300700001)(7696005)(66556008)(66476007)(66946007)(76116006)(3480700007)(5660300002)(8936002)(8676002)(9326002)(6506007)(9686003)(478600001)(71200400001)(316002)(26005)(186003)(83380400001)(2906002)(122000001)(55016003)(33656002)(38070700005)(86362001)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4a/lliCY113VafLPzelBDsbwk4gvJ82PsEx88HnAYkB9OCRmvkdYxUJ6aEwQ?= =?us-ascii?Q?S6X9DTnnN41PRHTT3T0oP7kQtXgo9FghqusfHtjM7Frpox7NYflkVZCBdaPo?= =?us-ascii?Q?Sp6OyKQ4BkGuFwNM/VXJNXadoLjc4k1bz6Se0P2RZ+Gztmn09bOtV9j2iWh/?= =?us-ascii?Q?OScyBKQu+rZz/O+ACmOx16f+SVhoGGh/gE2TAvtaJk5EhU/ri87fuXhwUlKV?= =?us-ascii?Q?bm59YFpgvaSJwQhNdVJo3acrzh2lxqW2e+dewDKjm9C5r13r4hktoOAK7nec?= =?us-ascii?Q?HNLMjWeYR/EkNBiYjUaOLy7lsTxq1qysONPDS0+kz3axQq5Hn/YpcKQnUVAS?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RqMB+txihYmpjAAfuQfCEqKGVtD7rM?= =?us-ascii?Q?m5O5m0pwho03jB1jZu2BF6KPsPx8BNMrrGEazcnrcNUMR+7NMu/DqnQD4vrh?= =?us-ascii?Q?UE9ra+RnbRVfOxXK7JwyM9UJ/bNeR1FQnY/8VnNp8gP2RBj8auWEAGM2ZHKO?= =?us-ascii?Q?TzJZ+OG+QysYb/4Ls02vr+75lNEF+wDrPXYTYd5WbEGGS8dHa4LwffWc3VFO?= =?us-ascii?Q?U3E8mVPMhzb/R6oF7sxUb/+5Vv6WzrS5d27GdGVwj9wSUXSdkrGzPSRZ9j+d?= =?us-ascii?Q?ddaZ+8xwfqfy5TQypdlJBKHtOXz7T6//l/qV9afhsJLdU8up0iiMUgcrPzFc?= =?us-ascii?Q?L2gxA7nR3eRsjqZGxDZUImJ9QkOF/e8NA0Rk45PG?= Content-Type: multipart/alternative; boundary="_000_PH0PR01MB673083E3BA36A0D0F8641BF78F469PH0PR01MB6730prod_" MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: EV5lydeKHARzwwySpx5TXvjOPRtqqDY5YAOvn1ckYy+tVBc6Kt6VJ/VNZqMjTakt+PWxUxX0cLvwwArmls7KdQcscGcbl2D2nMaT9+BqaAAKEU2mhg+oxmofVomDk+Qd/jAQmAW9ppbA6ETIj3a0OGFcMglqzUhECiuKQ98ByddYVkWUXmUllqem69K8KUn8CDykwiWKWIpfwpMjshQM/a1yy1NFW1MmnEth+Vk3D+bHXwRha+Krlo6xpFhCmafT6NAwQ+tQGtf17XX3AUbCCiZmANmlJr1qLOPaMZPGqOKz89D2CUXi4LX+jWVlRpBWUKst056B5K/lBnUsOdoz8S8tPLWaHm5DcToTLkAFN6+0cLqaZdD7u6Ftyz0/69I0GHvHSdKFqCCHVnwXi6t0GO40nZLFE0dxnMN74sf38IeYivKwMY5cZKOF14B5qGa4z2BSla+36KmrvrqaH5eottIUjjSks7v9FOd2aI7SDw2RoqSYPh6fP72DSsUlC6f2w+gh/AY6hNoNKmKUgNEAUU7nA6SarVRDHp9vZzPLm6eTEJkPm1ruCS+vn2wADpwCKydXUNcgF82zo1iwVwDt3AUS72ygI0ElsvkyanxQBjlU0Y4/YCAZm9KuKIWMkKuDuBnHR+SmgKbWtHgNrKpHGupl/j72StxSwAyJ1qRpVmkJNoEn3QOgeLBDh2Zyz52QALXxcNPMcBo2rUF1Lb9oK6isuH2OhS6B2dcWttAG8u6Gn2MJCB2535vKHHeYYAsyGRYnGH00pQZEqr4oiZiGfw== X-OriginatorOrg: netscout.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB6730.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: c76f00db-c0ab-4c1e-33a3-08db5ce1ed53 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2023 05:36:02.2052 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 54f11205-d4aa-4809-bd36-0b542199c5b2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FsihFxwqMkoajqnhou4pFWASBrlwq2GxxCcptN6OfLkomkJieW5zxYa2i4cjgQDgXayjWhQmMKjXIiRvF+GMeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR01MB6269 X-Proofpoint-GUID: Q-jqNveWpcEcvmy8w3kUv9RjbyrFF6D2 X-Proofpoint-ORIG-GUID: Q-jqNveWpcEcvmy8w3kUv9RjbyrFF6D2 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 clxscore=1011 mlxlogscore=850 adultscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 impostorscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305250044 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_PH0PR01MB673083E3BA36A0D0F8641BF78F469PH0PR01MB6730prod_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have two DPDK processes in our application, where one process allocates 1= 024 2MB hugepages and the second process allocates 8 1GB hugepages. I am allocating hugepages in a script before the application starts. This = is to satisfy different configuration settings and I don't want to write to= grub when second DPDK process is enabled or disabled. Script that preconditions the hugepages: Process 1: mkdir /mnt/huge mount -t hugetlbfs -o pagesize=3D2M nodev /mnt/huge echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_= hugepages Process 2: mkdir /dev/hugepages-1024 mount -t hugetlbfs -o pagesize=3D1G none /dev/hugepages-1024 echo 8 >/sys/devices/system/node/node0/hugepages/hugepages-1048576kB/nr_hug= epages Application - Process 1 DPDK EAL arguments: Const char *argv[] =3D { "app1", "-c", "7fc", "-n", "4", "--huge-dir", "/de= v/hugepages-1024", "--proc-type", "secondary"}; Process 2 DPDK EAL arguments: const char *dpdk_argv_2gb[6] =3D {"app1 ", "-c0x2", "-n4" , "--socket-mem= =3D2048", "--huge-dir /mnt/huge", "--proc-type primary"}; Questions: 1. Does DPDK support two hugepage sizes (2MB and 1GB) sharing app1? 2. Do I need to specify -proc-type for each Process shown above for argu= ment to the rte_eal_init()? 3. I find the files in /dev/hugpages/rtemap_#s are not present once Proc= ess 2 hugepages-1G/nr_hugepages are set to 8, but when set value to 1 the /= dev/hugepages/rtemap_# files (1024) are present. I can't see how to resolv= e this issue. Any suggestions? 4. Do I need to set -socket-mem to the total memory of both Processes, o= r are they separately defined? I have one NUMA node in this VM. Thanks, Ed --_000_PH0PR01MB673083E3BA36A0D0F8641BF78F469PH0PR01MB6730prod_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

I have two DPDK processes in our application, where = one process allocates 1024 2MB hugepages and the second process allocates 8= 1GB hugepages.

I am allocating hugepages in a script before the app= lication starts.  This is to satisfy different configuration settings = and I don’t want to write to grub when second DPDK process is enabled= or disabled.

 

Script that preconditions the hugepages:<= /p>

Process 1:

mkdir /mnt/huge

mount -t hugetlbfs -o pagesize=3D2M nodev /mnt/huge<= o:p>

echo  1024  > /sys/devices/system/node/= node0/hugepages/hugepages-2048kB/nr_hugepages

 

Process 2:

mkdir /dev/hugepages-1024

mount -t hugetlbfs -o pagesize=3D1G none /dev/hugepa= ges-1024

echo 8 >/sys/devices/system/node/node0/hugepages/= hugepages-1048576kB/nr_hugepages

 

 

Application –

Process 1 DPDK EAL arguments:

Const char *argv[] =3D { "app1", "-c&= quot;, "7fc", "-n", "4", "--huge-dir&quo= t;, "/dev/hugepages-1024", "--proc-type", "seconda= ry"};

 

Process 2 DPDK EAL arguments:

const  char *dpdk_argv_2gb[6]  =3D {"= app1 ", "-c0x2", "-n4" , "--socket-mem=3D2048= ", "--huge-dir /mnt/huge", "--proc-type primary"};=

 

Questions:

  1. Does DPDK support two hugepage sizes (2MB and 1GB) sharing app1?=
  2. Do I need to specify –proc-type for each Process sho= wn above for argument to the rte_eal_init()?
  3. I find th= e files in /dev/hugpages/rtemap_#s are not present once Process 2 hugepages= -1G/nr_hugepages are set to 8, but when set value to 1 the /dev/hugepages/r= temap_# files (1024) are present.  I can’t see how to resolve this issue.  Any = suggestions?
  4. Do I need to set –socket-mem to the= total memory of both Processes, or are they separately defined?  I ha= ve one NUMA node in this VM.

 

Thanks,

Ed

--_000_PH0PR01MB673083E3BA36A0D0F8641BF78F469PH0PR01MB6730prod_--