Sometimes my computer slows down for no apparent reason. I was trying to find the culprit using htop, but it looks like this phenomenon affects the whole system, i.e. everything starts using a lot of CPU. Interestingly, if I suspend my computer and then wake it up, the problem goes away. Do you have any idea what could cause this? What kind of diagnostics should I run?
I'm running Xubuntu 20.04. RAM size: 12 GB, Swap: 2GB.