Kernel tuning

On systems facing heavy write load, tuning /etc/sysctl.conf in the following fashion is worth doing:

vm.dirty_background_ratio = 0

vm.dirty_ratio = 0

vm.swappiness=0

On Linux 2.6 and later, it is possible to modify the kernel's behavior so that it will not "overcommit" memory. Although this setting will not prevent the OOM killer from being invoked altogether, it will lower the risk significantly and will therefore lead to more robust system behavior. This is done by selecting strict overcommit mode via sysctl.cof:

vm.overcommit_memory=2