login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
28
Re: Out of memory management in embedded systems
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nicholas Miell
Subject:
Re: Out of memory management in embedded systems
Date: Friday, September 28, 2007 - 4:00 pm
On Fri, 2007-09-28 at 11:15 -0400, Rik van Riel wrote:
quoted text
> On Fri, 28 Sep 2007 16:36:34 +0200 > Eric Dumazet <dada1@cosmosbay.com> wrote: > > > On Fri, 28 Sep 2007 10:17:11 -0400 > > Rik van Riel <riel@redhat.com> wrote: > > > > > On Fri, 28 Sep 2007 10:04:23 -0400 > > > "linux-os \(Dick Johnson\)" <linux-os@analogic.com> wrote: > > > > On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > > > > > > > > > On 9/28/07, linux-os (Dick Johnson) <linux-os@analogic.com> wrote: > > > > >> > > > > >> On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > > > > > > > >>> Some kind of notification to the application that the available memory > > > > >>> is scarce and let the application free up some memory (e.g., by > > > > >>> flushing caches), could be used to improve the situation > > > > > > > Any networked appliance can (will) throw data away if there are > > > > no resources available. > > > > > > That is exactly what Daniel proposed in his first email. > > > > > > I think his idea makes sense. > > > > IBM AIX uses SIGDANGER, that kernel can raise in OOM conditions to warn > > processes that are willing to handle this signal (default action for the > > SIGDANGER signal is to ignore the signal) > > 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.
SIGDANGER could stick useful information in siginfo_t's si_code field and be delivered via a signalfd. -- Nicholas Miell <nmiell@comcast.net> -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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, 5:55 am)
Re: Out of memory management in embedded systems
, linux-os (Dick Johnson)
, (Fri Sep 28, 6:09 am)
Re: Out of memory management in embedded systems
, Daniel Spång
, (Fri Sep 28, 6:30 am)
Re: Out of memory management in embedded systems
, linux-os (Dick Johnson)
, (Fri Sep 28, 7:04 am)
Re: Out of memory management in embedded systems
, Daniel Spång
, (Fri Sep 28, 7:14 am)
Re: Out of memory management in embedded systems
, Rik van Riel
, (Fri Sep 28, 7:17 am)
Re: Out of memory management in embedded systems
, Eric Dumazet
, (Fri Sep 28, 7:36 am)
Re: Out of memory management in embedded systems
, Rik van Riel
, (Fri Sep 28, 8:15 am)
Re: Out of memory management in embedded systems
, linux-os (Dick Johnson)
, (Fri Sep 28, 8:16 am)
Re: Out of memory management in embedded systems
, Daniel Spång
, (Fri Sep 28, 1:58 pm)
Re: Out of memory management in embedded systems
, Nicholas Miell
, (Fri Sep 28, 4:00 pm)
Re: Out of memory management in embedded systems
, Daniel Phillips
, (Fri Sep 28, 6:59 pm)
Re: Out of memory management in embedded systems
, Abhishek Sagar
, (Sat Sep 29, 12:48 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate