Re: Memory hogs

Werner Almesberger (almesber@lrc.di.epfl.ch)
Sat, 17 Jul 1999 14:55:49 +0200


Hermann Schichl wrote:
> I think it would be great if OOM handling would be
> configurable (either kernel compile time or /proc interface)

Better yet, have a device or proc file that becomes readable in this case.
Then you can have a user-space demon to implement whatever policy you like.
The demon can mlock its pages, so it should be reasonably safe from causing
an OOM itself. Writing to that device/proc file could set the threshold for
when OOM recovery is necessary.

Reasonable policies may include enabling overflow swap space, SIGSTOP'ing
all processes above a certain size/growth rate, paging the administrator,
and opening a shell on the system console.

- Werner

-- 
  _________________________________________________________________________
 / Werner Almesberger, ICA, EPFL, CH       werner.almesberger@ica.epfl.ch /
/_IN_R_131__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

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