Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 2 down vote accepted

A process's oom_score_adj is inherited from its parent process. Adjust it from the executor daemon (if it it's started by an init script, that would be a great place to do it) and all of the jobs it starts will have the adjusted value.

A description of what oom_score_adj does can be found on LWN.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.