-
Notifications
You must be signed in to change notification settings - Fork 283
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
use too much CPU resource #54
Comments
whats your interval value |
I didn't set, but |
Can you test if |
I tested, and with |
Hi, I just found that the CPU time problem of |
A difference is that in the watch mode (i.e. |
Top four most expensive operations:
|
@wookayin Good point, I'm working on that. |
Querying power status (current draw and limit -- may be cached?) is quite expensive. Thus we can skip querying power status unless it is explicitly requested. This leads to 50% less CPU usage in my case. The default behavior of `new_query()` still includes power information. TODO: Add unit test case for the behavior
Working on this as #61. In my case querying power usage is most expensive, so I made it optional whenever possible. Could anybody check whether it leads to less CPU usage? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Has this issue been resolved? I am observing this behavior from https://github.com/ray-project/ray/ when we run gpustat.new_query() repetitively at GCE. |
Lots of time is spent on NvmlInit & shutdown & nvmlDeviceGetHandleByIndex |
Lots of time is spent on nvmlInit() and nvmlShutdown() for each new_query call. When running in a loop mode (-i), we do not need to initialize and shutdown the nvml library because nvml APIs will be used throughout the lifespan of the gpustat process. Upon importing `gpustat.pynvml`, nvmlInit() will always be called.
Lots of time is spent on nvmlInit() and nvmlShutdown() for each new_query call. When running in a loop mode (-i), we do not need to initialize and shutdown the nvml library because nvml APIs will be used throughout the lifespan of the gpustat process. Upon importing `gpustat.pynvml`, nvmlInit() will always be called.
In the recent versions of pynvml, |
Hi,
gpustat -i
uses about 80% CPU on my machine, is it expected or a bug?In contrast,
nvidia-smi -l 1
uses less than 10%.OS: Ubuntu 18.04
Nv Driver: 410.48
CUDA: 10.0.130
CPU: AMD Threadripper 1900x
GPU: 2080Ti + 1080
The text was updated successfully, but these errors were encountered: