linux保护某进程不被OOMK:

crontab -e

*/1 * * * * pgrep -f "usr/bin/git" | while read PID;do echo -17 > /proc/$PID/oom_adj;done