Here are the basic steps to improving the performance of your filesystems
and block I/O (devb-*) drivers.
- Optimize disk hardware and driver options.
This is most important on non-x86 targets and systems without hard drives
(e.g., Microdrive, Compact Flash).
Not using the fastest available DMA mode (or degrading to PIO) can easily
affect the speed by a factor of ten.
For more information, see
Connecting Hardware.
- Optimize the filesystem options:
- Determine how you want to balance system robustness and performance
(see below).
- Concentrate on the cache and vnode
(filesystem-independent inodes) options; the
other sizes scale themselves to these.
- The default cache is 15% of the total system RAM, to a maximum of 512 MB.
This is too large for floppy drivers
(devb-fdc)
and RAM drivers
(devb-ram),
but might be too small for intensive use.
- Set the commit option (either globally or as a mount option)
to force or disable synchronous writes.
- Consider using a RAM disk for temporary files (e.g., /tmp).
- Optimize application code: