Linux – CPU load too high. How to investigate

cpu-usagelinux

This is my "top" screen. Now it's 2.96. Sometimes it goes above 3! I've read that it's not good. How to investigate and fix it?
enter image description here

Best Answer

You seem to be seriously using a lot of swap there. You have a relatively small amount of memory allocated to cache/buffers.

Your %wa is at 49.5%. That value corresponds to the CPU waiting for I/O to complete.

I suspect you have that is or was using a large ammount of memory. But perhaps you also have something performing a lot of I/O as well.

Fire up iotop, and you might get a better picture of the I/O situation.

P.S. If you are not using ksplice, then you are almost certainly running a kernel with known vulnerabilities. 354 days of uptime is too long.