Hi,
I run home-assistant in docker on an Odroid-XU4 board (running on a SD card). I recently upgraded the system from debian 8 to debian 9, and reinstalled HASS from latest docker image (0.82.1).
I quickly noticed that the system was too slow, due to continuous disk IO from home-assistant causing high CPU load.
Here is the output of iotop:
Total DISK READ : 0.00 B/s | Total DISK WRITE : 262.93 K/s
Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 376.13 K/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
2360 be/4 root 0.00 B/s 262.93 K/s 0.00 % 93.53 % python3 -m homeassistant --config /config
I see ~300KB/s written on the SD card, coming from home-assistant.
CPU load :
17:45:05 up 3 days, 20:44, 2 users, load average: 1.37, 0.79, 1.16
In htop, I see that home-assistant burst from 5 to 20% every ~5s.
I use a basic Sandisk SD card, which is not optimised for continuous IO, and I think that continuous writes from home-assistant is not good : it slows down the system and wears the SD card.
I don’t know why home-assistant is writting so much, on which file,…
Note that as soon as I stop the HASS docker, the load and disk writes go down to nearly 0.
The configuration is really simple : 3 MQTT temperature/humidity sensors (they publish messages every 1 minute) and 2 media player (from logitech media server).
Any idea to diagnose this issue?
Thanks!