5

tload:字符界面上的图形化系统负载监控工具

 3 years ago
source link: https://www.lujun9972.win/blog/2018/10/26/tload-%E5%AD%97%E7%AC%A6%E7%95%8C%E9%9D%A2%E4%B8%8A%E7%9A%84%E5%9B%BE%E5%BD%A2%E5%8C%96%E7%B3%BB%E7%BB%9F%E8%B4%9F%E8%BD%BD%E7%9B%91%E6%8E%A7%E5%B7%A5%E5%85%B7/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

tload:字符界面上的图形化系统负载监控工具

tload是一款很酷的系统负载监控工具,它使用字符来组成柱状图以图形化的方式来显示最近一段时间内的系统负载

tload的运行结果类似下面这样:

1.24, 1.62, 1.62
 ------------------------------------- 

                      *  
                      **
 --------------------====------------- 
     **             ******   **
    ******         *************
   *********       **************    *
 --=========-------==============-----=
 *************************************
 *************************************
 *************************************

它的第一行是前1分钟,5分钟,15分钟的系统负载(即:单位时间段内CPU活动进程数)

它的后面就是不断刷新(刷新频率可以用-d来设置)的系统负载图,其中这个图形是由 *, -= 三种字符组成的,其中:

  • * 组成的列表示系统的负载
  • - 表示的是负载为1的高度,这个值可以通过 -s 选项来设定1负载用多高的字符列来表示
  • 当实际负载超过 - 所展示的负载时,会使用 = 来代替 -

因此要给上面的图案加上标杆的话大概是这样的

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

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK