Disk Performance

From ConShell

Jump to: navigation, search

Some tips for increasing disk (I/O) performance under various operating systems.

Contents

Linux

References

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


Related

Personal tools


check web page