winterw 发表于 2014-11-20 18:08:28

有人用过iozone测试linux下的文件系统吗?

[zzi@ubuntu:~/tmp$ ./iozone -a -g 1m -b result.wks -+r -i0 -i1
      Iozone: Performance Test of File I/O
                Version $Revision: 3.429 $
                Compiled for 32 bit mode.
                Build: linux

      Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
                     Al Slater, Scott Rhine, Mike Wisner, Ken Goss
                     Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
                     Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
                     Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
                     Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
                     Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
                     Vangel Bojaxhi, Ben England, Vikentsi Lapa.

      Run began: Thu Nov 20 17:49:35 2014

      Auto Mode
      Using maximum file size of 1024 kilobytes.
      Read & Write sync mode active.
      Command line used: ./iozone -a -g 1m -b result.wks -+r -i0 -i1
      Output is in kBytes/sec
      Time Resolution = 0.000001 seconds.
      Processor cache size set to 1024 kBytes.
      Processor cache line size set to 32 bytes.
      File stride size set to 17 * record size.
                                                            random    random   bkwd    record    stride                                    
            kBreclen    writerewrite    read    reread    read   write   read   rewrite      read   fwrite frewrite    freadfreread
            64       4       47       4815258951728769                                                                        
            64       8      110      10219407822063600                                                                        
            64      16      203      19720648102211451                                                                        
            64      32      443      44422123492292300                                                                        
            64      64      760      76322919561834365                                                                        
             128       4       44       4616865221541439                                                                        
             128       8       94       9719692641830161                                                                        
             128      16      204      21721006411938879                                                                        
             128      32      394      44422024452329438                                                                        
             128      64      886      82023661582203844                                                                        
             128   128   1521   106824624842911903                                                                        
             256       4       47       4716963491730700                                                                        
             256       8       92      10419860132065421                                                                        
             256      16      200      18620991192223901                                                                        
             256      32      386      38021685162080859                                                                        
             256      64      626      78523677842439095                                                                        
             256   128   1519   151724614252907925                                                                        
             256   256   3049   305525121702510893                                                                        
             512       4       48       4716360621789893                                                                        
             512       8       97       9719688342246083                                                                        
             512      16      186      19120236412403536                                                                        
             512      32      337      29821796372496930                                                                        
             512      64      832      68722558232598123                                                                        
             512   128   1467   152323808222908695                                                                        
             512   256   3275   309322661392485460                                                                        
             512   512   6107   611723913522877923                                                                        
            1024       4       46       4616729671969538                                                                        
            1024       8       94       8919471282211363                                                                        
            1024      16      188      19319879362178795                                                                        
            1024      32      356      38521025222503797                                                                        
            1024      64      715      71521879602353833                                                                        
            1024   128   1605   157822501362738448                                                                        
            1024   256   3273   315922810452790788                                                                        
            1024   512   6552   610122451962660394                                                                        
            1024    1024    10736    1071518121891832163                     

上面的数据是我在pc上测试的,怎么看着都觉得不对呀,write才几十k到几M之间,而read在GB级别,太假了吧,我的参数错了吗?

winterw 发表于 2014-11-20 18:12:34

怀疑有可能是cache有问题,再去查查吧
页: [1]
查看完整版本: 有人用过iozone测试linux下的文件系统吗?