zoukankan      html  css  js  c++  java
  • MySQL IO高定位 pt-ioprofile

    1. pt-ioprofile
    功能:方便定位IO问题,可通过IO吞吐量来定位。 

    原理:pt-ioprofile的原理是对某个pid附加一个strace进程进行IO分析。

    2. [root@node3 bin]# ./pt-ioprofile 

    通过这个报告我们可以看到,哪个文件占用IO的时间比较多,跟磁盘交互最为繁忙,便于锁定IO问题。

    3. 参数

    -cell            The cell contents.

    有三个值:

    count  Count of I/O operations

    sizes  Sizes of I/O operations

    times  I/O operation timing(默认)

    ------------------------------------------

      --run-time        How long to profile.

    #监控时长,默认30S

      --save-samples    Filename to save samples in; these can be used for later  analysis.

     参考:https://yq.aliyun.com/articles/647781

    用一个例子来演示会更加清晰
  • 相关阅读:
    JS函数式编程【译】前言
    11.15周总结
    11.13
    11.12
    11.11
    11.10
    11.9
    11.8周总结
    11.6
    11.5
  • 原文地址:https://www.cnblogs.com/hixiaowei/p/14536714.html
Copyright © 2011-2022 走看看