lkml.org 
[lkml]   [1998]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [discussion] Swap overcommitment recovery
    Date
    From
    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

    \
     
     \ /
      Last update: 2005-03-22 13:44    [W:0.020 / U:0.516 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site