Performance tuning the LinkStation hard drive
Based on work by frontalot and nix.
Originally by frontalot.
OpenLink uses hdparm to set the drive's spindown time during boot, but does not change any of the other drive parameters. Since the default parameters are conservative there is room for improvement. However, the "best" parameters depend on the make and model of the drive. Typically common tuning parameters for hdparm are passed around without actually knowing if they work or what they are good for. This article uses a such a particular set, which might or might not improve the LS' performance.
Getting a Performance Indication
Ensure the Linkstation is idle. Then run
/sbin/hdparm -tT /dev/hda
multiple times before changing a parameter. Then change a parameter and run the command again multiple times. If you are lucky you see better (larger) values, and your data is not garbled.
1. Open up the hdparm startup script and modify the performance settings:
2. Provide the following settings:
3. These particular settings may not always improve performance - try different settings.
- tells hdparm to change the settings quietly.
- m16 sets the number of sectors to use for IDE block mode (multicount).
- c1 sets I/O support to 32-bit (from 16-bit).
- d1 turns DMA usage on.
- u1 enables unmasking of interrupts.
- S250 sets a spindown time of 5 hours. Spindown might never happen as long as daemons like syslogd need to write to the disk in regular intervals.