• OS 的一些指标信息


    <pre name="code" class="sql"><pre name="code" class="sql">load average: 576.98, 574.88, 570.81
    1216 processes: 1215 sleeping, 1 running , 0 zombie, 0 stopped
    ------------------------------------------------------------------------------
    今天压了下虚拟机:
    [mysql@master ~]$ top
    top - 05:58:41 up 3 days, 19:03,  6 users,  load average: 3.36, 1.08, 0.38
    Tasks: 134 total,   1 running, 133 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.9%us,  0.7%sy,  0.0%ni,  0.0%id, 96.8%wa,  0.0%hi,  1.6%si,  0.0%st
    Mem:   1016928k total,   955616k used,    61312k free,      196k buffers
    Swap:  2097144k total,  2097136k used,        8k free,     8964k cached
    
    load average: 3.36, 1.08, 0.38
    
    
    IO信息:
    [mysql@master ~]$ sar  -d 1 100
    Linux 2.6.32-220.el6.x86_64 (master) 	03/17/15 	_x86_64_	(2 CPU)
    
    05:59:23          DEV       tps  rd_sec/s  wr_sec/s  avgrq-sz  avgqu-sz     await     svctm     %util
    05:59:24       dev8-0     52.48   6669.31      0.00    127.09      7.89    150.42     18.87     99.01
    
    05:59:24          DEV       tps  rd_sec/s  wr_sec/s  avgrq-sz  avgqu-sz     await     svctm     %util
    05:59:25       dev8-0    230.30  28371.72      0.00    123.19      2.58     11.25      4.21     96.97
    
    05:59:25          DEV       tps  rd_sec/s  wr_sec/s  avgrq-sz  avgqu-sz     await     svctm     %util
    05:59:26       dev8-0    324.04  31530.77  49576.92    250.30      5.04     15.48      2.65     85.96
    
    05:59:26          DEV       tps  rd_sec/s  wr_sec/s  avgrq-sz  avgqu-sz     await     svctm     %util
    05:59:27       dev8-0    126.67  10577.78  38382.22    386.53     11.65     38.04      8.67    109.78
    
    05:59:27          DEV       tps  rd_sec/s  wr_sec/s  avgrq-sz  avgqu-sz     await     svctm     %util
    05:59:28       dev8-0     23.00   2752.00   7184.00    432.00      8.19    584.13     43.48    100.00
    
      await
      The average time (in milliseconds) for I/O requests issued to the device to be served. This includes the time spent by the requests in queue  and  the
      time spent servicing them.
    
    磁盘上的I/O请求的平均时间(单位毫秒) ,这个包括时间花费在请求队列上和服务时间
    
     %util
     Percentage  of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this
    value is close to 100%.
    
    
    
    内存信息:
    
    ^Z[mysql@master ~]$ vmstat 1 100
    procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     3  1 1683912  58252    436  10972    8   24    53    80   16   20  0  0 99  1  0	
     0  3 1700696  68672    160   6168   32 16784  5152 16784  556  696  6  4 22 67  0	
     0  4 1725752  67168    148   6044  160 25104 10272 25104 1118 1234 15  8 22 55  0	
     0  3 1743252  64592    144   7088   32 17504  7372 17504  707  810  9  5 12 75  0	
     0  2 1743236  68932    144   6324   32    0  1824     0  296  344  1  3 36 60  0	
     0  2 1743236  65336    144   7408    0    0  1152     0  116  119  1  1 48 51  0	
     0  3 1767060  50696    152  14192   96 23860  7136 23872  588  889 12  3 20 65  0	
     0  3 1772712  70220    152   5524   32 5668  3872  5668  735  835  3  6  1 91  0	
     2  4 1781420  63104    152   8660   32 8720  5600  8724  542  601  4  6  1 88  0	
     0  3 1808612  67472    148   5512   96 27224 12276 27224 1700 1599 16 11 21 52  0
       
    Swap
           si: Amount of memory swapped in from disk (/s).
           so: Amount of memory swapped to disk (/s).
    
    si,          数据从 SWAP 读取到 RAM(swap in)的大小,KB 为单位;
    
    so,         数据从 RAM 写到 SWAP(swap out)的大小,KB 为单位。
    
    
    
    
    
    si表示当前(三秒钟之内)每秒交换回内存(Swap in)的总量,单位为kbytes;so表示当前(三秒钟之内)每秒交换出内存(Swap out)的总量,单位为kbytes。
    


    
    
    
                                        
    
  • 相关阅读:
    一、汇编基础知识
    PHP RabbitMQ消息队列演示代码
    PHP CentOS下安装PHP及部署ThinkPHP
    MySQL CentOS下安装MySQL
    ThinkPHP 对接支付宝支付接口
    ThinkPHP 获取当前页面完整的URL地址
    前端 Validform.js属性,用法及Ajax提交简介
    PHP 配置Xdebug调试工具
    ThinkPHP 原生分页功能改进,更好用更美观
    ThinkPHP 使用第三方phpmailer库发送邮件
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351725.html
Copyright © 2020-2023  润新知