17

I am looking for a free program that can display the CPU use history as a graph in a Linux shell, as bmon (sudo apt-get install -y bmon) can do network use per network interface.

enter image description here

or like Microsoft Windows's resource monitor can display:

enter image description here

top and htop only display the current CPU use.


sar (System Activity Report) (system monitor command used to report on various system loads, including CPU activity, memory/paging, device load, network. Linux distributions provide sar through the sysstat package.) is nice (sudo apt-get install -y systat)but I'd prefer to have a graph:

enter image description here

Same for mpstats (sudo apt-get install -y systat), nice but no graph:

enter image description here

Ideally, the program would have an option to CPU use history per process. (i.e. we could choose the process ID to display)

  • 3
    Does tload (provided by the procps package in Debian/Ubuntu) count? – Seth Sep 18 '15 at 3:24
  • @Seth Thanks, it looks super primitive but yes :) You're welcome to post it as answer! – Franck Dernoncourt Sep 18 '15 at 4:08
12

tload (from the procps package on Debian and Ubuntu) provides a basic system load graph:

enter image description here

You can set the scale with -s and the delay (in seconds) with -d.

Symbols:

Annotated example:

------------------------------------- load 3

                     *  
                     **
--------------------====------------- load 2
    **             ******   **
   ******         *************
  *********       **************
--=========-------==============----- load 1
*************************************
*************************************
*************************************
************************************* load 0

sudo apt-get install -y procps

11

You can use s-tui:

  • free and open source (GNU General Public License v2.0, written in Python)
  • allows to monitor CPU temperature, frequency, power and utilization in a graphical way from the terminal:

enter image description here

To install:

pip install s-tui
5

ttyload. There’s a Debian package available.

Screenshot of ttyload

(More screenshots)

ttyload shows an asterix graph of CPU usage averages taken 1 minute at a time in red, 5 minutes at a time in green, and 15 minutes at a time in blue -- all three on one grid. The bigger time slices help put momentary spikes in better perspective.

  • 1
    sudo apt -y install ttyload for those lazy people – ldmtwo Jul 27 '18 at 21:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.