Re: [2.4.18] Security: Process-Killer if machine get's out of memory

Chris Swiedler (
Sun, 24 Mar 2002 10:58:28 -0500

andreas wrote:
> Hello all,
> I've got a basic question:
> Would it be possible to kill only the process which consumes the most
> memory in the last delta t?
> Or does somebody have a better idea?

I had a patch for 2.4.something which would allow you to configure which
processes were killed first by the OOM killer. You basically gave
processes an oom_nice value, either by pid or process name, and that was
taken into account by the oom killer. You could also protect a process
completely from the oom killer, which would be good to do for your sshd
process in the example you give.

Look at


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at