SSD optimizations

From Wildsong
Revision as of 05:20, 13 November 2010 by Brian Wilson (talk | contribs)
Jump to navigationJump to search

See http://tombuntu.com/index.php/2008/09/04/four-tweaks-for-using-linux-with-solid-state-drives/

/boot, /home, /swap on raptor /dev/sda / on RevoDrive /dev/md0 (/dev/sdc, /dev/sdd)

1 put noatime option in /etc/fstab

2 disable the elevator scheduler, put these in /etc/rc.local

echo noop > /sys/block/sdc/queue/scheduler
echo noop > /sys/block/sdd/queue/scheduler

3 manage write caching via /etc/hdparm.conf

# Raptor drive
/dev/sda {
	write_cache = on
}

# Caviar drive
/dev/sdb {
	write_cache = on
}

# SSD RevoDrive
/dev/sdc {
	write_cache = off
}

/dev/sdd {
	write_cache = off
}

Test results

root@raven:/etc# hdparm -t /dev/md0
/dev/md0:
Timing buffered disk reads:  1028 MB in  3.01 seconds = 341.87 MB/sec
root@raven:/etc# hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads:  358 MB in  3.01 seconds = 118.84 MB/sec
root@raven:/etc# hdparm -t /dev/sdb

/dev/sdb:
Timing buffered disk reads:  198 MB in  3.00 seconds =  65.97 MB/sec