This is an old revision of the document!
mdtest is a synthetic MPI parallel benchmark for testing the metadata performance of filesystems. Each thread operates on its own working set.
The benchmark operates in phases (excerpt):
Here are a few important command line arguments:
-d
Target directory to run the test on-i
Iterations, the benchmark is repeated this number of times to investigate standard deviation-z
Depth of the hierarchical directory structure-b
Branching factor, how many directories to create, used in conjunction with -z-I
Number of files to create per directory-w
Write this number of bytes to each file after it is created-r
Read this number of bytes from each file in the read phase
To print the internal operations of the benchmark add -v -v -v
to the tool.
For example runnning mpiexec -n 2 ./mdtest -d /tmp/ -b 10 -z 2 -i 1 -I 100
(using mdtest version 1.9.3) results in the following output
-- started at 12/02/2016 11:24:25 -- mdtest-1.9.3 was launched with 2 total task(s) on 1 node(s) Command line used: ./mdtest -d /tmp/ -b 10 -z 2 -i 1 -I 100 Path: /tmp FS: 15.6 GiB Used FS: 0.0% Inodes: 3.9 Mi Used Inodes: 0.0% 2 tasks, 22200 files/directories SUMMARY: (of 1 iterations) Operation Max Min Mean Std Dev --------- --- --- ---- ------- Directory creation: 980917.027 980917.027 980917.027 0.000 Directory stat : 1509378.324 1509378.324 1509378.324 0.000 Directory removal : 1065726.028 1065726.028 1065726.028 0.000 File creation : 845203.634 845203.634 845203.634 0.000 File stat : 1563488.352 1563488.352 1563488.352 0.000 File read : 1064592.847 1064592.847 1064592.847 0.000 File removal : 1214044.210 1214044.210 1214044.210 0.000 Tree creation : 734333.981 734333.981 734333.981 0.000 Tree removal : 860568.843 860568.843 860568.843 0.000 -- finished at 12/02/2016 11:24:25 --