Home Assistant causing IO lag, how to investigate?

Hi All,

So I have a Raspberry PI 3B running an up to date copy of Rasbian. On it I have HA running under a Python virtual environment, and this all works and is stable.

Last week I updated (apt-get full-upgrade), and then this week I have noticed that there is some performance impact that has started to occur. On the PI it runs Samba and that shares out my raid setup where there are some video files. I have another box that is running those videos on my TV. Every 3~6 seconds there is a lag that slows the video playback. If I stop the Home Assistant service that I have created, then the lag goes away.

I thought it might have been the nmap scanning, so I disabled that, but it didn’t make any difference. I then did an update of HA as well and it is now running 0.114.4, and that didn’t fix it either.

Whats the best way to work out what it is in HA that is causing the slow down. HA seems to take about 3~6% of CPU (found from running “top”).

Any help?

Thanks