Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about privilege #196

Open
Yvanll opened this issue Oct 30, 2024 · 2 comments
Open

Questions about privilege #196

Yvanll opened this issue Oct 30, 2024 · 2 comments

Comments

@Yvanll
Copy link

Yvanll commented Oct 30, 2024

Hi,
I found on the DCGM document: the Embedded Mode should be run as root. Some 3rd-party DCGM Agent like dcgm-exporter will raise runtime error: "FATA[0000] Failed to watch metrics: Error watching fields: Host engine is running as non-root." without SYS_ADMIN privilege. And the error might be raised by dcgmWatchFields interface.
I wonder what operation in dcgmWatchFields is checking the privilege, and Could there be a non-privilege solution for agents to just extract the metrics?

@qaccd
Copy link

qaccd commented Nov 4, 2024

+1, why would dcgm require the sysadmin privilege to function properly????

@jksjaz
Copy link

jksjaz commented Jan 24, 2025

I recently started exploring dcgm api and I might be wrong here but I believe it's because of the lock on the hardware when you read stats from it. Possible that needs elevated privileges to execute at low level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants