I've been on a personal quest for a while now to quiet down my noisy hard drive on my laptop. I've detailed this process on my blog at http://extra-ketchup.blogspot.com/2007/ ... drive.html . My goal was to reduce the almost constant "chatter" and "chirping" from what seemed excessive drive head movement even during simple things like surfing the web. While power consumption is part of my concern, my main worry is drive life, as my previous laptop (which also had Gentoo and ran mostly using KDE as my environment) died due to hard drive failure.
Check my blog for details and insights, but here's the quick summary of what I did to quiet down my hard drive so that it very rarely spins up for normal use such as browsing the web:
- II copied my /usr directory to a fast SD card (my Dell laptop has a built-in card reader) and mounted it read only.
- I changed various file system settings to reduce writes back to the hard drive - noatime, nodiratime, and commit=3600 as part of my fstab options (I'm currently using ext3, though these options should work on other filesystems)
- In similar fashion, I adjusted various /proc/sys/vm settings to reducing writes due to dirty pages. NOTE - I actually found that laptop mode made my drive MORE noisy, not less! I think this is because of the demand of KDE on the filesystem, but I turned off laptop mode and my drive is silent now.
- I set up my init scripts (which are my own to begin with) to copy busy subdirectories of ~/ to my /tmp directory (which is mounted tmpfs) and then mount --bind those directories back to my home directory. This means that while I am browsing, any cache hits or updates, cookies, favicons, history, etc. is saved to a tmpfs (which is in RAM) which is fast and requires no hard drive spinup. KDE is constantly updating it's .kde directory, for example - even moving a window causes an update of the coordinates to be written to a config file! When I shut down, all the updates are copied from RAM (tmpfs) back to the hard drive.
- Mike



