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

the issue of watching and querying metrics #186

Open
BetaZYN opened this issue Aug 30, 2024 · 0 comments
Open

the issue of watching and querying metrics #186

BetaZYN opened this issue Aug 30, 2024 · 0 comments

Comments

@BetaZYN
Copy link

BetaZYN commented Aug 30, 2024

I reviewed the code for the dcgmi tool and found that before querying metrics using the dcgmGetLatestValues_v function in the dmon feature, it first calls dcgmWatchFields and dcgmUpdateAllFields to start monitoring and force a refresh.

However, I noticed that it does not call UnwatchFields after the query is completed. When should UnwatchFields be called?

In my use case, I need to periodically query certain metrics. If I call dcgmWatchFields each time before querying, will there be any additional performance or memory overhead? Or, how should I handle this scenario?

I look forward to your reply

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

1 participant