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

Maximum Sampling Rate of GPU Power #76

Closed
afzalxo opened this issue Jan 2, 2020 · 4 comments
Closed

Maximum Sampling Rate of GPU Power #76

afzalxo opened this issue Jan 2, 2020 · 4 comments

Comments

@afzalxo
Copy link

afzalxo commented Jan 2, 2020

Hey! This might be slightly unrelated but I was wondering what the maximum sampling rate of call to nvmlDeviceGetPowerUsage would be. It must be limited by the sampling rate of the power measurement hardware on the GPU. Do you know about this based on your usage of the NVML API?

Thanks!

@Stonesjtu
Copy link
Collaborator

We are now restricting the sampling rate to be lower than 10/sec (interval >= 0.1s), however you may try even higher rate to see what happens.

args.interval = max(0.1, args.interval)

@afzalxo
Copy link
Author

afzalxo commented Jan 2, 2020

Thanks! I tried a very high sampling rate (calling nvmlDeviceGetPowerUsage without any delay) and the number of samples achieved in 1 second is around 2743, however, I don't think GPU power measurement hardware can have 2.7kHz sampling rate (I am using a Tesla K40m). I think the function returns the last measured power if we try to call it when the power measurement hardware is not ready or has recently returned a measured power from the sensor.
I will try the NVIDIA developer forums for exact sampling rate figures.
Closing this issue.

@afzalxo afzalxo closed this as completed Jan 2, 2020
@piotr-dobrogost
Copy link

@europa1610
Could you please share a link to the forum post you refer to?

@afzalxo
Copy link
Author

afzalxo commented Jan 4, 2020

Hey @piotr-dobrogost I posted my query on the NVIDIA Devtalk forums (NVML Subtopic) here but haven't received a response to my query yet. Here's my post for reference.

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