zoukankan      html  css  js  c++  java
  • 磁盘性能对比测试

    dd if=/dev/zero bs=10M count=100 of=/usr/local/1Gb.file

    [root@centos21 ~]# dd if=/dev/zero bs=10M count=100 of=/usr/local/1Gb.file
    100+0 records in
    100+0 records out
    1048576000 bytes (1.0 GB) copied, 7.3669 s, 142 MB/s




    对比:研发测试机 10.10.14.199

    [root@DevServer ~]# dd if=/dev/zero bs=10M count=100 of=/usr/local/1Gb.file
    100+0 records in
    100+0 records out
    1048576000 bytes (1.0 GB) copied, 1.50725 s, 696 MB/s


    对比:赤峰
    [root@localhost ~]# dd if=/dev/zero bs=10M count=100 of=/usr/local/1Gb.file
    100+0 records in
    100+0 records out
    1048576000 bytes (1.0 GB) copied, 0.618324 s, 1.7 GB/s

    ====================================================================================
    二、测试使用nmon

    安装

    mkdir /usr/local/nmon
    cd /usr/local/nmon
    wget http://sourceforge.net/projects/nmon/files/nmon_linux_14i.tar.gz
    tar zxvf nmon_linux_14i.tar.gz
    chmod 777 nmon_x86_64_sles11

    启动

    ./nmon_x86_64_sles11

    =====================================================================================
    三、换个工具:iostat


    yum install sysstat

    iostat -dx 10


    Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
    sdc               0.00     8.72    0.16    3.43    15.11    97.23    31.29     0.00    0.20    0.30    0.19   0.11   0.04
    sda               0.00     2.83    0.01    1.20     0.80    32.26    27.31     0.01    5.65    1.70    5.69   0.48   0.06
    sdb               2.30   411.81    0.20  221.90    29.42  5069.66    22.96     0.51    2.28    0.64    2.28   1.85  41.03


     介绍一下相关参数的含义:

        rrqm/s:队列中每秒钟合并的读请求数量
        wrqm/s:队列中每秒钟合并的写请求数量
        r/s:每秒钟完成的读请求数量
        w/s:每秒钟完成的写请求数量
        rsec/s:每秒钟读取的扇区数量
        wsec/s:每秒钟写入的扇区数量
        avgrq-sz:平均请求扇区的大小
        avgqu-sz:平均请求队列的长度
        await:平均每次请求的等待时间
        svctm:平均每次请求的服务时间
        util:设备的利用率

     对比10.10.14.199
    [root@DevServer ~]# iostat -dx 10
    Linux 2.6.32-696.16.1.el6.x86_64 (DevServer)    05/14/2018      _x86_64_        (16 CPU)

    Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
    scd0              0.00     0.00    0.00    0.00     0.00     0.00     8.00     0.00    0.55    0.55    0.00   0.55   0.00
    sda               3.47   389.80   16.61   24.89  3756.76  3317.60   170.46     0.46   11.18    1.96   17.33   1.01   4.20

    Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
    scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
    sda               0.00   144.40    0.10   20.60     0.80  1320.00    63.81     0.04    1.75    0.00    1.76   0.67   1.38

    ^C
    [root@DevServer ~]# df -h
    Filesystem           Size  Used Avail Use% Mounted on
    /dev/sda3            484G  199G  262G  44% /
    tmpfs                 16G  130M   16G   1% /dev/shm
    /dev/sda1            477M  103M  349M  23% /boot
    //10.10.14.227/down  348G  155G  193G  45% /usr/local/tomcat7/webapps/dsideal_yy/html/down
    ====================================================

    =====================================================================================

  • 相关阅读:
    Javascript:window.close()不起作用?
    为什么全部width:100%浏览器边缘存在留白?
    hello world
    【Vue】在Vue事件中是如何使用event对象的?
    【Vue】特殊属性is
    【Vue】过滤器
    【Vue源码】Vue不能检测到对象属性的添加或删除
    【VueRouter】vue路由跳转打开新窗口
    【VueRouter】切换路由后,新页面滚动到顶部或保持原先的滚动位置——scrollBehavior
    【VueRouter】前端路由的两种模式
  • 原文地址:https://www.cnblogs.com/littlehb/p/9035954.html
Copyright © 2011-2022 走看看