lkml.org 
[lkml]   [1999]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] 2.2.10 buffer patch (OOM)
On Thu, Jul 08, 1999 at 08:03:18PM +0200, Andrea Arcangeli wrote:
> o kupdate replaces completly update. It's a separate and alone
> kernel daemon. It has no way to be killed and it won't be swapped
> out. We need kupdate mainly if the machine goes OOM.

I never realized this could happen. Occasionally some of our machines runs
out of memory because of bad user programs. But, instead of moving every
program to the kernel why not creating a kind of "minfree" parameter
for memory+swap instead? This has already been done for file systems
and IMO it makes sense to do this for memory+swap as well. Whenever
an essential daemon runs as non-root then that might be handled by doing
something like

echo 0 >/proc/$!/cap/minfreemem

in the corresponding startup script, should it be necessary. Not
all daemons are essential for proper operation of the system.
I guess one must be root to change the capabilities in this case.

--
Frank

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

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.064 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site