kworker high cpu usage fix
On my Debian 12 machine, I’ve been having a issue that, kworker take up 80%-100% of a CPU non-stop. After hours of searching through the web for a solution, what fixed it was on a post on askubuntu from 2018. So it seems like it’s not a new thing. I’ll link the relevant discussion below as well for reference.1
So what you do is disabling dynamic USB power management in kernel.
In order to do that you have to add usbcore.autosuspend=-1
to your kernel’s boot command line:
GRUB_CMDLINE_LINUX_DEFAULT="<existing stuff> usbcore.autosuspend=-1"</existing>
To do that permanently, open the grub configuration file
sudo nano /etc/default/grub
and add the flag below:
usbcore.autosuspend=-1
Next you have to update your grub via
sudo update-grub
After reboot, it should be fixed.