zoukankan      html  css  js  c++  java
  • iostat查看IO数据

    Linux系统出现了性能问题,一般我们可以通过topiostatfreevmstat等命令来查看初步定位问题。其中iostat可以给我们提供丰富的IO状态数据。

    $iostat -d -k 1 10

    参数 -d 表示,显示设备(磁盘)使用状态;-k某些使用block为单位的列强制使用Kilobytes为单位;1 10表示,数据显示每隔1秒刷新一次,共显示10次。

    tps:该设备每秒的传输次数(Indicate the number of transfers per second that were issued to the device.)。“一次传输”意思是“一次I/O请求”。多个逻辑请求可能会被合并为“一次I/O请求”。“一次传输”请求的大小是未知的。

    kB_read/s:每秒从设备(drive expressed)读取的数据量;kB_wrtn/s:每秒向设备(drive expressed)写入的数据量;kB_read:读取的总数据量;kB_wrtn:写入 的总数量数据量;这些单位都为Kilobytes

    常用用法

    $iostat -d -k 1 10 #查看TPS和吞吐量信息

    iostat -d -x -k 1 10 #查看设备使用率(%util)、响应时间(await

    iostat -c 1 10 #查看cpu状态

    原文:

    http://www.orczhou.com/index.php/2010/03/iostat-detail/

    http://www.cnblogs.com/mfryf/archive/2012/03/12/2392000.html

  • 相关阅读:
    SpringBoot04-web
    springboot03-日志功能
    SpringBoot02-自动配置原理
    SpringBoot02
    SpringBoot01
    八大排序算法
    SpringSecurity04
    SpringSecurity03
    SpringSecurity02
    SpringSecurity01
  • 原文地址:https://www.cnblogs.com/mydomain/p/2809888.html
Copyright © 2011-2022 走看看