Skip on down to the menu.
Adjust disk cache parameters.
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.
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