Disk Performance
From ConShell
Some tips for increasing disk (I/O) performance under various operating systems.
Contents |
Linux
References
- Read 3ware's KB article: How can I improve performance using 3ware controllers with the Linux 2.6 kernel?
- Read http://www.linuxdevcenter.com/pub/a/linux/2000/06/29/hdparm.html to learn all about hdparm and how it's default settings are usually non-optimal
Use blockdev to increase the # of read-ahead pages
blockdev --setra 16384 /dev/sda
Get a report of same
sudo blockdev --report /dev/sda RO RA SSZ BSZ StartSec Size Device rw 256 512 4096 0 488259584 /dev/sda
Use hdparm to set various performance-enhancing values. Note that SATA drives cannot benefit from these see http://linux-ata.org/faq.html
Turn on dma
hdparm -d1 /dev/sda
Set IO_support to use 32-bit (usual default is 16-bit)
hdparm -c3 /dev/sda
Set multicount to 16
hdparm -m16 /dev/sda
FreeBSD

