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 53BC9A0C43; Tue, 14 Sep 2021 14:57:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CFE934068F; Tue, 14 Sep 2021 14:57:40 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2072.outbound.protection.outlook.com [40.107.244.72]) by mails.dpdk.org (Postfix) with ESMTP id 7EC2F4003C for ; Tue, 14 Sep 2021 14:57:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C0opBOqqbcF7vhpT4q+kQgqz0bHrdL/sGz3fcQJjWdcXJATXZKwG0kxM46C1Y/eYqhCPrFDjqTQdsktqmn8/sSo7brPcd2jn8OpawbYB0Yif5VOKYcBXMbUHHEGzdvxQ6loQzx+YlofrX6pODdk0aZOjvfzf6XNFoVwXwdfUKwcy7ws7UPafoxoR+CyodR67Y+YCfEql6Wh8IqudY2uXh+XLUrncu7L+BH4yCNK8T0XOcm1D0VFOYKaHMMVLr3RMdruBaxzKAKm9aYB/qdASzX9mi/pXATmyMO+IjplQjWsOhCST+o/+eqfpsAsqy3r0bA+gCIq5REA1MtVZOqay0A== 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; bh=1bsl8eeKIq/Zr7LlT5PIz2kU5Ey0J4dBbEhdp4FMroE=; b=IHo2ZLYFkZttciPX4ByHgs62jCaQ5mcSLJQ7QFgArRd94TGaWbbDA7vYP3zcL0HQqZJgAaPDjkr6PeH1DdnhqOjrlCILwu9AWawczI13IW8r0CxqtnAnfPYa0EkjSrMVABiZ8GUHC1JxlaliFgP6rJgW8ZUtwzvz2I5LramT/poMDteecgA6cgEGwFqfH0XPKgAtIuLYUlF0Oz2lBfUpYu972WQhcdy/HCjFwo9/Ge5BM0IOeJezGk+JhofVhssu6rhYExFt853oHbb5IOmPnNd5/b1TdgdChWOuALE557wTFEKPUDo03+UCEjQxr1LqqABvu0YHddnYz+9ml2ueDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1bsl8eeKIq/Zr7LlT5PIz2kU5Ey0J4dBbEhdp4FMroE=; b=iwir9gYsd9m8hDVBSxsLQQCycygAWOhte0VWL0jdcBwa6GaofCLsP2ZEv9AdBlZ9qucTnFNBdfGmwPkXz5iV/bU1wNf9dgqlMugQjXdaxUos8w5JHm2uwI3v9bLpV51dzO/zFPk1otSKcEOMAXPkEFMSD8S/8HXMQ+kgSmFxTss5R6iHRJqjnf0C91upx81K4g4b4pSZm+UhF6mKVkMufUz8C09FW6JqYGVxczxh44LElEnMRr7EQLLuqouvkZ1V8QGsEcZPTNP+iCoGJ+jgyBk1vy6fR7CxWgTnIxluHwka9arXbN7OpbyS1VYwYJaJ12QXshGpddM/y+C+so+GkQ== Received: from CH0PR12MB5091.namprd12.prod.outlook.com (2603:10b6:610:be::10) by CH0PR12MB5283.namprd12.prod.outlook.com (2603:10b6:610:d6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Tue, 14 Sep 2021 12:57:38 +0000 Received: from CH0PR12MB5091.namprd12.prod.outlook.com ([fe80::162:1c7c:5623:900c]) by CH0PR12MB5091.namprd12.prod.outlook.com ([fe80::162:1c7c:5623:900c%8]) with mapi id 15.20.4500.019; Tue, 14 Sep 2021 12:57:37 +0000 From: Dmitry Kozlyuk To: John Levon CC: "dev@dpdk.org" , Anatoly Burakov , Slava Ovsiienko Thread-Topic: [PATCH v3 1/3] eal/linux: make hugetlbfs analysis reusable Thread-Index: AQHXqWbKx6fCMZrYoEG/6SiRilz7WqujeuoQ Date: Tue, 14 Sep 2021 12:57:37 +0000 Message-ID: References: <20210716110806.2566788-1-dkozlyuk@nvidia.com> <20210914103456.535427-1-dkozlyuk@nvidia.com> <20210914103456.535427-2-dkozlyuk@nvidia.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nutanix.com; dkim=none (message not signed) header.d=none;nutanix.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1a9e1df9-6102-49ce-3ebd-08d9777f3abd x-ms-traffictypediagnostic: CH0PR12MB5283: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: e17byzaKwPXb9VQZ5/e2OEuydAq55Ek9RZwFidM7w9ssEaym7oaf0+ErDOCZofa3OnH3jE1F+B6oZs/O8F2eHaK34s0R4eLjhIXxo0+9NIkmhq+vSV6wGE561MqQWcTcKz0Jch1qxdCkf9Oz7Kt22kdfHVvugmDtdwKIxriKrJRb+4j9+sb5w3L/mW+qVycBOlP88rOJiwbGppxlxJedk8ekyr0qou5wtIw87eWancP2/0mPJoTitFfmjP/gxPO8cnNm/iKc+uFiPe2c+Ql0/trz0hI4U9leWNi9kqdfJu85hygUkQkd4ilW6vPhtZg4oPQZ6hH63NLsJUwJ+2GvAidbSFT4WZqJukKHrsogkBDtQPWse0g1P3uOos4lhAvizSlU6jc9rGXhgfkFIOzgPidq29bs+fD8l2bQvyWD+s9XF9AiOJEzSIMZt6xOL9JnBPkpV/wntoy2pyxyjQ1H3k47FH2tWUsoYIon0WzocLvTtX7T5sSa1wkh47bo8Y00mA+YZYHSWho7a3UN0EPrMY8mpR7ZhQ3A+reMJW3tqEbv8v+PA4X7kGu1S5itapx792p8RYuStkyb9pbw8t1dqkwA/AhL6pPsNCQktQLqy9ihjjuqfdAio+1GO34p6i3X6zEdHXYbgW2uYpREhOLvr8njeQQVx27dILcXgEUMBqYv5dY8VhfthjyBHs3bLyEEFqdoKQXxykaXjE+6GVcRHQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR12MB5091.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(396003)(376002)(366004)(136003)(52536014)(83380400001)(26005)(478600001)(9686003)(107886003)(7696005)(122000001)(186003)(86362001)(38100700002)(54906003)(5660300002)(316002)(53546011)(76116006)(6506007)(66476007)(8676002)(296002)(38070700005)(55016002)(6916009)(33656002)(66446008)(4326008)(64756008)(66556008)(71200400001)(66946007)(8936002)(4744005)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?koi8-r?Q?lGjK1jEPEksu+kbgr4T04h0K8YwODsSj21Q8+dNhM/QcBzWIaRHY2zdVySeNBr?= =?koi8-r?Q?lmoQ2TLfeHT4r5M/G/orKJkULYKfIhhCj+qerGDsKWrwmlVWIVVuPvBMD/jwHq?= =?koi8-r?Q?eVcCaOQ2i1cFw8yCuJ5L2j2SKVVURtlKNUQ6JJVu6I51wJN7YtD4Q0c66sBEkF?= =?koi8-r?Q?CTJu6rn4jIUC1pAqlrb3zMOuzb54zJirpp3hacwLuSd620r91kK8mg90X4tzPK?= =?koi8-r?Q?e9oYpzekFVyUNkvb0DqHsiP/Nj4zqq3gKhWHqto/mVbA+i70W4HGp/GriTOD1X?= =?koi8-r?Q?pxzkIIAmkh1T6deMRXx4nd5jj4kLmRbF94nRTUPz3vWKk2dd1GIrMu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Q?/S4/E1JCd2CsDvzvECBGudxSi1etm8ZFaDUxGdq6zb9zhfh5aUpa/lQfvkwCMG?= =?koi8-r?Q?Dd5miEk7Yu5m0aMx55nKQ=3D?= Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH0PR12MB5091.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a9e1df9-6102-49ce-3ebd-08d9777f3abd X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Sep 2021 12:57:37.8304 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RR00cp/+cv4R0KcoyhcCyp8uC6v5q9JzoWoW6XEa7KAj0H+2gVwfi02oj3sD6PycVpnbdHbkfFAZTAy6z2gpLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5283 Subject: Re: [dpdk-dev] [PATCH v3 1/3] eal/linux: make hugetlbfs analysis reusable 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 Sender: "dev" > -----Original Message----- > From: John Levon > Sent: 14 =D3=C5=CE=D4=D1=C2=D2=D1 2021 =C7. 15:48 > To: Dmitry Kozlyuk > Cc: dev@dpdk.org; Anatoly Burakov ; Slava > Ovsiienko > Subject: Re: [PATCH v3 1/3] eal/linux: make hugetlbfs analysis reusable >=20 > External email: Use caution opening links or attachments >=20 >=20 > On Tue, Sep 14, 2021 at 01:34:54PM +0300, Dmitry Kozlyuk wrote: >=20 > > get_hugepage_dir() searched for a hugetlbfs mount with a given page > > size using handcraft parsing of /proc/mounts and mixing traversal > > logic with selecting the needed entry. Separate code to enumerate > > hugetlbfs mounts to eal_hugepage_mount_walk() taking a callback that > > can inspect already parsed entries. Use mntent(3) API for parsing. > > This allows to reuse enumeration logic in subsequent patches. >=20 > Hi, are you planning to implement my pending change on top of this? Yes, that's what I have in mind after your patch will be merged.