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

CPU widget - average vs. CPU-specific utilization don't seem to match up #2802

Open
Hooverdan96 opened this issue Feb 13, 2024 · 0 comments
Open

Comments

@Hooverdan96
Copy link
Member

This issue has been discussed a couple of times in the past on the Rockstor forums. Creating this issue based on the latest thread opened by user McFaul:

cpu usage looks inconsistent

It appears that the average CPU usage is not calculated correctly, since at the same time the CPU-specific utilization is showing a either very minimal or non-existent. I referenced some of the coding areas for this widget (see forum thread as well), which might point towards a possible solution by using a secondary data collector for average system CPU usage vs. backwards calculating it from the CPU specific one:
utilization by CPU

psutil.cpu_times_percent(interval=None, percpu=true)

vs.

psutil.cpu_times_percent(interval=None, percpu=False)

Finally, once this issue is addressed, these two requests could also be considered (via separate pull requests, but could be considered by whoever delves into this topic already):

Feature Request: Graph/Widget Changes
[New Feature] New Dashboard widget - Top running processes

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

1 participant