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 CE19745FF6 for ; Sun, 5 Jan 2025 23:07:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BCF6A4042F; Sun, 5 Jan 2025 23:07:51 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2077.outbound.protection.outlook.com [40.92.22.77]) by mails.dpdk.org (Postfix) with ESMTP id B5A144003C for ; Fri, 20 Dec 2024 16:26:01 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aecYQZm4sweQgOE9DzibCoqvRMJ39W2VEwmBm7Njjm2/OwmSe22TrT2jGNLGoAD2boBxyEe4bYiQenH4C+WGf8pty6N7bONIdx6zQvOm/v8i4vrZUyw42Ukn/6PhcdjB/uizGp7NIAPjnFlvZEkolETZrmgvUOIHOw2V2VsxZTVzpe/LjRVoy+8xi/rVGprR5s6L+c1QfbYtojv5oG4L5nTWJmA0CezfSIGaKLf+OoUtItjb8IIj92gp9Yimz6h22mCOS6f+ZluFKjACe/RDS9MMbw76X+M2qgDFTqWOhaxzKhx7bxz0AbJ8VHbY7lX8bV2xYLLqPb9ca80uG2m87g== 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=aiR0cmZCjviK6Ltu/vlVHe621iNtq1RkzVBhcROmpzs=; b=GENxFDVr/LooZr5IiGaWEKGwxUJ1rqE80EWsZUPdXCTTThUiEukgZUhfT5OzTD6szFgZhR+xtBNztUpJWa0nphQTsutVyW7NlFFMJwp8gcxnyKibHdlg954PrP5nbQhNfdF1fj4GWDL5YO0NkIQo2/V2kXLwRRcG3tL8YuGaba89xXGViwpUsUDAsTqB0wVjn8GOH8ap0hwj9jqoaU+Vpi9g3CjeXVt8RXJWI6bHbpLfuEVcqZzKXKQNoBOIM4ZOMm7a16WrO6sWmsKAqNpj16lRW2dX8UrZtAtFIiNreI1sC8Dc0OBULwRiS++u8C/vstVsSi81wmNZyuZEImuTpQ== 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=aiR0cmZCjviK6Ltu/vlVHe621iNtq1RkzVBhcROmpzs=; b=AtalnWMi77/uExIgKmnGtwStny1jmnVgqMGT+UwaiVhjubvkl7KCOBtiaovI6Qf9N4TPpPZPfr13dg2vdPp2a81MNOYDt4TqiMYgc/yOx/qX1rprEEwqI5alI9BAbgqRGvPVVp9qojSrJfseoh1M7Ei2wwFFfkGDcObr+0fkUl7u0HYMWkgmkPHirwwcdKcirPmTDGIPnoH+stzBYeGcdeyjDf9QIzcO6JWnSfGiIO47s4eGBz1osrp3XjxTL3HEE1j29UaqOM/HNesXAjO70SgidMNYqJB9gDTAkwb36yuRUSGevryT+UviiPPvdIzHTXFzsDAdUeQCzvI0kPSpJQ== Received: from SN6PR06MB5215.namprd06.prod.outlook.com (2603:10b6:805:f5::12) by PH0PR06MB8046.namprd06.prod.outlook.com (2603:10b6:510:c5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.16; Fri, 20 Dec 2024 15:25:59 +0000 Received: from SN6PR06MB5215.namprd06.prod.outlook.com ([fe80::1f66:3777:213a:e046]) by SN6PR06MB5215.namprd06.prod.outlook.com ([fe80::1f66:3777:213a:e046%5]) with mapi id 15.20.8272.005; Fri, 20 Dec 2024 15:25:59 +0000 From: Alex K To: "users@dpdk.org" Subject: Multiple Users Running DPDK Apps Thread-Topic: Multiple Users Running DPDK Apps Thread-Index: AQHbUu/gND7hEgM55EWc0Ke7bSFAwA== Date: Fri, 20 Dec 2024 15:25:59 +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: SN6PR06MB5215:EE_|PH0PR06MB8046:EE_ x-ms-office365-filtering-correlation-id: 21e48c68-1aff-4c0a-8193-08dd210a9b5b x-microsoft-antispam: BCL:0; ARA:14566002|15080799006|7092599003|461199028|19110799003|8062599003|8060799006|12050799009|15030799003|9400799030|10035399004|440099028|4302099013|3412199025|102099032|1602099012; x-microsoft-antispam-message-info: =?iso-8859-1?Q?5e919WHgllvJay3e0Tea8l8AQ07fzKzbulPdMJTjD4UR/PbGoN8m3/Jk++?= =?iso-8859-1?Q?pJ7wJszTR+t/JA9b+sJh1rR+yQZFe/0wFX9oLI/IZaWb1UDXucCw2EM6DH?= =?iso-8859-1?Q?Krzr4+8ZF34RvRKKsgg5yhWJwxMZm1rKIce6hSC22i6GZh1dUcM4qE8+BE?= =?iso-8859-1?Q?Snr9uw1AqjR9/PSlYwGtCKZ+OH+sM0dDmtE/T5qZ+QKT01VHZzy4sl6t1V?= =?iso-8859-1?Q?Ybud3jNd2MwsA+jZKo6QHRJUiRbEzPjEJljEIKwg54sMFkoUuIK2WrAnL0?= =?iso-8859-1?Q?iZciXV2rp0Qg47eSx8WCJJgEZMVyRiT9sm203lG+kX2Z84ptMRuukIMRZT?= =?iso-8859-1?Q?bNWxUdw7khyC6uyaXUg5WhNsntzMh8x2MXIJG5ARm9wGEI6tTm+IgKM96K?= =?iso-8859-1?Q?KsB8uublNb+Ab0Af+EerPw8kmBGvC/N/tlOhk4JePnHdmlNrcCG/OkA2uY?= =?iso-8859-1?Q?0yMFJ2IT/lQGyX3pLBLRHFyjgSrbMykBW0a4XB+MutXbcAcx6hxJIIAuuC?= =?iso-8859-1?Q?bBtAMsIFPoVuwyo9GskTdSHs0KNLC6g82NBrRMT7dX/bLBD7n0tfQurevB?= =?iso-8859-1?Q?X8yxFypT1YDUJHkHwsVKq2ogrW40xPYqT9Gu7cRFw73UCIgUVbR2SJPh6c?= =?iso-8859-1?Q?C8EenoGB5WTgXTZ936m2vB2wdwCoEnuSmV5aZtgkjcJPQFwRyvdiYe5rds?= =?iso-8859-1?Q?arXAKTa+5izeMzTxgFioPV1vT4WNqkTT3kL8jiXI9xAlpwR+ocKl1TGv9q?= =?iso-8859-1?Q?P6kw0lzBg8UvxpHGxeYsBCju3NB+SPPbLZKm0VLAcNorVgLQNwYZHvQYr3?= =?iso-8859-1?Q?hOY4Rh360Yr2RpIj2S6DJwBUigWGLIi6HVFJF0MeBid6YH80Z1CiRSWXNa?= =?iso-8859-1?Q?xOX7FdqXrguccB8i2xO9sw5z3bR20nY20weSVnFYCGxHiUKP+qsgY6unL2?= =?iso-8859-1?Q?LgxT3LE/wfnC7k6TW9CqIManE9dk/0BMMcTfKcvFvrj+19vy7wraVkQsJi?= =?iso-8859-1?Q?vydQFfNjVPpi8diWa3sNA799ljgyJAwcp9TfZbBo76tYPnlt62cSeaKCt2?= =?iso-8859-1?Q?IX/kI//OVwdULagUnTEiYo7xH7QYUNOJFwhPT5DyQplmnHKG4cw++F4NCS?= =?iso-8859-1?Q?AwWxs8yryAX3ZbK5JEwxP8uPipPr1jdo66xrKljjO6XFMiFOTg+CEox0zZ?= =?iso-8859-1?Q?OIDh/Fqvm39dJAuixkM2g7yh3zwDoGNqZYU6Lt+aYrnVXAYTdw7FSWClYr?= =?iso-8859-1?Q?mUf22aZwJsKebLNH/E9nX3m29KDetuu6gpGZs9zdRfr8ZV2Bd3A03se1Cl?= =?iso-8859-1?Q?X+Xw?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messag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3zYBAcRFfDYCRKdjpvl2cxd5I9U5rbW4nHJPSopYKu87xHEn?= =?iso-8859-1?Q?nWsciyslWOvG0vk/A6CiaRCHOnR98PiHbaQk/t4aNUU+AuLiSqFmRZdY5U?= =?iso-8859-1?Q?ubwjavIX98xGp39hL3qegFMorcEev0JvbBhD8tKKEEBYQhC68ai2svek4V?= =?iso-8859-1?Q?4ulJS5DxXRR2wo2Kvy6zt7AS+8L5IDXmx02XzQb27mff7QJLvpZNWmyJsR?= =?iso-8859-1?Q?Tlt4LFeHICQcx+NSQqMWJCd3o21BwXeK7jkFNXkWeq0Por14iMbHqLIlsp?= =?iso-8859-1?Q?d+oP3GuJgN3iOm+Vb+Vg8she8ASBUguBpdrewp/yUwiyoQ1gD4gXH754ge?= =?iso-8859-1?Q?uEb2XzJ7v+lWvA38bzZ8Ejd2N0dmsoRTHQC4t5JsWzwAKwG/CXGyHWARSo?= =?iso-8859-1?Q?PE0FjmlCmmQ80HlKAiaaA3uh1iN5JFkci1Ps9XYAM=3D?= Content-Type: multipart/alternative; boundary="_000_SN6PR06MB5215B5305AE2B629EBF291DDDD072SN6PR06MB5215namp_" 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: SN6PR06MB5215.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 21e48c68-1aff-4c0a-8193-08dd210a9b5b X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2024 15:25:59.6124 (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: PH0PR06MB8046 X-Mailman-Approved-At: Sun, 05 Jan 2025 23:07:50 +0100 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_SN6PR06MB5215B5305AE2B629EBF291DDDD072SN6PR06MB5215namp_ 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, -Alex --_000_SN6PR06MB5215B5305AE2B629EBF291DDDD072SN6PR06MB5215namp_ 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: https://doc.dpdk.org/guides-23.11/linux_gsg/enable_func.html#running-dpdk-a= pplications-without-root-privileges
Would like to understand if what I'm attempting is supported and if there's= anything I'm missing.

Thank you,
-Alex
--_000_SN6PR06MB5215B5305AE2B629EBF291DDDD072SN6PR06MB5215namp_--