How To Obtain Linux's System Load Average Report - Linux Tutorials - Learn Linux Configuration
How To Obtain Linux's System Load Average Report - Linux Tutorials - Learn Linux Configuration
Menu
Obtaining the load average of your server(s) will shed some light on the systemʼs CPU
usage over time. As a Linux system administrator, it is essential to obtain the load
average occasionally, as to determine whether or not your systems are overwhelmed
by trying to handle the current work load. Because of the way load averages are
reported, it is also easy to determine if the server is being overloaded, which may
mean it is time to divide up the work load across load balancing servers, or upgrade
your current hardware.
In this tutorial, we will look at some common command line tools that can be used
to report on the load average of a Linux system. top and uptime are two of the
most popular that come to mind for most administrators, but other tools like vmstat
also allow us to track load average over longer periods of time. We will go over these
various commands and tools below.
1 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
There are a lot of command line and GUI tools that can report the load average on
2 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
Linux. We have covered some of the most useful methods below. Depending on your
scenario, one tool may work better than another. Check out the examples below and
employ the tools you �nd most useful for monitoring the load on your servers.
top command
The top command gives us a live view of the systemʼs load average in addition to
services running on the system, the amount of system resources each of those
services are using, as well as a summary of the systemʼs CPU utilization, among other
information.
The top command output shows load information and other relevant stats
There are three numbers given for the load average. The numbers are the average
load over 1, 5, and 15 minutes, respectively. Think of these numbers as percentages –
a load of 0.2 means 20%, and a load of 1.00 means 100%.
That should be easy enough to understand, but you may also see load averages
greater than 1.00. This is because load average is not a direct measurement of CPU
usage, but how much “work” (load) your system is trying to process. For example, a
3 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
value of 2.50 means that the current load is 250%, and also indicates that the system
is overloaded by a whopping 150%.
uptime command
The uptime outputs the system load over the last 1 minute, 5 minutes, and 15
minutes at a quick glance. It also outputs some other handy data – the amount of
time since last reboot, the current time, and how many users are logged in.
The uptime command output shows load information and how long since last system reboot
vmstat
The vmstat command also shows CPU load averags, but unlike the previous
commands, it shows load averages since the last server reboot.
$ vmstat
4 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
vmstat shows a breakdown of load averages since the last system reboot
$ vmstat 10 3
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 187528 177472 855836 0 0 12 78 2 0 7 2 83 1
0 0 0 203996 177532 855848 0 0 0 107 126 208 4 2 89 1
0 0 0 194108 177540 855856 0 0 0 3 102 166 2 1 96 0
The above vmstat command produced 3 reports with 10 seconds delay. Please note
that the �rst line always contains values for entire server uptime.
htop
5 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
$ htop
The htop command output shows load information and other relevant stats
You can use the appropriate command below to install htop with your systemʼs
package manager.
6 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
Closing Thoughts
In this tutorial, we saw how to obtain the load averages on a Linux system. There are
a variety of tools that can do the job, including top , htop , uptime , vmstat , and a
slew of others. Remember that load averages can also exceed 100%, indicating that
your CPU is overloaded with the tasks in queue.
System Administration
administration, bash, commands, server
Install Master PDF editor on Ubuntu
7 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
NEWSLETTER
Subscribe to Linux Career Newsletter to receive latest news, jobs, career advice and featured
con�guration tutorials.
SUBSCRIBE
WRITE FOR US
LinuxCon�g is looking for a technical writer(s) geared towards GNU/Linux and FLOSS
technologies. Your articles will feature various GNU/Linux con�guration tutorials and FLOSS
technologies used in combination with GNU/Linux operating system.
When writing your articles you will be expected to be able to keep up with a technological
advancement regarding the above mentioned technical area of expertise. You will work
independently and be able to produce at minimum 2 technical articles a month.
APPLY NOW
TAGS
8 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
ABOUT US
FEATURED TUTORIALS
How to install the NVIDIA drivers on Ubuntu 20.04 Focal Fossa Linux
How to install Tweak Tool on Ubuntu 20.04 LTS Focal Fossa Linux
9 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
How to Install Adobe Acrobat Reader on Ubuntu 20.04 Focal Fossa Linux
How to install the NVIDIA drivers on Ubuntu 18.04 Bionic Beaver Linux
Nvidia RTX 3080 Ethereum Hashrate and Mining Overclock settings on HiveOS Linux
LATEST TUTORIALS
Introduction to Vagrant
10 of 11 4/7/23, 12:33 PM
How to obtain Linux’s system load average report - Lin... https://linuxconfig.org/how-to-obtain-linux-s-system-loa...
11 of 11 4/7/23, 12:33 PM