Re: Out of memory management in embedded systems

2007-10-01 Thread Robin Getz
On Mon 1 Oct 2007 12:27, [EMAIL PROTECTED] pondered: > overcommit by default is optimistic that if the program requesting the > memory actually tries to use it there will be enough (both the fork-exec > situation and the copy-on-write memory of real forks mean that the > system ends up useing much

Re: Out of memory management in embedded systems

2007-10-01 Thread david
On Mon, 1 Oct 2007, Bernd Eckenfels wrote: In article <[EMAIL PROTECTED]> you wrote: Make kernel configuration option? (e.g. disable "over commit" mis-feature :-) # egrep . /proc/sys/vm/overcommit_* /proc/sys/vm/overcommit_memory:0 /proc/sys/vm/overcommit_ratio:50 keep in mind that disablin

Re: Out of memory management in embedded systems

2007-10-01 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > Make kernel configuration option? (e.g. disable "over commit" > mis-feature :-) # egrep . /proc/sys/vm/overcommit_* /proc/sys/vm/overcommit_memory:0 /proc/sys/vm/overcommit_ratio:50 Gruss Bernd - To unsubscribe from this list: send the line "unsubscribe

Re: Out of memory management in embedded systems

2007-10-01 Thread Markku Savela
How about just simple solution? Make it possible that "malloc" works as it was originally intended: return NULL, if memory not available, non-NULL only if allocation truly succeeded and is guaranteed.. Make kernel configuration option? (e.g. disable "over commit" mis-feature :-) -- Markku Savela

Re: Out of memory management in embedded systems

2007-09-29 Thread Abhishek Sagar
On 9/29/07, Daniel Spång <[EMAIL PROTECTED]> wrote: > > An embedded system is NOT an ordinary system that happens to > > boot from flash. An embedded system requires intelligent design. > > We might be talking about slightly different systems. I agree that > systems that are really embedded, in the

Re: Out of memory management in embedded systems

2007-09-29 Thread Bodo Eggert
linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: >> On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >>> On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote:

Re: Out of memory management in embedded systems

2007-09-28 Thread Daniel Phillips
On Friday 28 September 2007 05:55, Daniel Spång wrote: > Applications with dynamic input and dynamic memory usage have some > issues with the current overcommitting kernel. A high memory usage > situation eventually results in that a process is killed by the OOM > killer. This is especially evident

Re: Out of memory management in embedded systems

2007-09-28 Thread Nicholas Miell
On Fri, 2007-09-28 at 11:15 -0400, Rik van Riel wrote: > On Fri, 28 Sep 2007 16:36:34 +0200 > Eric Dumazet <[EMAIL PROTECTED]> wrote: > > > On Fri, 28 Sep 2007 10:17:11 -0400 > > Rik van Riel <[EMAIL PROTECTED]> wrote: > > > > > On Fri, 28 Sep 2007 10:04:23 -0400 > > > "linux-os \(Dick Johnson\)"

Re: Out of memory management in embedded systems

2007-09-28 Thread Daniel Spång
On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > > On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > > > On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > >> > >> On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > >> > >>> On 9/28/07, linux-os (Dick Johnson

Re: Out of memory management in embedded systems

2007-09-28 Thread linux-os \(Dick Johnson\)
On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >> >> On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: >> >>> On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: But an embedded system contains all th

Re: Out of memory management in embedded systems

2007-09-28 Thread Rik van Riel
On Fri, 28 Sep 2007 16:36:34 +0200 Eric Dumazet <[EMAIL PROTECTED]> wrote: > On Fri, 28 Sep 2007 10:17:11 -0400 > Rik van Riel <[EMAIL PROTECTED]> wrote: > > > On Fri, 28 Sep 2007 10:04:23 -0400 > > "linux-os \(Dick Johnson\)" <[EMAIL PROTECTED]> wrote: > > > On Fri, 28 Sep 2007, [iso-8859-1] Dan

Re: Out of memory management in embedded systems

2007-09-28 Thread Eric Dumazet
On Fri, 28 Sep 2007 10:17:11 -0400 Rik van Riel <[EMAIL PROTECTED]> wrote: > On Fri, 28 Sep 2007 10:04:23 -0400 > "linux-os \(Dick Johnson\)" <[EMAIL PROTECTED]> wrote: > > On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > > > > > On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrot

Re: Out of memory management in embedded systems

2007-09-28 Thread Rik van Riel
On Fri, 28 Sep 2007 10:04:23 -0400 "linux-os \(Dick Johnson\)" <[EMAIL PROTECTED]> wrote: > On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > > > On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > >> > >> On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > >>> Some kind of

Re: Out of memory management in embedded systems

2007-09-28 Thread Daniel Spång
On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > > On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > > > On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > >> > >> But an embedded system contains all the software that will > >> ever be executed on that system! If

Re: Out of memory management in embedded systems

2007-09-28 Thread linux-os \(Dick Johnson\)
On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >> >> On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: >> >>> Applications with dynamic input and dynamic memory usage have some >>> issues with the current overcommitting k

Re: Out of memory management in embedded systems

2007-09-28 Thread Daniel Spång
On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: > > On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > > > Applications with dynamic input and dynamic memory usage have some > > issues with the current overcommitting kernel. A high memory usage > > situation eventually results i

Re: Out of memory management in embedded systems

2007-09-28 Thread linux-os \(Dick Johnson\)
On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > Applications with dynamic input and dynamic memory usage have some > issues with the current overcommitting kernel. A high memory usage > situation eventually results in that a process is killed by the OOM > killer. This is especially eviden

Out of memory management in embedded systems

2007-09-28 Thread Daniel Spång
Applications with dynamic input and dynamic memory usage have some issues with the current overcommitting kernel. A high memory usage situation eventually results in that a process is killed by the OOM killer. This is especially evident in swapless embedded systems with limited memory and no swap a