Re: RAID performance
From: Carsten Aulbert <hidden>
Date: 2013-02-07 07:02:04
Hi Adam On 02/07/2013 07:48 AM, Adam Goryachev wrote:
Each drive only has a single partition, and is partitioned a little smaller than the drive (supposedly this should improve performance). Each drive is set to the deadline scheduler.
First, I'd start with the deadline scheduler.
Even for rotating rust systems you can improve performance quite a bit,
but with SSDs you might hit the limits way too early and need to tune it.
Save the current default values somewhere safe, so you can go back
easily, then start tuning these values (as a start):
for i in $(grep \^md /proc/mdstat |cut -d' ' -f 5-); do
DEV=${i:0:3}
echo deadline > /sys/block/$DEV/queue/scheduler
echo 4096 > /sys/block/$DEV/queue/nr_requests
echo 8192 > /sys/block/$DEV/queue/read_ahead_kb
echo 5000 > /sys/block/$DEV/queue/iosched/read_expire
echo 1000 > /sys/block/$DEV/queue/iosched/write_expire
echo 2048 > /sys/block/$DEV/queue/iosched/fifo_batch
done
At least setting these helped quite a bit.
HTH
carsten