iozone用了很久,查看源码,发现iozone其实还附带两个工具fileop和pit_server,fileop测试了POSIX常用的函数,pit_server用来测试TCP或UDP服务

今天用了一下fileop测试ceph的读写瓶颈,一下就找到问题了。首先看一下帮助

[root@node2 iozone]# ./fileop -h

     --------------------------------------
     |              Fileop                | 
     |         $Revision: 1.61 $          | 
     |                                    | 
     |                by                  |
     |                                    | 
     |             Don Capps              |
     --------------------------------------

     fileop [-f X ]|[-l # -u #] [-s Y] [-e] [-b] [-w] [-d <dir>] [-t] [-v] [-h]

     -f #      Force factor. X^3 files will be created and removed.
     -l #      Lower limit on the value of the Force factor.
     -u #      Upper limit on the value of the Force factor.
     -s #      Optional. Sets filesize for the create/write. May use suffix 'K' or 'M'.
     -e        Excel importable format.
     -b        Output best case results.
     -i #      Increment force factor by this increment.
     -w        Output worst case results.
     -d <dir>  Specify starting directory.
     -U <dir>  Mount point to remount between tests.
     -t        Verbose output option.
     -v        Version information.
     -h        Help text.

     The structure of the file tree is:
     X number of Level 1 directories, with X number of
     level 2 directories, with X number of files in each
     of the level 2 directories.

     Example:  fileop 2

             dir_1                        dir_2
            /     \                      /     \ 
      sdir_1       sdir_2          sdir_1       sdir_2
      /     \     /     \          /     \      /     \ 
   file_1 file_2 file_1 file_2   file_1 file_2 file_1 file_2

   Each file will be created, and then Y bytes is written to the file.
View Code

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2021-11-05
  • 2021-08-04
猜你喜欢
  • 2021-10-29
  • 2021-11-18
  • 2021-08-03
  • 2021-06-17
  • 2021-06-22
  • 2021-05-21
  • 2021-12-27
相关资源
相似解决方案