Re: On the issue of low memory situations

From: justinf@us.ibm.com
Date: Sat Mar 18 2000 - 14:39:54 EST


On Fri, 17 Mar 2000, Linda Walsh wrote:

> I haven't read through this whole thread, so this may have been
> suggested, but why not have a new signal "SIGNMEM". Can't be caught but
> can be ignored. Default is to take the signal and terminate the program
> that faulted. If ignored, put process to sleep until the memory request
> can be satisfied. Then something like 'X' or apache could ignore, while
> 'gcc' would just die.

     Actually, this reminds me very much of SIGDANGER on AIX. AIX
broadcasts SIGDANGER when paging space reaches its warning threshold,
allowing processes to handle it as they wish. If nobody frees any memory,
and paging space reaches the kill threshold, AIX starts to send SIGKILL.
There is even a function, psdanger(), which allows programs to query
available swap and the relative proximity to either of the paging space
thresholds.

     Cheers,

     Justin T. Fries
     Raleigh, North Carolina

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



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:25 EST