An Explanation of *nix system load averages
Wondering if your current system has balls or not? Perhaps you have been around since the time of single core processors and single CPU servers and are wondering what those three little numbers mean in today's systems.
Here is a simplified explanation of what system load averages mean.
First, I'll let you know why I am even posting this. One of my hosts was telling me my loads are too high. Wordpress was supposedly slowing my server down. I looked into it and the sites on the server seemed to load just fine... No, make that, they loaded exceptionally quick.
So he showed me my averages: 1.71 1.86 1.83
He proceeded to tell me that anything over 1 means processes are waiting for CPU time and therefor my surfers were waiting too!
I looked into it. His example would have worked back in the day of a single Pentium processor running the machine. I had a quad CPU XEON setup. You probably have something better than 1 CPU or processor core on your system. So how do you read load averages then?
So, that simplified explanation. Those three numbers are telling you what your load averages are for the past 1 minute, 5 minutes and 15 minutes respectively. They are scaled on a 1 processor system. So they don't recalibrate for your dual or quad core/CPU systems.
On my quad core system I have 4 pipes. Only 1.71 pipes were filled in the last minute. So 2.29 were sitting around doing nothing.
In his example only a single core/CPU system would have been overloaded. On a dual core/CPU system it would be right around where you could feel comfortable. On a quad core/CPU system I actually could consider my "engine" a bit of overkill! Then again, I have logs that get parsed into stats around midnight and various cronjobs that push my system into the 2.90 - 3.60 ranges. So my system is actually just about right for its overall system load averages throughout a 24 hour period.
Hope this helps some of you make better/informed decisions when choosing your next server upgrade or when deciding if it isn't really needed.
|