login
Header Space

 
 

Re: Out of memory management in embedded systems

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric Dumazet <dada1@...>
Cc: linux-os (Dick Johnson) <linux-os@...>, Daniel <daniel.spang@...>, <linux-kernel@...>
Date: Friday, September 28, 2007 - 11:15 am

On Fri, 28 Sep 2007 16:36:34 +0200
Eric Dumazet <dada1@cosmosbay.com> wrote:


I suspect that SIGDANGER is not the right approach, because glibc
memory arenas cannot be manipulated from inside a signal handler.

Also, "nearly OOM" is not the only such signal we would want to
send to userspace programs. It would also be useful to inform
userspace programs when we are about to start swapping something
out, so userspace can discard cached data instead of having to
wait for disk IO in the future.

A unix signal cannot encapsulate two different messages, while
something like a "/dev/lowmem" device can simply be added into
the program's main poll() loop and give many different messages.

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Out of memory management in embedded systems, Daniel Spång, (Fri Sep 28, 8:55 am)
Re: Out of memory management in embedded systems, Daniel Phillips, (Fri Sep 28, 9:59 pm)
Re: Out of memory management in embedded systems, linux-os (Dick Johnson), (Fri Sep 28, 9:09 am)
Re: Out of memory management in embedded systems, Daniel Spång, (Fri Sep 28, 9:30 am)
Re: Out of memory management in embedded systems, linux-os (Dick Johnson), (Fri Sep 28, 10:04 am)
Re: Out of memory management in embedded systems, Rik van Riel, (Fri Sep 28, 10:17 am)
Re: Out of memory management in embedded systems, Eric Dumazet, (Fri Sep 28, 10:36 am)
Re: Out of memory management in embedded systems, Rik van Riel, (Fri Sep 28, 11:15 am)
Re: Out of memory management in embedded systems, Nicholas Miell, (Fri Sep 28, 7:00 pm)
Re: Out of memory management in embedded systems, Daniel Spång, (Fri Sep 28, 10:14 am)
Re: Out of memory management in embedded systems, linux-os (Dick Johnson), (Fri Sep 28, 11:16 am)
Re: Out of memory management in embedded systems, Daniel Spång, (Fri Sep 28, 4:58 pm)
Re: Out of memory management in embedded systems, Abhishek Sagar, (Sat Sep 29, 3:48 pm)
speck-geostationary