Iozone Linux filesystem benchmarking tool has another cool utility called “fileop”. This utility does file operation on the filesystem and gives the ops/sec for each operation. This tool will be useful to test your filesystem performance as well as storage performance. Or, if you are going to select a filesystem or storage that is going to host huge number of small files (like source codes), then fileop can be used for benchmarking.

Fileop can create files of different size ( with -s option ) and to different directory depth ( with -f option ).

[root@bryant foo367]# /opt/iozone/bin/fileop  -f 10 -s 1k

Fileop:  File size is 1024,  Output is in Ops/sec. (A=Avg, B=Best, W=Worst)
.      mkdir  rmdir create   read  write  close   stat access  chmod readdir link   unlink delete  Total_files
A   10    795    771   1381  22915   1147   2282   1128 312914   1697    742    579    825    809         1000
[root@bryant foo367]#

[root@bryant foo367]# /opt/iozone/bin/fileop  -f 40 -s 4k -t

Fileop:  File size is 4096,  Output is in Ops/sec. (A=Avg, B=Best, W=Worst)
mkdir:   Dirs =      1640 Total Time =  2.069957018 seconds
         Avg mkdir(s)/sec     =       792.29 ( 0.001262169 seconds/op)
         Best mkdir(s)/sec    =      1039.74 ( 0.000961781 seconds/op)
         Worst mkdir(s)/sec   =       355.87 ( 0.002810001 seconds/op)

rmdir:   Dirs =      1640 Total Time =  2.155941963 seconds
         Avg rmdir(s)/sec     =       760.69 ( 0.001314599 seconds/op)
         Best rmdir(s)/sec    =      1273.70 ( 0.000785112 seconds/op)
         Worst rmdir(s)/sec   =        52.90 ( 0.018905163 seconds/op)

create:  Files =     64000 Total Time = 47.258722544 seconds
         Avg create(s)/sec    =      1354.25 ( 0.000738418 seconds/op)
         Best create(s)/sec   =      5440.08 ( 0.000183821 seconds/op)
         Worst create(s)/sec  =         7.50 ( 0.133283138 seconds/op)

write:   Files =     64000 Total Time = 58.136307001 seconds
         Avg write(s)/sec     =      1100.86 ( 0.000908380 seconds/op)
         Best write(s)/sec    =      3155.98 ( 0.000316858 seconds/op)
         Worst write(s)/sec   =        11.95 ( 0.083698034 seconds/op)

The fileop does perform mkdir, rmdir, create, write, close , stat, write, access, link, unlink, chmod, readdir and gives you performance stats in ops/sec and secs/op.

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
Read More

Filesystem : noatime

Most file systems store and maintain three separate time stamps per file. They are create time last modified…