DPDK usage discussions
 help / color / mirror / Atom feed
From: Alex K <aiklimov@hotmail.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: Multiple Users Running DPDK Apps
Date: Thu, 2 Jan 2025 19:44:43 +0000	[thread overview]
Message-ID: <CH3PR06MB9411938DBBE26829798A26E3DD142@CH3PR06MB9411.namprd06.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Should multiple users be able to take turns running DPDK apps on the same system without using sudo?

Hugepages setup is required for multi-process support. The usertools/dpdk-hugepages.py script accepts user id and group id arguments when mounting hugepages directory. And I was hoping that files created in this directory would 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 attempting 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 directory setup somehow?

I'm using vfio-pci kernel module with IOMMU, DPDK 23.11.1 LTS on RHEL 9. Seeing 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-applications-without-root-privileges

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

[-- Attachment #2: Type: text/html, Size: 2493 bytes --]

             reply	other threads:[~2025-01-02 19:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-02 19:44 Alex K [this message]
2025-01-02 20:48 ` Dmitry Kozlyuk
2025-01-02 21:26   ` Stephen Hemminger
2025-01-03 19:03     ` Alex K
  -- strict thread matches above, loose matches on Subject: below --
2024-12-20 15:25 Alex K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CH3PR06MB9411938DBBE26829798A26E3DD142@CH3PR06MB9411.namprd06.prod.outlook.com \
    --to=aiklimov@hotmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).