Closed dannytsang closed 1 week ago
I ran the profiler as well at the time it was slow. callgrind.out.1714732238247953.txt
Something is calling _exact_ratio
a lot of times
Is it related to a statistics sensor? Any ideas how I can hunt it down?
I recently learned how to read this, so this is everything I can pull out, furthermore I am not sure how to trace this back to anything sensible 😂
lol thanks for the assist and honesty @joostlek . Praying for @bdraco to chime in.
Hey there @thomdietrich, mind taking a look at this issue as it has been labeled with an integration (statistics
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
statistics documentation statistics source (message by IssueLinks)
There are some prior issues https://github.com/home-assistant/core/issues/110433 https://github.com/home-assistant/core/issues/116650
https://github.com/home-assistant/core/issues/116650 probably has the most information
Something is calling
_exact_ratio
a lot of times
@dannytsang
Seems very similar to what I am experiencing with this version. See https://github.com/home-assistant/core/issues/116650#issuecomment-2093177277
Are you using MariaDB for your database or something else?
Something is calling
_exact_ratio
a lot of times@dannytsang
Seems very similar to what I am experiencing with this version. See #116650 (comment)
Are you using MariaDB for your database or something else?
I am using MySQL.
I am using MySQL.
So not the default SQLite, correct?
correct. I'm running MySQL 8.0.36
I'm running the default SQLite and am experiencing the sluggish performance since 2024.5 as well. Running on an HA Blue.
The problem
I've noticed the performance since upgrading to 2024.5 has very poor compared to 2024.4.4. Symptoms I'm seeing include:
All the above I experience using Nabu casa, local IP and reverse proxy address.
When I reboot the VM, the performance seems to come back and then slows overtime. I don't see it hitting 100% CPU like #116650
What version of Home Assistant Core has the issue?
2024.5.0 and 2024.5.1
What was the last working version of Home Assistant Core?
2024.4.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
The behaviour is backed up uptime Kuma below. I upgraded on May 1st: