How To: Double Linux disk read performance with readahead parameter
The open source journal has published an interesting hack. It mostly applies to high-end, multiple-disk storage:
Under the right conditions (that is, with certain hardware configurations which I'll identify later) it is possible to literally double your sequential read performance from disk. If you noticed the terrible performance of the 3Ware 9500S RAID controller and cared enough to investigate. It all has to do with a sneaky little block device parameter known as readahead. Without going into too much gory detail, readahead controls how much in advance the operating system reads when, well, reading, as its name implies. By default, some operating systems (in particular, RHEL5 Server) sets this to 256 (512-byte sectors), or about 128 KB. When dealing with large filesystems spanning many disks, this paltry figure can actually nuke your performance.
=> HowTo: Linux: Double your disk read performance in a single command
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or full RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in...
- Understanding RAID and required number of minimum disk in graphical format
- Linux USB Pen / Stick RAID
- MySQL Performance Tuning tips and techniques
- nixCraft FAQ Roundup
- Optimizing Linux code, application and programs - system performance
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: 3ware, blockdev_command, disk storage, gory detail, hack, hardware configurations, raid controller, readhead, rhel 5 ~ Last updated on: November 22, 2007



Very interesting