Re: On the issue of low memory situations

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


     Justin T. Fries
     Raleigh, North Carolina

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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