I am having a strange issue with my Pi 4. Every minute around second 47, it 'stalls' for a few seconds, like some process is going on. The CPU spikes and pings to the router are delayed. I am running Kodi and Snapserver/librespot.
Kodi playback is not interupted, the kodi remote does not respond anymore but recovers. But especially librespot does not like this and crashes due to this issue when it tries to play a new song during this period.
This of course suggests that there is a process running every minute, but I can't find it.
Any clue how to find the culprit?
Update: output of top command during hickup, sorted by CPU time:
Upon closer inspection, I also see the RTW_CMD_THREAD having a little load, where it normally is just doing almost nothing.
cron
job. – Dmitry Grigoryev May 26 '20 at 12:26top
output by total CPU time. – Dmitry Grigoryev May 26 '20 at 14:32top
with 1.57 seconds is displayed abovesystemd
with 9 seconds, so the sorting is not correct. – Dmitry Grigoryev May 26 '20 at 14:42