Load analysis in Linux OS

Dedicated Server

Dedicated server

Check out SIM-Networks’ powerful pre-made server configurations

See packages

First of all, you should examine the output of the top command:

The analysis is carried out line by line from top to bottom. The load average parameter displays the total system load. Its value of fewer than 1 means that there is no serious load. A value greater than 1 may portend performance problems. Next, move on to the %Cpu(s) line. All values in it, except the id field, should not take on large values for a long time. Below, in the process output window, you can specify which of them consumes the most CPU time.

The KiB Mem and KiB Swap lines display statistics on the consumption of RAM and the swap partition/file. Here you need to monitor the reserve of free RAM. You can find out which processes consume it the most by changing the sorting using the + key combination. Go back - +

. It is necessary to dwell separately on the wa parameter in the %Cpu(s) line. Its high value does not mean high CPU consumption. Instead, it displays the cumulative downtime of processes waiting for I/O to complete. This means that the process, instead of being executed, was in a frozen state until data was written/read from the HDD or transferred over the network. You can analyze which of the HDDs has the most accesses using the iostat -d -x 5 3 command:

To find out which of the processes loads the disk subsystem the most, you should use the iotop command:

If there are no problems with the disk subsystem, you need to study the statistics of traffic passing through network interfaces using the sar -n DEV 1 3 command:

It is also recommended to check the number of network connections with the netstat –ip -t -an command:

You can simply count them using netstat –ip -t -an | wc-l:

Was this article helpful?

Did you like the article?

Cookie consent

By clicking «I agree», you consent to our website's use of cookies to give you the most relevant experience by remembering your preferences and repeat visits. However, you may visit «Manage сookies» to provide controlled consent. Learn more

Cookies settings

functional

Necessary cookies are crucial for the basic functions of the website and the website will not work in its intended way without them.

Analytics

Analytical cookies are used to understand how visitors interact with the website.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns.