Skip to content

Modification Record

This page record modifications to system that are not 100% safe, for future reference and troubleshooting.

NVGPUCTRPERM

GPU profiling tools like nvprof, ncu-cli need to access GPU Performance Counters. However, Nvidia disable regular users accessing for security reason. It's so inconvenient for users to use these tools, so we disable this security feature in all server.

We follow the steps in nvidia doc

# /etc/modprobe.d/NVGPUCTRPERM.conf
options nvidia NVreg_RestrictProfilingToAdminUsers=0

/etc/subu(g)id permission

When using Docker, LXC, Podman, user normally need to modify /etc/subuid and /etc/subgid. To ease the process, we change the permission of these files to allow ACSA staff to modify them.

chmod 664 /etc/subuid
chown root:acsastaff /etc/subuid
# `/etc/subgid` the same

To recover, the original permission is root:root 644