zoukankan      html  css  js  c++  java
  • CentOS 系统状况查看

    1 磁盘 iostat  

     安装 yum install sysstat

    iostat -x 
    Linux 3.10.0-514.6.2.el7.x86_64 (sdw2)     2017年03月07日     _x86_64_    (4 CPU)
    
    avg-cpu:  %user   %nice %system %iowait  %steal   %idle
               0.01    0.00    0.02    0.01    0.00   99.96
    
    Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
    vda               0.00     0.00    0.02    0.07     0.86     1.71    53.61     0.00   14.23    0.60   18.99   4.81   0.05
    dm-0              0.00     0.00    0.00    0.00     0.00     0.00    16.30     0.00    0.11    0.11    0.00   0.11   0.00
    dm-1              0.00     0.00    0.02    0.06     0.81     1.71    66.47     0.00   18.50    0.70   25.13   6.07   0.05
    dm-2              0.00     0.00    0.00    0.00     0.00     0.00    18.59     0.00    4.51    0.24   10.62   3.92   0.00

       2 网络 ifstat

    ifstat 
    #kernel
    Interface        RX Pkts/Rate    TX Pkts/Rate    RX Data/Rate    TX Data/Rate  
                     RX Errs/Drop    TX Errs/Drop    RX Over/Rate    TX Coll/Rate  
    lo                     0 0             0 0             0 0             0 0      
                           0 0             0 0             0 0             0 0      
    eth0               25934 0           572 0         2422K 0        661722 0      
                           0 0             0 0             0 0             0 0
    • RX Pkts/Rate  数据包接收流量
    • RX Errs/Drop  丢包
    • TX Pkts/Rate  数据包发送流量
    • RX Data/Rate 数据接收流量
    • TX Data/Rate 数据发送流量
    • lo与eth0表示两个网卡

    3 cup mpstat ,top

    mpstat 1
    Linux 3.10.0-514.6.2.el7.x86_64 (sdw2)     2017年03月07日     _x86_64_    (4 CPU)
    
    15时25分55秒  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest  %gnice   %idle
    15时25分56秒  all    0.00    0.00    0.25    0.00    0.00    0.00    0.00    0.00    0.00   99.75
    15时25分57秒  all    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00  100.00
    15时25分58秒  all    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00  100.00

    4 内存 vmstat ,free

    vmstat 1
    procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     1  0      0 14659724    948 1434632    0    0     0     0   15   16  0  0 100  0  0
     0  0      0 14659724    948 1434632    0    0     0     0   77   85  0  0 100  0  0
     0  0      0 14659724    948 1434632    0    0     0     8   89  103  0  0 100  0  0

    5 综合 dstat ,yum install dstat

    dstat 
    You did not select any stats, using -cdngy by default.
    ----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
    usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw 
      0   0 100   0   0   0| 881B 1757B|   0     0 |   0     0 |  61    64 
      0   0 100   0   0   0|  32k   32k|3365B 1230B|   0     0 | 120   104 
      0   0 100   0   0   0|   0     0 |3861B   66B|   0     0 |  74    90
  • 相关阅读:
    PAT L2-014【二分】
    CodeForces 137C【贪心+优先队列】
    CodeForces 131D【图特性+BFS】
    CodeForces 125D【鸽巢原理】
    PAT1060【大模拟啊】
    CodeForces 124C【连通块】
    PAT 1071【STL string应用】
    CodeForces 116C 【BFS】
    CodeForces 116B【二分匹配】
    CodeForces 118C 【模拟】
  • 原文地址:https://www.cnblogs.com/zhangeamon/p/6515036.html
Copyright © 2011-2022 走看看