Randomio

Нужно создать файл сначала с помощью dd

randomio /home/file N 0.1 0 bsize 60

randomio /mnt/file 8 0.5 1 4096 10  total | read:         latency (ms)       |  write:        latency (ms) iops |  iops   min    avg    max   sdev |   iops   min    avg    max   sdev +---+-- 131.2 |   67.1   0.0   44.9  319.0   53.0 |   64.1  16.0   77.2  246.0   37.8  131.3 |   66.7   0.0   46.0  284.5   52.9 |   64.6  12.0   77.1  202.7   37.2  124.9 |   59.6   0.0   50.6  321.0   58.2 |   65.3  12.0   76.2  227.1   39.6  126.7 |   60.5   0.0   50.1  297.3   56.9 |   66.2  12.0   74.7  206.2   36.6  131.8 |   67.7   0.0   45.7  335.8   55.9 |   64.1  16.0   76.6  220.3   35.9  127.4 |   62.8   0.0   49.7  292.9   58.3 |   64.6  16.0   75.6  228.8   36.1  134.6 |   70.4   0.0   43.4  228.9   48.7 |   64.2  16.0   77.0  188.0   35.0  130.1 |   66.3   0.0   47.5  277.0   55.4 |   63.8  16.0   75.8  189.0   35.4  127.9 |   63.8   0.0   47.0  260.9   52.7 |   64.1  12.0   77.8  212.1   36.7  130.4 |   65.6   0.0   49.6  277.1   58.6 |   64.8  16.0   73.4  210.4   36.3  129.5 |   64.6   0.0   49.9  325.8   58.9 |   64.9  12.0   73.4  213.9   35.4  126.9 |   61.4   0.0   52.2  353.0   62.8 |   65.5  12.0   73.4  201.6   36.7  133.3 |   69.3   0.0   44.1  248.7   49.9 |   64.0  16.0   77.4  235.2   36.7  131.1 |   65.9   0.0   45.3  270.0   52.7 |   65.2  12.0   77.2  226.5   36.4  128.5 |   64.0   0.0   47.3  427.4   54.6 |   64.5  12.0   77.3  203.2   36.7  125.7 |   60.1   0.0   48.8  288.2   55.6 |   65.6  12.0   77.3  223.3   37.7  128.8 |   63.1   0.0   47.1  290.8   52.4 |   65.7  16.0   76.2  215.3   36.9  129.0 |   64.4   0.0   48.8  295.2   56.0 |   64.6  16.0   75.7  191.3   37.0  129.9 |   64.9   0.0   48.0  300.3   54.8 |   65.0  12.0   74.8  201.2   36.6  129.8 |   65.5   0.0   48.8  311.3   57.0 |   64.3  12.0   74.3  225.5   35.9  132.1 |   68.5   0.0   44.5  285.6   52.6 |   63.6  16.0   78.0  311.0   40.5  129.9 |   65.1   0.0   47.2  274.0   53.5 |   64.8  12.0   76.5  250.1   38.8  131.8 |   68.0   0.0   44.7  238.4   50.3 |   63.8  16.0   77.5  220.0   36.2  127.9 |   62.2   0.0   50.7  309.4   57.7 |   65.7  16.0   73.7  199.9   36.8  130.2 |   64.8   0.0   47.1  262.6   53.7 |   65.4  16.0   75.8  212.9   34.3  128.1 |   64.4   0.0   48.4  274.3   56.9 |   63.7  12.0   76.2  202.9   37.7 

this is a multithreaded disk i/o microbenchmark. it requires O_DIRECT, pread/pwrite, and pthreads.

WARNING: this will destroy data if used incorrectly.

usage: ./randomio filename nr_threads write_fraction_of_io fsync_fraction_of_writes io_size nr_seconds_between_samples

filename filename or device to read/write.

write_fraction_of_io what fraction of i/o should be writes. for example 0.25 for 25% write traffic.

fsync_fraction_of_writes what fraction of writes should be fsync'd.

io_size how many bytes to read/write. must be a positive multiple of 512 bytes

nr_seconds_between_samples how many seconds to average samples over. recommended 10 or       more.

total | read:        latency (ms)       | write:        latency (ms) iops | iops   min    avg    max   sdev |  iops   min    avg    max   sdev ---+--+- 86.9 |  43.2   5.9  134.4  494.4   94.2 |  43.7   0.3   49.0  335.9   53.2  85.4 |  40.9   7.7  146.8  831.4  103.3 |  44.5   0.3   45.2  243.0   44.8  84.5 |  43.2   4.2  138.4 1126.4  112.5 |  41.3   0.2   46.8  263.2   50.7

http://makarevitch.org/rant/raid/