Bitbull Tech Notes - home of free minds ...

Block device tuning notes

Place this in /etc/rc.local to play

 

# quick and drity performance tuning
echo deadline > /sys/block/sdb/queue/scheduler
echo deadline > /sys/block/sdc/queue/scheduler
echo 0 > /sys/block/sdb/queue/iosched/front_merges
echo 0 > /sys/block/sdc/queue/iosched/front_merges
echo 150 > /sys/block/sdb/queue/iosched/read_expire
echo 150 > /sys/block/sdc/queue/iosched/read_expire
echo 1500 > /sys/block/sdb/queue/iosched/write_expire
echo 1500 > /sys/block/sdc/queue/iosched/write_expire

Softraid tuning notes

You can place this in /etc/rc.local play

# softraid tuning
/usr/bin/echo 1 > /sys/block/sdb/device/queue_depth
/usr/bin/echo 1 > /sys/block/sdc/device/queue_depth
/usr/bin/echo 1 > /sys/block/sde/device/queue_depth
/usr/bin/echo 10000 > /proc/sys/dev/raid/speed_limit_min
/usr/bin/echo 30000 > /proc/sys/dev/raid/speed_limit_max
/usr/sbin/blockdev --setra 65536 /dev/md0
/usr/bin/echo 16384 > /sys/block/md0/md/stripe_cache_size

# other tuning notes
#echo deadline > /sys/block/sdb/queue/scheduler
#echo 0 > /sys/block/sdb/queue/iosched/front_merges
#echo 150 > /sys/block/sdb/queue/iosched/read_expire
#echo 1500 > /sys/block/sdb/queue/iosched/write_expire
#ip link set enp3s0 mtu 9000
Home