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,
-Alex

Reply via email to