ceph存储 iozone集群测试方案以及iozone使用详解经典

本文详细介绍了iozone工具在Ceph存储环境中的集群测试方案,包括输出格式、基本参数设置、文件读写方法以及文件打开参数的影响。重点探讨了缓存相关参数对测试结果的影响,通过具体的测试过程和结果分析,揭示了不同参数如-direct_io、O_SYNC等对读写速度的实际效应。
摘要由CSDN通过智能技术生成

man iozone


1. 输出格式

       -R     Generate  Excel  report.   Iozone  will  generate an Excel compatible report to
              standard out. This file may be imported with Microsoft Excel (space  delimited)
              and  used  to create a graph of the filesystem performance. Note: The 3D graphs
              are column oriented. You will need to select this when graphing as the  default
              in Excel is row oriented data.
       -b filename
              Used  to specify a filename that will be used for output of an Excel compatible
              file that contains the results.
       -M     Iozone will call uname() and will put the string in the output file.
2. 基本参数

       -a     Used to select full automatic mode. Produces output that covers all tested file
              operations for record sizes of 4k to 16M for file sizes of 64k to 512M.
       -i #   Used to specify which tests to run. (0=write/rewrite, 1=read/re-read, 2=random-
              read/write, 3=Read-backwards,  4=Re-write-record,  5=stride-read,  6=fwrite/re-
              fwrite,  7=fread/Re-fread,  8=mixed  workload, 9=pwrite/Re-pwrite, 10=pread/Re-
              pread, 11=pwritev/Re-pwritev, 12=preadv/Re-preadv).  One will  always  need  to
              specify  0  so  that  any  of  the following tests will have a file to measure.
              -i # -i # -i # is also supported so that one may select more than one test.
       -s #   Used  to specify the size, in Kbytes, of the file to test. One may also specify
              -s #k (size in Kbytes) or -s #m (size in Mbytes) or -s #g (size in Gbytes).
       -g #   Set maximum file size  (in Kbytes) for auto mode. One  may  also  specify  -g #k
              (size  in  Kbytes)  or -g #m (size in Mbytes) or -g #g (size in Gbytes). See -n
              for minimum file size.
       -n #   Set minimum file size (in Kbytes) for auto mode. One  may  also  specify  -n #k
              (size  in  Kbytes)  or -n #m (size in Mbytes) or -n #g (size in Gbytes). See -g
              for maximum file size.

       -r #   Used to specify the record size , in Kbytes, to test. One may also specify -r #k
              (size in Kbytes) or -r #m (size in Mbytes) or -r #g (size in Gbytes).
       -q #   Set  maximum  record size (in Kbytes) for auto mode. One may also specify -q #k
              (size in Kbytes) or -q #m (size in Mbytes) or -q #g (size in  Gbytes).  See  -y
              for minimum record size.
       -y #   Set minimum record size (in Kbytes) for auto mode. One may also  specify  -y #k
              (size  in  Kbytes)  or -y #m (size in Mbytes) or -y #g (size in Gbytes). See -q
              for maximum record size.


       -f filename
              Used to specify the filename for the temporary file under test. This is  useful
              when  the unmount option is used. When testing with unmount between tests it is
              necessary for the temporary file under test to be in a directory  that  can  be
              unmounted.  It  is not possible to unmount the current working directory as the
              process Iozone is running in this directory.
       -F filename filename filename ?
              Specify each of the temporary file names to be used in the throughput   testing.
              The  number of names should be equal to the number of processes or threads that
              are specified.
       -w     Do not unlink temporary files when finished using them.
3. 文件读写方法(read/write, mmap, aio)
       -B     Use mmap() files. This causes all of the temporary files being measured  to  be
              created  and  accessed  with  the mmap() interface. Some applications prefer to
              treat files as arrays of memory. These applications mmap() the  file  and  then
              just access the array with loads and stores to perform file I/O.
       -H #   Use  POSIX  async I/O with # async operations.  Iozone will use POSIX async I/O
              with a bcopy  from the async buffers back into  the  applications  buffer.  Some
              versions of MSC NASTRAN perform I/O this way.  This technique is used by appli‐
              cations so that the async I/O may be performed in a  library  and  requires  no
              changes to the applications internal model.
       -k #   Use  POSIX async I/O (no bcopy) with # async operations.  Iozone will use POSIX
              async I/O and will not perform any extra bcopys . The  buffers  used  by  Iozone
              will be handed to the async I/O system call directly.
       -Z     Enable mixing of mmap I/O and file I/O.
4. 文件打开参数 (direct_io, O_SYNC, ....) cache /buffer 相关
       -D     Use msync(MS_ASYNC) on mmap files. This tells the operating system that all the
  
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值