Global Linux Knowledge Base…
Linux Filesystem IO benchmarking tool – Fileop
|
Fileop 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. |
|
First Install iozone, |
|
# wget http://iozone.org/src/current/iozone-3-353.src.rpm |
|
# rpm -ivh iozone-3-353.src.rpm |
|
Fileop can create files of different size ( with -s option ) and to different directory depth ( with -f option ). |
|
# cd /opt/iozone/bin/ |
|
# fileop -f 10 -s 1k |
|
Fileop: Working in ., File size is 1024, Output is in Ops/sec. (A=Avg, B=Best, W=Worst) |
|
. mkdir chdir rmdir create open read write close stat access chmod readdir link unlink delete Total_files |
|
A 10 3188 253715 54844 535 229636 133875 3034 142194 244295 343458 236873 87674 127181 167886 54859 1000 |
|
# fileop -f 40 -s 4k -t
|
|
Fileop: Working in ., File size is 4096, Output is in Ops/sec. (A=Avg, B=Best, W=Worst) |
|
mkdir: Dirs = 65640 Total Time = 40.244653463 seconds |
|
Avg mkdir(s)/sec = 1631.02 ( 0.000613112 seconds/op) |
|
Best mkdir(s)/sec = 45590.26 ( 0.000021935 seconds/op) |
|
Worst mkdir(s)/sec = 0.23 ( 4.263848066 seconds/op) |
|
chdir: Dirs = 65640 Total Time = 0.262116671 seconds |
|
Avg chdir(s)/sec = 250422.84 ( 0.000003993 seconds/op) |
|
Best chdir(s)/sec = 349525.33 ( 0.000002861 seconds/op) |
|
Worst chdir(s)/sec = 1377.44 ( 0.000725985 seconds/op) |
|
rmdir: Dirs = 65640 Total Time = 7.757781744 seconds |
|
Avg rmdir(s)/sec = 8461.18 ( 0.000118187 seconds/op) |
|
Best rmdir(s)/sec = 72315.59 ( 0.000013828 seconds/op) |
|
Worst rmdir(s)/sec = 0.29 ( 3.484306812 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. |
| Print article | This entry was posted by Dhaval Soni on December 2, 2010 at 8:42 PM, and is filed under All, CentOS, Fedora, Linux OS, Red Hat, Utilities. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |