lkml.org 
[lkml]   [2000]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: On the issue of low memory situations


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/

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