The only tweak I've made is to increase vm.swappiness to 60 in /etc/sysctl.d/vm.conf file.
Ok, in short... you can play with these: /sys/module/lowmemorykiller/parameters/adj (0,58,117,529,1000) /sys/module/lowmemorykiller/parameters/minfree (4096,6144,8192,12288,20000) /proc/sys/vm/extra_free_kbytes (16384) First sets oom_score-values for group of apps running inside of those values, second sets the values how much memory should be always available before killing apps in that group starts. Third sets the value of how much memory should always kept free. Example.. apps having oom_score between 0 and 57 will not be killed before the memory has gone below 40964 = 16384kB. Apps having oom_score 1000 will be killed if there is less than 200004 = 80000kB available memory.