How To View Average System Load Graphically In Linux Mint From Command Line

Share on FacebookShare on Google+Tweet about this on TwitterPin on PinterestShare on RedditPrint this page

Linux Mint has some pretty useful graphical system tools for optimizing performance. The Linux shell too  can be used to run a graphical window based tool that is available in most of the distros. That is xload .

It gives a histogram view of average system load. It can be used for monitoring/diagnosing performance if needed.

Running it is simple, type in the following from Terminal:

xload

This will open a new window with a histogram being continuously updated which represents the average system load.

xload histogram window

The default update interval for updating is 10 seconds and the minimum value that can be used is 1 second. So, to change it,use the –update flag :

xload -update 3

changing update interval for xload to 3 seconds

This will change the update interval to 3 seconds.

Also by default, the shell waits for xload to be closed which can be done by Ctrl-C or closing the histogram window.

xload running in foreground

However, it can be made to run in background too if needed. To do this, & parameter can be used:

putting xload into background

The histogram window will still be open but the Terminal will no longer wait for xload to be complete. To terminate it, simply close the window.

Customizing xload:

Adding custom text:

There are other parameters too like adding a custom text by using the label parameter followed by the custom text:

xload -label "Linux Mint System Average Load"

The custom text will be visible in histogram window.

xload histogram window with custom text

Changing colors:

Parameters like bg, fg and hl can be used to change the background, foreground and scale colors of histogram window. Simply specify the colors:

xload  -label "Linux Mint average system load" -bg blue -fg orange -hl blue

changing histogram colors in xload

Running xload can be a good starting point to troubleshoot system load issues using a tool like htop.

All done.

 

 

 

Leave a Comment