There are a number of graphical utilities like gnome-system-monitor present for checking the system performance. But sometimes you might need text based tools. This article discusses a command line utility ‘tload’ that can be used to view the system load graphically.
The tload command.
The ‘tload’ command represents the pictorial representation of the average system load through ASCII graph. This command can be used to provide the graph on a terminal. The syntax for the command is:
tload [options] [terminal]
If terminal is not provided as the argument to this command, then by default it outputs the graph on the current terminal. So the simple forms of this command are:
$ tload /dev/tty2
The second command will output on terminal tty2.
The top of the graph shows the average load in one, five and fifteen minutes respectively. The value of this load varies between 0 and 1. So value 1.0 means 100% CPU utilization. To exit from this graph, you can hit ctrl+c on the current terminal.
This is quite simple command. There are only three options to this command:
The "-s SCALE" option sets the scale of the graph. Lower the value of the scale, larger is the scale and vice-versa.
The "-d DELAY" option sets the delay between refreshes in seconds. For example, "tload -d 2" will refresh the graph every alternate second.
The last option is "-V" option. This option outputs the version information of the corresponding package and exits.
$ tload -V
procps version 3.2.8
The procps package.
"tload" command is provided by the ‘procps’ package. This package provides utilities that provide information about the processes. These utilities generally use/proc filesystem for their operation. The other utilities provided by current version of ‘procps’ package are free, kill, pkill, pgrep, pmap, ps, pwdx, skill, slabtop, snice, sysctl, tload, top, uptime, vmstat, w and watch.