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 D5C2245FCB for ; Thu, 2 Jan 2025 20:44:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E4EC402D6; Thu, 2 Jan 2025 20:44:47 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2097.outbound.protection.outlook.com [40.92.21.97]) by mails.dpdk.org (Postfix) with ESMTP id B8082402B4 for ; Thu, 2 Jan 2025 20:44:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ckjmOm6r0wCnC7Q52kWur6r9AC07QJiSv7oEyQvyDPwg7Jdv+Xg22JArvZzb7UHDhi3McVtoic9roaeG/6h6Lg9Ed97Kzb4/qUn9XgFOT3ZsgXy7cyuiwIqSJf8MPNMd7O0DxTz807M1YLsO7z5m2KTQoPDd21OHFowHiZqVSINcVhMn+f/dzpq9qsH2Frg0X66+8PnVQ/F0loNZ3tZFX2R7Hn+TsCo2cm6FY1pktu29ENIHufMwI7m+kkGq6DqY8QItFsEFe9VOF+ODFWbitZikXVilJqzREibPGzZI/Wzv6DepG3Zai08Yz4o9dpYGf3kirZ9U49805HglAJeFcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=2yXX3r3HPDgdNz4TNGWaIRXdGF/pqPiFTvh6KVDmAx8=; b=nBAQ1YvRu0o5ODruTKvVhuwpKPYFZrse85EB7oYcnh6R/dKFHfbpCo83x6r9ApdnBfI3mSLYeYy0+M0NDaJSCMjw77D0tWIFlngLttM7uzs5mfsb3nGwvZMXEa1iTTQa5IHIF1lyMZVMVGuxELaHMeaFI+JBDmfQFNdXX28MPNyx5Au2AVUIjn7Uc0yRKdDiDB8uIj6KniOqaUBiZS9e0CQAIWgb70mvZKyZMIX0JNhUlcapUtVEYLyk5Ua70QK5nWqPYDvlF4ebP0H+fu6cCqIXiGzKxjINq5AJGKcA2hR3JtgducJoCC/iAy/DHDdGyT0R4F42VFt6CFl6v5qV8w== 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=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2yXX3r3HPDgdNz4TNGWaIRXdGF/pqPiFTvh6KVDmAx8=; b=CVMJ4nkpDzId1Ve1ZPh3D5IFXPMejSw9fWd8KA1ofoOnpVgqscMF5p8w3inL7iWFqnui4paSLwVdXYHkAs6SLKl6NimLgpVSuv/eQsmna4PmOEUqm4BdYhCFFoYn5tEems24rP0H2Arll+3phNCgIkFunPdT3M/M8xL8O9V1ARVxSGYZj5XVJvGHjzsXfwTIOKNiRsyyDO9w0gQsb9BH3xT2a6dD5GPa2yNXpUgYpamf8e2b2LMWBGp5h0n+K3KozYBjeWzzk78F2pkBIoCYpOeUklb/3FUxMX2gXRZPuVSfYAAbEZk7qL/bf4YyCf1CY4SzSBfyQx6ZxJYw1azBEg== Received: from CH3PR06MB9411.namprd06.prod.outlook.com (2603:10b6:610:1a2::17) by BL4PR06MB9813.namprd06.prod.outlook.com (2603:10b6:208:4e1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.12; Thu, 2 Jan 2025 19:44:43 +0000 Received: from CH3PR06MB9411.namprd06.prod.outlook.com ([fe80::5e2:de8:6518:d615]) by CH3PR06MB9411.namprd06.prod.outlook.com ([fe80::5e2:de8:6518:d615%5]) with mapi id 15.20.8314.013; Thu, 2 Jan 2025 19:44:43 +0000 From: Alex K To: "users@dpdk.org" Subject: Multiple Users Running DPDK Apps Thread-Topic: Multiple Users Running DPDK Apps Thread-Index: AQHbXU6fao0pCGPzkU2kcUFesjCd3w== Date: Thu, 2 Jan 2025 19:44:43 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR06MB9411:EE_|BL4PR06MB9813:EE_ x-ms-office365-filtering-correlation-id: c5facb9e-156d-4224-405a-08dd2b65e771 x-microsoft-antispam: BCL:0; ARA:14566002|8062599003|15080799006|19110799003|461199028|8060799006|15030799003|7092599003|1602099012|10035399004|102099032|4302099013|3412199025|440099028; x-microsoft-antispam-message-info: =?iso-8859-1?Q?8jREwiBaNwAk9N9/Hebr61dtWZE41b45eJYBtnG7ULfklUJ3lrurbdfEFH?= =?iso-8859-1?Q?NxANlt32c+NrfjnavAZ2axFtU6r8ieBt4lmPK95vLo0gF+pW27wGGyXhGY?= =?iso-8859-1?Q?86wh6lSCMWHPMl6gW0R/+wnLR0wQC+0Zkks9KkGirRHQlEa7J8/s3arTso?= =?iso-8859-1?Q?vwZWYSVR3weyPtlfOUhpvXkRBYP3OS3/WBa9eOoUbNBdcVuFJHXkU4WxtF?= =?iso-8859-1?Q?TKjjmzzSwg6IEzi9XQp1ctXUxSLhYBhV56MeUv/qVt4vNXvJzBUa/TiIdN?= =?iso-8859-1?Q?O/VS7Yrw712dM+QOuKy0PfhaOLviUsDcyRPIRCBWKYf0CR7VadrMJ37CjY?= =?iso-8859-1?Q?MShbdLhJMG9e76ULyJnMadvksGYiEhAe4A5lcDrNAXqtgv+rgy734wCl8N?= =?iso-8859-1?Q?7uEtJ2tXaYB98IGv14zRzQh98gww9eCldmYu42Q5VgJGFqEN/Z6me/JE20?= =?iso-8859-1?Q?LwXXMp2TIQmBCgJFP7Y2rJzqASEQCjKY0Q5QGZLRkGl3G4xVdA2uq8ERxH?= =?iso-8859-1?Q?7wJ8Zy5o5RoEfPxCNtfRn1puB8r+81LKGGoUIgKU0zX4OWzt9hllAFqqLi?= =?iso-8859-1?Q?E+hKKzGTTsfkblQMWkdJnRnyYN1uBw68DeQTOV0i+rjPyY3RvQ0/gQ6d4+?= =?iso-8859-1?Q?PJ5CYPyn5a2vV6DrDxPCrBeGcO1xPKO6e7ZsUPL5ZbN+70MoBMoeZ9oLtx?= =?iso-8859-1?Q?0+NfDaOnfyf5vYZ9poRx2sH+ywV5H8E7mZE/fM2dfSWOMBF7s9BpADkxRE?= =?iso-8859-1?Q?+SPY/5X863J4M4vmsWMk7y9k2cmcx6eS6MSQppqJNgjQ3bL5n033dQOF7a?= =?iso-8859-1?Q?D0JI9cZ037wbSplHxJ2wwJWd6YfqpJcavA/3roU02PkyEhy7e2+cDFJVwn?= =?iso-8859-1?Q?WPIiBCRnVRTlpEXDq//UPgIPMzGuamPFXsebtmEUMsq+QcMVu1oGMi5RTM?= =?iso-8859-1?Q?/rSf/e8hOP+q1G04Tg5X623s3RVqzPLrKlw+izalFLpn/c3yEEm8WWbF7+?= =?iso-8859-1?Q?5J2ZljsA24a0IeOfAc1Bno+XCk900oYQb0w9taKiwL8Zulio/xrS33DgQ2?= =?iso-8859-1?Q?IjdH8To2mfph6NBrchgpGdPgag0QtcoDt2AUkR6pjpadj9DLwbVRfCWnTS?= =?iso-8859-1?Q?2hCeW1VgkQ1AjQFfE3elRx/9tpFjgHe52zu1dU6qkGSJF2v0+J0QwPxiX7?= =?iso-8859-1?Q?Rq9odGtnxQ+9f+gFhhM/oAm5U5PNLJe22/9qtK9nR6wCxQxhJS0y73eZUK?= =?iso-8859-1?Q?hFo0yVM2Nqyo++ex5iewkA8aF/KesHJQjCMBYBYj0=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q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x0g5TZOfkx09iP6?= =?iso-8859-1?Q?4rtiynBc5MImRYZcagvPV+KdNPcg8idcYReDv5FUUHmg2rlPDcD5aLk/xq?= =?iso-8859-1?Q?60LuaDo8h6ETeYSXL+ZkEraEFbkxc6mmezt8bUbHarOafso+/WEgtPTa5p?= =?iso-8859-1?Q?bTNF4D3Z7xP8oWSeRcqzj8Yj0b3ve/MTvQlDjLPiFGHERJbhpG58Pwcb0C?= =?iso-8859-1?Q?cbpyDwQ10pIzbpD7eMLSoxdqZAt2vFGhsE2TbjHdWAF1MYv+8R5bO4q9XQ?= =?iso-8859-1?Q?FMx+YrZ8GZb59LTkWpns4cce0d0ACT+Z+sblvfsEe/u9IfajQm8uz0mT3P?= =?iso-8859-1?Q?u6dRj4EAs+weUAKkhGR8pbaJjYTbNnEbCbr3DP/YOoBxsCWWDc4hI3YkDe?= =?iso-8859-1?Q?dY3XzxvkyRwbfvUwiji1LRj2HNS3VAX4NjAj8W364=3D?= Content-Type: multipart/alternative; boundary="_000_CH3PR06MB9411938DBBE26829798A26E3DD142CH3PR06MB9411namp_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-7719-19-msonline-outlook-46441.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR06MB9411.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: c5facb9e-156d-4224-405a-08dd2b65e771 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jan 2025 19:44:43.0790 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL4PR06MB9813 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_CH3PR06MB9411938DBBE26829798A26E3DD142CH3PR06MB9411namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Should multiple users be able to take turns running DPDK apps on the same s= ystem without using sudo? Hugepages setup is required for multi-process support. The usertools/dpdk-h= ugepages.py script accepts user id and group id arguments when mounting hug= epages directory. And I was hoping that files created in this directory wou= ld be created such that they would be accessible by the users in this same = group. However, I'm seeing that those created hugepages files get the 0600 = permissions (read/write by the user only) and group ownership is not set to= the group specified in the dpdk-hugepages.py script. So another user attem= pting to run DPDK apps gets a Permission denied error attempting to access = hugepages files. Is this a bug or by design? Should each user have a separate hugepages dire= ctory setup somehow? I'm using vfio-pci kernel module with IOMMU, DPDK 23.11.1 LTS on RHEL 9. Se= eing same behavior with 24.11.1 LTS. Tried to follow the instructions at: h= ttps://doc.dpdk.org/guides-23.11/linux_gsg/enable_func.html#running-dpdk-ap= plications-without-root-privileges Would like to understand if what I'm attempting is supported and if there's= anything I'm missing. Thank you. --_000_CH3PR06MB9411938DBBE26829798A26E3DD142CH3PR06MB9411namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Should multiple users be able to take turns running DPDK apps on the same s= ystem without using sudo?

Hugepages setup is required for multi-process support. The usertools/dpdk-h= ugepages.py script accepts user id and group id arguments when mounting hug= epages directory. And I was hoping that files created in this directory wou= ld be created such that they would be accessible by the users in this same group. However, I'm seeing that th= ose created hugepages files get the 0600 permissions (read/write by the use= r only) and group ownership is not set to the group specified in the dpdk-h= ugepages.py script. So another user attempting to run DPDK apps gets a Permission denied error attempting to a= ccess hugepages files.
Is this a bug or by design? Should each user have a separate hugepages dire= ctory setup somehow?

I'm using vfio-pci kernel module with IOMMU, DPDK 23.11.1 LTS on RHEL 9. Se= eing same behavior with 24.11.1 LTS. Tried to follow the instructions at: h= ttps://doc.dpdk.org/guides-23.11/linux_gsg/enable_func.html#running-dpdk-ap= plications-without-root-privileges

Would like to understand if what I'm attempting is supported and if there's= anything I'm missing.
Thank you.
--_000_CH3PR06MB9411938DBBE26829798A26E3DD142CH3PR06MB9411namp_--