How to Calculate Load Average in Linux Part 1

In a computerized system, linux, load the entire system is calculated by measuring the amount of all the work will be executed by the system. The term was defined as the Average Load calculation of average load over a given period.

On the linux operating system, such as centos, debian, fedora and ubuntu, calculation of load average can be seen by typing commands on your terminal as follows:
cat /proc/loadavg

In the display appears the series 3 figures shown represent the average CPU load in a certain span of time i.e. 5 minutes, 10 minutes, 15 minutes. CPU load experienced by the system itself can be interpreted as a list of a number of jobs that are waiting to be processed by the system "run-queue".

From the example above shows that on average there are 1.02 processes waiting to be scheduled on a "run-queue". The smaller the number indicated by the load average counters, then getting a few others Queuing jobs waiting to be processed by the CPU.

If the calculation load average figures shows large numbers, it shows that there is more Queuing jobs waiting to be processed.

How the limits of load average that indicates that a system overloaded?

Different systems will have different limit values. But a system that is overloaded, the course will result in a performance that is less responsife, can even cause crashes. Regardless of how big the number indicated by the load average.

Specify the limit in the calculation of Average Load on linux systems
In order to ascertain how the limit value load average on a linux system, you can find out by looking at how much the number of CPU cores that are owned by the system.

Here I give an example of how to find out the number of CPU cores on a VPS with the ubuntu operating system. You can also type the commands on your terminal as follows:
cat /proc/cpuinfo | grep processor

Then the results will show that the VPS has a 2 core CPU. So the limit load average of a VPS it is 2.00. On a physical computer, a linux system would consider "thread" in the processor as core. To clarify the intent, I will exemplify as below.

a "dedicated" server Xeon processor has a "E3-1240 v3". Where the processor has four cores with 8 threads. You can llihat the specification of a processor on a website of the company that produced it.

Linux system so that it will consider the number of threads that exist as the core. So limit the load average for the dedicated machine is 8:00.

How to determine the value of the limit load average on a system?

Simply put, a system can be overloaded if the calculation of the load average shows a value greater than the total number of CPU cores in it.

By knowing the value of limit load average, then at least we can check things out more, anything that can make the system overloaded. While performing the action that may be required, when the load average nearing his limit in a long period of time.

Click here for Comments