Using linux oom_score_adj to aim the oom daemon at the right target

view story

http://serverfault.com – On Ubuntu 11.04, /proc/[pid] contains oom_score_adj, but man proc describes the old oom_adj. What I need to arrange is that processes started by 'pbs' or 'gridengine' are killed before anything else gets killed. Can anyone propose an easier scheme than a script that acquires the pid of the executor daemon and sticks a suitable value into the /proc/[pid] value. (HowTos)