AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.16k stars 180 forks source link

Release 0.8 kworker hoggin CPU #448

Closed rodrigoluk closed 3 years ago

rodrigoluk commented 3 years ago

Anyone else experiencing kworker hogging CPU on Pi4 w/ RPiHQ camera? This is with release 0.8 - never happened with 0.7. Using top I can see : kworker/u8:0+brcmf_wq/mmc1:0001:1 using 16% CPU. If I stop allsky everything goes back to normal on the PI4.

EricClaeys commented 3 years ago

No. When "convert" runs to create the thumbnail, one of the 4 CPUs will go to around 80% busy for a second or two. There are multiple kworker processes and the highest runners are usually around 1-2%. What is kworker? I can't find it anywhere.

rodrigoluk commented 3 years ago

Kworker are kernel proxy processes that deal with functions such as IO, network, USB traffic, etc. One of this processes, that seems to handle WiFi traffic: [kworker/u8:2-brcmf_wq/mmc1:0001:1] was the culprit for me.

I found this thread with a similar issue on Pi4 and RPi HQ: https://github.com/thomasjacquin/allsky/issues/323 and decided to do a full firmware update followed by a shutdown of the entire Pi4 and HQ combo. This seems to have cleared the issue:

sudo apt update sudo apt full-upgrade sudo shutdown now

Thanks for responding. I've got no idea of how this all hangs together but I'm happy to close the issue now.

R.