zoukankan      html  css  js  c++  java
  • linux学习------磁盘性能测试

     测试服务器  1核1G配置

    下载后放在你想测试的目录下,执行preparefile.sh准备测试文件,完成后执行runTest.sh执行测试,等待测试结果完成。

    1. {sysbench_bin}> sh preparefile.sh
    2. sysbench 0.5: multi-threaded system evaluation benchmark
    3. 2 files, 2097152Kb each, 4096Mb total
    4. Creating files for the test...
    5. Extra file open flags: 3
    6. Creating file test_file.0
    7. Creating file test_file.1
    8. 4294967296 bytes written in 50.71 seconds (80.77 MB/sec).
    9. 完成压力文件的准备工作

    完成测试文件的准备后,根据测试场景选择测试模式,Sysbench支持如下几种测试模式

    • seqwr 顺序写入
    • seqrewr 顺序重写
    • seqrd 顺序读取
    • rndrd 随机读取
    • rndwr 随机写入
    • rndrw 混合随机读/写

    例如我们测试顺序写入

    1. > sh runTest.sh seqwr

    如上writes即为顺序写入的测试结果。

  • 相关阅读:
    T-SQL查询语句
    数据库和表的管理
    数据库概念
    IRF2实验
    IFR2笔记
    校园网双网出口实验案例
    双机热备实验
    华为H3C(NAT)实验
    BGP(边界网关协议)实验
    Hybrid实验
  • 原文地址:https://www.cnblogs.com/tylzzh/p/9177386.html
Copyright © 2011-2022 走看看