My laptop was working fine and its load average was between 0.2 - 0.5 (and around 0.02 while doing nothing) until I decide to upgrade it with an SSD.
First I replaced my HDD with SSD, moving HDD into a HDD Caddy, removing the optical drive and putting HDD there instead.
- Both my SSD and HDD are capable of working with SATA III interfaces.
However my HDD is working at SATA 2 mode:
sudo smartctl -a /dev/sdb | grep SATA SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Seems my optical drive interface is SATA 2.
Problem
The problem is whenever there is something in HDD Caddy (SSD, HDD, Doesn't matter) load average while doing nothing is around 1.5 - 2 and while system is just booted up is around 4.
What did I done?
- I have tried any combination of setup nothing takes any effects.
What else?
- CPU usage is normal and no process is consuming the CPU.
- If I only use one disk as the main hard drive load average is normal.
- If I even use one disk at the optical drive place, I get high load average.
There is an excellent Q&A with the same problem:
The solution from top-voted answer was this command:
In the link
grep
was used to discover the interrupt causing grief:Load Average
If you look at your system load average for 1-5-15 minutes like this:
It's reporting .5, .76 and .91. From Understanding Linux CPU Load - when should you be worried? it says:
Further in the article it will mention something like the load average for all your CPUs are added together but not divided by the number of CPUs to get an average of all CPUs. You have to do this manually so the true values are:
.063 - .095 - .113
because I have 8 CPUs.
I prefer to use Conky to display this in real-time though:
Notice the 4th line from the bottom display 1-5-15 minute load averages as:
The 1 minute load average of .15 equates to 15% which matches the All CPU percentage value two lines above the Load Average.
Without diving by 8 I'd have a heart attack because I would be seeing:
Conky automatically divides for me with the Conky code:
Of course not everyone uses conky probably only 1% of Linux users but for those out there that love Conky like me, you might find this code helpful.
This could be related to the HDD caddy you use.
Please see if it has a button or a switch, in order to change the state of the caddy.