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

Rik van Riel (riel@conectiva.com.br)
Sun, 24 Mar 2002 10:30:32 -0300 (BRT)


On Sun, 24 Mar 2002, andreas wrote:

> 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?

> rsync is an actual example for the problem, I wrote. This could be any
> other process, eating up the memory. Then, the kernel kills wildly some
> processes until the right process is killed - and the machine is
> probably unavailable meanwhile.

The problem is that 'rsync' might as well have been 'scientific
calculation that ran for 3 days'.

One 'solution' could be to let the OOM killer ignore CPU usage
of less than say 1 hour, but it'll always be heuristics that
can go wrong in some scenario.

regards,

Rik

-- 
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/