by ajdecon · 13y ago · 0 comments
echo -17 > /proc/$PID/oom_adj
where $PID is the process ID you want to protect.
oom_adj can be tuned with other values to make a process more or less likely to be killed.
http://www.oracle.com/technetwork/articles/servers-storage-d...
https://www.kernel.org/doc/Documentation/filesystems/proc.tx...