-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Is 25% CPU usage for glances normal? #1834
Comments
Hi @nahmias22 on my system, Glances take 7% of one CPU: Try to disable some plugins on the server side to find the guilty:
Note: the plugins list can be display using:
Nicolas |
I think you'll find it's the process list. Win10 running latest Glances on Python 39 and with the default refresh, process list shows CPU for the python process at around 35% (Win Task Manager shows python CPU usage at 7-10%). Hit 'z' to turn off process list and Glances drops to 5% CPU total for the python process (and Win Task Manager drops the python process down to about 0.3%) |
@nahmias22 / @deefrawley : i just upload a new beta version (3.1.7b1) on Pypi test (pip install -i https://test.pypi.org/simple/ Glances). Can you please copy/paste the result ? |
|
Ok i understand, the issue came from #1820 Try to downgrade py-cpuinfo Python lib to 3.3.0 as written in the requirements file: https://github.com/nicolargo/glances/blob/develop/optional-requirements.txt#L22 To downgrade, use:
|
py-cpuinfo is now v8. Why do we need to downgrade to v3? |
@deefrawley because of this non corrected issue on py-cpuinfo ==> workhorsy/py-cpuinfo#155 |
@nicolargo, I experienced this same regression. Does it make sense to pin py-cpuinfo in the setup.py? |
The next Glances version 3.1.8 will not use this lib anymore.
For the moment check the version on your system.
Le jeu. 3 juin 2021 à 20:00, Paul Adams ***@***.***> a écrit :
… @nicolargo <https://github.com/nicolargo>, I experienced this same
regression. Does it make sense to pin py-cpuinfo in the setup.py?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1834 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF5UK2DFZP3JEGSA37C7TDTQ67MXANCNFSM42D7LKEA>
.
|
So how is CPU usage for everyone without that lib? |
Between 5 and 9% of one CPU core on my system. |
@nahmias22 how is performance for you on the current release? |
With Glances 3.2.6.4 and PsUtil 5.9:
takes less than 5% of one CPU (Intel(R) Core(TM) i7-4500U) on my computer (average on 30 seconds):
|
To whom it may concern,
Is it normal to have 25% CPU usage for glances alone when running it as glances -w?
The text was updated successfully, but these errors were encountered: