question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

use too much CPU resource

See original GitHub issue

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

image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
matthew-zcommented, Nov 9, 2018

Hi, I just found that the CPU time problem of gpustat -i can be solved by running nvidia-smi daemon first.

3reactions
wookayincommented, Nov 9, 2018

Top four most expensive operations:

 36.50%  36.50%    4.59s     4.59s   nvmlDeviceGetHandleByIndex (pynvml.py:945)
 16.50%  16.50%    1.85s     1.85s   nvmlDeviceGetPowerUsage (pynvml.py:1289)
  9.50%   9.50%    1.18s     1.18s   nvmlDeviceGetUtilizationRates (pynvml.py:1379)
  7.50%   7.50%   0.805s    0.805s   nvmlDeviceGetComputeRunningProcesses (pynvml.py:1435)
Read more comments on GitHub >

github_iconTop Results From Across the Web

What is CPU usage, and how to fix high CPU usage
Is the CPU usage really too high? · High idle CPU usage: You're not running any programs and your CPU usage is still...
Read more >
How to Lower CPU Usage
In this article, we'll look at how to remedy high CPU usage on your machine or machines. ... Why is my computer showing...
Read more >
How to Fix High CPU Usage for Windows
If you find that high CPU usage persists—even in support of standard processes—you may simply need a faster computer. You can also reduce...
Read more >
How to Fix High CPU Usage (with Pictures)
1. Press .Ctrl+ Shift+Esc to open the Task Manager. This is a utility that monitors and reports on all of the processes and...
Read more >
8 Useful Solutions to Fix Your CPU 100% in Windows 10/11
If the CPU usage is about 100%, it means that your computer is trying to perform more work than it can. Then, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found