Re: [discussion] Swap overcommitment recovery

Horst von Brand (vonbrand@inf.utfsm.cl)
Tue, 18 Aug 1998 16:49:47 -0400


Rik van Riel <H.H.vanRiel@phys.uu.nl> said:
> On Tue, 18 Aug 1998, Itai Nahshon wrote:

[...]

> > Really, programs which use the standard malloc calls cannot
> > do much on SIGDANGER but to be nice and exit, or bee bad and
> > keep all their resources.

> Sending SIGDANGER is a good idea. Not killing programs with
> a SIGDANGER handler is, IMNSHO, a bad idea. We could give programs
> which clean up 'on their own' a large bonus though (2x or 4x
> less 'kill points').

OK, so a program does:

for(;;) {
malloc(3Mb);
free(2Mb);
}

to save itself from being killed...

-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

- 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.altern.org/andrebalsa/doc/lkml-faq.html