home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.95k stars 31k forks source link

HA systemmonitor shows inkorrekt CPU load #130806

Open Boebbele opened 1 week ago

Boebbele commented 1 week ago

The problem

Systemmonitor shows the wrong CPU load in % on my 4 core x86 minipc. Real load: 23% HA systemmonitor shows only 11 %.

What version of Home Assistant Core has the issue?

core-2024.11.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

systemmonitor

Link to integration documentation on our website

https://www.home-assistant.io/integrations/systemmonitor/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 week ago

Hey there @gjohansson-st, mind taking a look at this issue as it has been labeled with an integration (systemmonitor) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `systemmonitor` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign systemmonitor` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


systemmonitor documentation systemmonitor source (message by IssueLinks)

gjohansson-ST commented 1 week ago

How do you know what your real load is?

Boebbele commented 1 week ago

htop, glances. both show the same values. I only see the low value in HA. With the "CPU Speed" integration I see other values. Here it is even less than with system monitor. I assume HA is not reading all cores?

gjohansson-ST commented 6 days ago

System monitor and glances uses the same psutil lib for getting the cpu percentage so there should be no difference. SM only updates on a 15 second interval so can it be that if you look at it a bit over time it's consistent?

Boebbele commented 5 days ago

OK. My CPU performance fluctuates quite a lot in the lower range. It could actually be that this is causing a deviation if the measurement is taken every 15 seconds when the CPU load is lower. I will continue to monitor it.

It just seems strange to me that I only get half as much displayed in Home Assistant as in htop (snapshots). I will monitor the values ​​over a longer period of time.