ihashacks

i dunno

Linux Software Raid Tuning

I wrote a handy script to perform write and read tests on Linux software RAID devices.

Features:

  • tests stripe_cache_size 28 – 215
  • auto-detects active software RAID volumes
  • automatically determines test sizes based on physical RAM
  • tests that enough free space exists to perform the test

See it in action:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
testing md126...
running write test 1 for stripe_cache_size 256... (17 GB) copied, 152.671 s, 108 MB/s
running write test 2 for stripe_cache_size 256... (17 GB) copied, 129.458 s, 127 MB/s
running read test 1 for stripe_cache_size 256... (17 GB) copied, 68.6053 s, 241 MB/s
running read test 2 for stripe_cache_size 256... (17 GB) copied, 68.8021 s, 240 MB/s
running write test 1 for stripe_cache_size 512... (17 GB) copied, 113.154 s, 146 MB/s
running write test 2 for stripe_cache_size 512... (17 GB) copied, 110.665 s, 149 MB/s
running read test 1 for stripe_cache_size 512... (17 GB) copied, 68.5612 s, 241 MB/s
running read test 2 for stripe_cache_size 512... (17 GB) copied, 68.1318 s, 242 MB/s
running write test 1 for stripe_cache_size 1024... (17 GB) copied, 97.5265 s, 169 MB/s
running write test 2 for stripe_cache_size 1024... (17 GB) copied, 103.142 s, 160 MB/s
running read test 1 for stripe_cache_size 1024... (17 GB) copied, 69.2239 s, 238 MB/s
running read test 2 for stripe_cache_size 1024... (17 GB) copied, 74.1555 s, 223 MB/s
running write test 1 for stripe_cache_size 2048... (17 GB) copied, 89.9376 s, 183 MB/s
running write test 2 for stripe_cache_size 2048... (17 GB) copied, 89.3581 s, 185 MB/s
running read test 1 for stripe_cache_size 2048... (17 GB) copied, 78.6678 s, 210 MB/s
running read test 2 for stripe_cache_size 2048... (17 GB) copied, 74.8776 s, 220 MB/s
running write test 1 for stripe_cache_size 4096... (17 GB) copied, 83.1424 s, 198 MB/s
running write test 2 for stripe_cache_size 4096... (17 GB) copied, 84.5773 s, 195 MB/s
running read test 1 for stripe_cache_size 4096... (17 GB) copied, 75.3009 s, 219 MB/s

…and so on.

Download raid-perf-test on GitHub.

Comments