-
-
Notifications
You must be signed in to change notification settings - Fork 569
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
Wrong (?) cpu use reported in web interface #3261
Comments
Are you running your Pi-hole "bare metal" or inside some sort of virtualized environment? In case of the latter, it is known (especially for LXC) that the kernel is reporting partially incorrect numbers to the virtualized applications, e.g., the cores allocated to the container but then the load of the entire system. Something definitely seems off on your system as the debug log says:
Did you run |
Hi, (dont be surprised if diagnosis report issues with ipv6 : I've disabled it on my gateway for some reasons) https://tricorder.pi-hole.net/q3dwg124/ should be better now :
I'm running Pi-Hole on a Raspberry Pi Zero 2W. Reporting used to be fine before 6 update. Note that I've noticed that displayed value in UI tends to 'lower' over time, but always stays an order of magnitude over what 'top' reports. I wonder if there's a kind of 'averaging' that happens, and maybe CPU really goes up on login, which would make the average wrong. |
Could you please share the outputs of the following commands?
ideally at the same time |
Sure, doing it again with a top at the same time too,
I would say that load average seem consistent (I re lauched several time, uptime / top / load:raw form the API are all coherent). Top load average: 0,13, 0,14, 0,11 But that's a weird load, probably average is 'higher' that cpu use due to recurrent tasks running ? When I run I also checked Web UI : the value displayed is consistent with the load average A sort-of explanation would be that when displayed, gathering the load information itself causes the cpu to work which would cause increase reported value ? (considering a Pi Zero has not much power available) I've checked an old screenshot and ... I'm probably misled too by the fact that previously, the LOAD was displayed, So, all in all I would say that
Good news is : after all, things look to work fine provided I just leave it alone. (which I usually do: ) ) I still would suggest some UI change for clarity
I mean, for instance here : load average is 17%, but CPU use is 3% ( 100 - 97 idle ).
I don't know if getting the CPU use value is doable, but renaming load to CPU does not seem right. |
👍
Yes, I guess you are right. Load is actually a (much!) better metric than CPU%. True, the latter may be more intuitive but the load is what actually matters. If there is heavy I/O load, this may affect your system in a bad way, slowing it down to a crawl. CPU% may be low at the same time not providing you with the necessary information that something is off here. |
See #3262 in combination with pi-hole/FTL#2297 |
Versions
Platform
Expected behavior
In web UI, there's a "status" area with memory and CPU use displayed.
Since v6, I'm alarmed at CPU figure, and indeed there was an issue (solved after reading another post).
YET : the CPU figure is totally off compared to 'top' or 'htop' figure reported at the same time over ssh.
I would expect the figure to reflect more the reality, it was the case with v5
Actual behavior / bug
When logging into web UI, CPU use display is between 40 and 50%.
It may go down / go up for no reason.
At the same time, under an ssh session, reported CPU use is as follow :
most of the time :
during a momentary peak :
Steps to reproduce
Steps to reproduce the behavior:
Debug Token
https://tricorder.pi-hole.net/HjxwOLwp/
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: