====== aio-stress ====== ---- dataentry benchmark ---- name : aio-stress layers_ttags : POSIX features_ttags : data parallel_ttags : pthreads type_ttags : synthetic license_ttag : GPLv2 webpage_url : http://fsbench.filesystems.org/bench/aio-stress.c ---- Aio-stress is a benchmark, which tests asynchronous io operations to a list of files. ===== Usage ===== Download the c file and compile it with gcc -Wall -laio -lpthread -o aio-stress aio-stress.c You then can run it with ./aio-stress * With -h you get a list of all options. * To run multithreaded you have to set the number of contexts with -c and the number of threads with -t. * You can also run the benchmark with multiple files. ===== Example Output ===== Running the benchmark like this: ./aio-stress -c 4 -t 4 file1 file2 file3 will result in an output like this: file size 1024MB, record size 64KB, depth 64, ios per iteration 8 max io_submit 96, buffer alignment set to 4KB threads 4 files 3 contexts 4 context offset 2MB verification off Running multi thread version num_threads:4 write on file1 (35.16 MB/s) 1012.00 MB in 28.78s write on file2 (35.17 MB/s) 1012.00 MB in 28.77s write on file3 (35.18 MB/s) 1012.00 MB in 28.77s write on file1 (35.26 MB/s) 1016.00 MB in 28.81s write on file2 (35.26 MB/s) 1016.00 MB in 28.81s write on file3 (35.26 MB/s) 1016.00 MB in 28.81s write on file1 (35.37 MB/s) 1020.00 MB in 28.84s write on file2 (35.37 MB/s) 1020.00 MB in 28.84s write on file3 (35.37 MB/s) 1020.00 MB in 28.84s write on file1 (35.48 MB/s) 1024.00 MB in 28.86s write on file2 (35.48 MB/s) 1024.00 MB in 28.86s write on file3 (35.48 MB/s) 1024.00 MB in 28.86s thread 3 write totals (68.44 MB/s) 3036.00 MB in 44.36s thread 2 write totals (68.71 MB/s) 3048.00 MB in 44.36s thread 0 write totals (69.25 MB/s) 3072.00 MB in 44.36s thread 1 write totals (68.98 MB/s) 3060.00 MB in 44.36s write throughput (275.37 MB/s) 12216.00 MB in 44.36s min transfer 3060.00MB read on file1 (153.83 MB/s) 1020.00 MB in 6.63s read on file2 (153.83 MB/s) 1020.00 MB in 6.63s read on file3 (153.83 MB/s) 1020.00 MB in 6.63s thread 1 read totals (461.47 MB/s) 3060.00 MB in 6.63s read on file1 (153.57 MB/s) 1018.00 MB in 6.63s read on file2 (153.57 MB/s) 1018.00 MB in 6.63s read on file3 (153.57 MB/s) 1018.00 MB in 6.63s read on file1 (136.82 MB/s) 907.50 MB in 6.63s thread 0 read totals (460.67 MB/s) 3054.00 MB in 6.63s read on file2 (136.82 MB/s) 907.50 MB in 6.63s read on file3 (136.82 MB/s) 907.50 MB in 6.63s thread 3 read totals (410.44 MB/s) 2722.50 MB in 6.63s read on file1 (150.46 MB/s) 997.50 MB in 6.63s read on file2 (150.46 MB/s) 997.50 MB in 6.63s read on file3 (150.46 MB/s) 997.50 MB in 6.63s thread 2 read totals (451.35 MB/s) 2992.50 MB in 6.63s read throughput (1783.19 MB/s) 11829.00 MB in 6.63s min transfer 2992.50MB random write on file1 (6.35 MB/s) 1012.00 MB in 159.43s random write on file2 (6.35 MB/s) 1012.00 MB in 159.43s random write on file3 (6.35 MB/s) 1012.00 MB in 159.43s random write on file1 (5.94 MB/s) 1016.00 MB in 171.12s random write on file2 (5.94 MB/s) 1016.00 MB in 171.12s random write on file3 (5.94 MB/s) 1016.00 MB in 171.12s random write on file1 (5.98 MB/s) 1024.00 MB in 171.18s random write on file2 (5.98 MB/s) 1024.00 MB in 171.18s random write on file3 (5.98 MB/s) 1024.00 MB in 171.18s random write on file1 (5.96 MB/s) 1020.00 MB in 171.20s random write on file2 (5.96 MB/s) 1020.00 MB in 171.20s random write on file3 (5.96 MB/s) 1020.00 MB in 171.20s thread 2 random write totals (15.28 MB/s) 3048.00 MB in 199.47s thread 0 random write totals (15.40 MB/s) 3072.00 MB in 199.47s thread 1 random write totals (15.34 MB/s) 3060.00 MB in 199.47s thread 3 random write totals (15.22 MB/s) 3036.00 MB in 199.47s random write throughput (61.24 MB/s) 12216.00 MB in 199.47s min transfer 3036.00MB random read on file1 (151.46 MB/s) 1012.00 MB in 6.68s random read on file2 (151.45 MB/s) 1012.00 MB in 6.68s random read on file3 (151.45 MB/s) 1012.00 MB in 6.68s thread 3 random read totals (454.30 MB/s) 3036.00 MB in 6.68s random read on file1 (147.59 MB/s) 986.50 MB in 6.68s random read on file2 (147.59 MB/s) 986.50 MB in 6.68s random read on file3 (147.59 MB/s) 986.50 MB in 6.68s thread 2 random read totals (442.76 MB/s) 2959.50 MB in 6.68s random read on file1 (135.59 MB/s) 906.50 MB in 6.69s random read on file2 (135.59 MB/s) 906.50 MB in 6.69s random read on file3 (135.59 MB/s) 906.50 MB in 6.69s random read on file1 (150.83 MB/s) 1008.50 MB in 6.69s random read on file2 (150.83 MB/s) 1008.50 MB in 6.69s random read on file3 (150.83 MB/s) 1008.50 MB in 6.69s thread 0 random read totals (406.75 MB/s) 2719.50 MB in 6.69s thread 1 random read totals (452.48 MB/s) 3025.50 MB in 6.69s random read throughput (1755.84 MB/s) 11740.50 MB in 6.69s min transfer 3025.50MB pthread_join: Success