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

Switch to nvidia-smi to reduce CPU load when fetching GPU temperatures #162

Merged

Conversation

jonasmalacofilho
Copy link

@jonasmalacofilho jonasmalacofilho commented Feb 21, 2020

At least on one Intel systems (i7-8700K/delidded/watercooled) the display of the GPU temperature of NVIDIA cards caused perceptible spikes in CPU utilization, frequency and temperature of individual cores.

This was eventually tracked down to nvidia-settings being substantially slower and, more importantly, computationally intensive than nvidia-smi.

Switch the implementation of nvidiaUtil.js to use nvidia-smi. In the process, simplify the label parsing and label vs. temperature code because nvidia-smi allows us greater control over the output.

nvidia-settings:

Using nvidia-settings: CPU package spiking to 38°C

nvidia-smi:

Using nvidia-smi: CPU package stable around 30°C


Possibly-related: #116 ("How to allow for lower minimum values for CPU?")

Related: #161 ("[Feature Request] Add support for NVIDIA PRIME render offload", user mentions that nvidia-smi solves the issue)

At least on one Intel systems (i7-8700K/delidded/watercooled) the
display of the GPU temperature of NVIDIA cards caused perceptible spikes
in CPU utilization, frequency and temperature of individual cores.

This was eventually tracked down to nvidia-settings being substantially
slower and, more importantly, computationally intensive than nvidia-smi.

Switch the nvidiaUtil implementation to use nvidia-smi.  In the process,
simplify the label parsing and label vs. temperature code because
nvidia-smi allows us greater control over the output.
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

Successfully merging this pull request may close these issues.

3 participants