Linux Ubuntu 12.04 high Load without high cpu/ram usage. Which tools and techniques to diagnose/solve this

linuxshellUbuntuubuntu 12.04

I'm having a huge load after install Linux Ubuntu 12.04 My machine now is a Intel G620/4G RAM/ 1T HD, before it was a Amd X2 5000/4G RAM/250G HD

Now

uptime in idle mode:

 12:45:03 up 3 days,  4:29,  6 users,  load average: 10.90, 10.70, 9.84

uptime in normal use (doing the same things that I do in machine before):

 12:53:03 up 3 days,  7:29,  6 users,  load average: 51.19, 49.11, 47.18

which is almost impossible to use

Top reports

top - 12:53:19 up 3 days,  4:37,  6 users,  load average: 11.11, 11.10, 10.37
Tasks: 223 total,   2 running, 221 sleeping,   0 stopped,   0 zombie
Cpu(s):  6.5%us,  2.8%sy,  0.0%ni, 90.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3960548k total,  3466308k used,   494240k free,    79928k buffers
Swap:  3905532k total,    75632k used,  3829900k free,  1432404k cached

What can I do?

Best Answer

What I find strange is your CPU usage is actually quite minimal. Which that in mind, what I find even stranger is that your disk wait (%wa) is 0.0 when you have a significant amount of swap space usage.

Assuming your swap space usage is causing the slowdown (perhaps there was no IO wait at the specific time you took that top snapshot), since you have plenty of free memory try clearing your swap:

swapoff -a
swapon -a

Wait a few minutes for the load averages to re-calculate and then re-evaluate.

Related Question