Skip on down to the menu.
Adjust disk cache parameters.
Background
From Tales from responsivenessland: why Linux feels slow, and how to fix that
This adjustment tells Linux to prefer inode/dentry cache to other caches. The parameter that is adjusted is /proc/sys/vm/vfs_cache_pressure.
View current vfs_cache_pressure setting
To view the current vfs_cache_pressure factor run this as root.
cat /proc/sys/vm/vfs_cache_pressure
Change vfs_cache_pressure setting
echo 50 > /proc/sys/vm/vfs_cache_pressure
Change the 50 above to whatever you want between 1 and 100 (100 is the default).
Making the change permanent
This is made permanent by adding "vm.vfs_cache_pressure=50" to "/etc/sysctl.conf"
2007-10-04, T. Sneddon