Re: ASU - out of memory?

2008-08-24 Thread The Rasterman
On Fri, 22 Aug 2008 11:13:19 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: Pardon. I don't care for the warm and fuzzy feeling you get by having malloc fail on you. the problem is.. it doesn't say it failed. it says it succeeded. it returns a pointer. program now moves on and should be

Re: ASU - out of memory?

2008-08-24 Thread The Rasterman
On Fri, 22 Aug 2008 12:36:52 -0400 Chris Wright [EMAIL PROTECTED] babbled: On the other hand, let's say your process allocates some memory and doesn't use it for a while. In the meantime, some memory is freed. This doesn't help if malloc() returned null, but it does help if the kernel

Re: ASU - out of memory?

2008-08-24 Thread The Rasterman
On Fri, 22 Aug 2008 16:53:15 +0200 Clemens Kirchgatterer [EMAIL PROTECTED] babbled: Carsten Haitzler (The Rasterman) [EMAIL PROTECTED] wrote: Problem is, your might not have the memory to trawl those .desktop files. thus my original write a root daemon - setsched() to realtime

Re: ASU - out of memory?

2008-08-22 Thread Sander van Grieken
On Friday 22 August 2008 02:59:25 Carsten Haitzler wrote: On Thu, 21 Aug 2008 19:54:26 +0200 Sander van Grieken [EMAIL PROTECTED] babbled: For a phone, the algorithm could be as simple as killing the process that has allocated the most memory. The essential system services and the basic UI

Re: ASU - out of memory?

2008-08-22 Thread The Rasterman
On Fri, 22 Aug 2008 08:36:26 +0200 Sander van Grieken [EMAIL PROTECTED] babbled: On Friday 22 August 2008 02:59:25 Carsten Haitzler wrote: On Thu, 21 Aug 2008 19:54:26 +0200 Sander van Grieken [EMAIL PROTECTED] babbled: For a phone, the algorithm could be as simple as killing the process

Re: ASU - out of memory?

2008-08-22 Thread Tilman Baumann
Am 22.08.2008 um 02:50 schrieb Carsten Haitzler (The Rasterman): A 128Mio space of memory is not that huge, especially if you want to use it for something cool and you will at some points pass this mark and things will die; given the current algorithm it might not be something you want to

Re: ASU - out of memory?

2008-08-22 Thread Tilman Baumann
Pardon. I don't care for the warm and fuzzy feeling you get by having malloc fail on you. It does not give you a bit more system stability! The one app receiving malloc errors is just not app of many. They all have a problem then. Imagine, the browser catches a failed malloc, because some

Re: ASU - out of memory?

2008-08-22 Thread Tilman Baumann
Am 22.08.2008 um 02:50 schrieb Carsten Haitzler (The Rasterman): On Thu, 21 Aug 2008 18:49:33 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: And come on. Software is not perfect. Sometimes we have to live with a dreamteam like (old) firefox and x11. I had times when they had both

Re: ASU - out of memory?

2008-08-22 Thread Clemens Kirchgatterer
Carsten Haitzler (The Rasterman) [EMAIL PROTECTED] wrote: Problem is, your might not have the memory to trawl those .desktop files. thus my original write a root daemon - setsched() to realtime priority and mlock() memory space down! (and of course read every page of memory to make sure

Re: ASU - out of memory?

2008-08-22 Thread Clemens Kirchgatterer
Tilman Baumann [EMAIL PROTECTED] wrote: 44kbyte are not very impressive, but they prove my point never the less. This memory is obviously waste. It stays in swap for ages. Not much saved, but anyhow. It is memory that did not need to be in ram. Tilman, i agree to most points you made in this

Re: ASU - out of memory?

2008-08-22 Thread Tilman Baumann
Clemens Kirchgatterer wrote: Tilman Baumann [EMAIL PROTECTED] wrote: 44kbyte are not very impressive, but they prove my point never the less. This memory is obviously waste. It stays in swap for ages. Not much saved, but anyhow. It is memory that did not need to be in ram. Tilman, i agree

Re: ASU - out of memory?

2008-08-22 Thread Chris Wright
2008/8/22 Tilman Baumann [EMAIL PROTECTED]: Pardon. I don't care for the warm and fuzzy feeling you get by having malloc fail on you. It does not give you a bit more system stability! The one app receiving malloc errors is just not app of many. They all have a problem then. Imagine, the

Re: ASU - out of memory?

2008-08-22 Thread Chris Wright
2008/8/22 Chris Wright [EMAIL PROTECTED]: 2008/8/22 Tilman Baumann [EMAIL PROTECTED]: Pardon. I don't care for the warm and fuzzy feeling you get by having malloc fail on you. It does not give you a bit more system stability! The one app receiving malloc errors is just not app of many. They

Re: ASU - out of memory?

2008-08-22 Thread Tilman Baumann
Clemens Kirchgatterer wrote: Tilman Baumann [EMAIL PROTECTED] wrote: 44kbyte are not very impressive, but they prove my point never the less. This memory is obviously waste. It stays in swap for ages. Not much saved, but anyhow. It is memory that did not need to be in ram. Tilman, i agree

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
look good to me. Should ASU run out of memory? -- Drucken Sie diese Mail bitte nur auf Recyclingpapier aus. Please print this mail only on recycled paper. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
user.err kernel: [275269.02] Killed process 1278 (hald-runner) This doesn't look good to me. Should ASU run out of memory? -- Drucken Sie diese Mail bitte nur auf Recyclingpapier aus. Please print this mail only on recycled paper

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 11:42:52 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: no.. you need to find who is leaking memory and beat them up! :) seriously. 128m is more than enough. it's almost overkill. needing swap (on a device like the freerunner) is a

Re: ASU - out of memory?

2008-08-21 Thread Rui Miguel Silva Seabra
On Thu, Aug 21, 2008 at 12:58:44PM +0200, Tilman Baumann wrote: Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 11:42:52 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: no.. you need to find who is leaking memory and beat them up! :) seriously. 128m is more than enough.

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Rui Miguel Silva Seabra wrote: On Thu, Aug 21, 2008 at 12:58:44PM +0200, Tilman Baumann wrote: Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 11:42:52 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: no.. you need to find who is leaking memory and beat them up! :) seriously.

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
On Thu, 21 Aug 2008 12:58:44 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 11:42:52 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: no.. you need to find who is leaking memory and beat them up! :) seriously. 128m is more

Re: ASU - out of memory?

2008-08-21 Thread Esben Stien
Tilman Baumann [EMAIL PROTECTED] writes: all the linux memory overcommit behaviour more or less depends on the fact that it can allways save it's ass by using swap. (Instead of helplessley crashing) Yes, or killing the application. Not having swap is nonsense;). If you are using swap

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Tilman Baumann wrote: i'd think it would make little sense so make the system that fragile. fix the memory usage issue - don't just get more slow slow slow ram. :) As i said, i had made the experience that it improved the system greatly. Shouldn't we just test it? Perhaps, that is what

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Esben Stien wrote: Tilman Baumann [EMAIL PROTECTED] writes: all the linux memory overcommit behaviour more or less depends on the fact that it can allways save it's ass by using swap. (Instead of helplessley crashing) Yes, or killing the application. That would be great. But was always

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
On Thu, 21 Aug 2008 17:50:26 +0200 Esben Stien [EMAIL PROTECTED] babbled: Tilman Baumann [EMAIL PROTECTED] writes: all the linux memory overcommit behaviour more or less depends on the fact that it can allways save it's ass by using swap. (Instead of helplessley crashing) Yes, or

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
On Thu, 21 Aug 2008 16:09:58 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: Esben Stien wrote: Tilman Baumann [EMAIL PROTECTED] writes: all the linux memory overcommit behaviour more or less depends on the fact that it can allways save it's ass by using swap. (Instead of helplessley

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 17:50:26 +0200 Esben Stien [EMAIL PROTECTED] babbled: Tilman Baumann [EMAIL PROTECTED] writes: all the linux memory overcommit behaviour more or less depends on the fact that it can allways save it's ass by using swap. (Instead of

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Carsten Haitzler (The Rasterman) wrote: I remember there was a proposal for a more intelligent oom killer system on lkml some time ago. No idea if this is still around. (Was afaik some preemtive notification to userspace) Intuitively the answer is clear. Kill the culprit and not just

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Tilman Baumann wrote: Carsten Haitzler (The Rasterman) wrote: I remember there was a proposal for a more intelligent oom killer system on lkml some time ago. No idea if this is still around. (Was afaik some preemtive notification to userspace) Intuitively the answer is clear. Kill the

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
On Thu, 21 Aug 2008 16:44:36 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 17:50:26 +0200 Esben Stien [EMAIL PROTECTED] babbled: Tilman Baumann [EMAIL PROTECTED] writes: all the linux memory overcommit behaviour more or

Re: ASU - out of memory?

2008-08-21 Thread Sander van Grieken
Tilman Baumann [EMAIL PROTECTED] writes: all the linux memory overcommit behaviour more or less depends on the fact that it can allways save it's ass by using swap. (Instead of helplessley crashing) Yes, or killing the application. Not having swap is nonsense;). If you are using swap

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 16:44:36 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 17:50:26 +0200 Esben Stien [EMAIL PROTECTED] babbled: Tilman Baumann [EMAIL PROTECTED] writes: all the linux

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Sander van Grieken wrote: Tilman Baumann [EMAIL PROTECTED] writes: all the linux memory overcommit behaviour more or less depends on the fact that it can allways save it's ass by using swap. (Instead of helplessley crashing) Yes, or killing the application. Not having swap is nonsense;). If

Re: ASU - out of memory?

2008-08-21 Thread Steven Kurylo
And come on. Software is not perfect. Sometimes we have to live with a dreamteam like (old) firefox and x11. I had times when they had both hundreds of megs virtual mem. But everything was fine because it all was just harmlessly been swaped away. I restarted them every weekend to not let it

Re: ASU - out of memory?

2008-08-21 Thread Sander van Grieken
On Thursday 21 August 2008 19:33:24 Steven Kurylo wrote: And come on. Software is not perfect. Sometimes we have to live with a dreamteam like (old) firefox and x11. I had times when they had both hundreds of megs virtual mem. But everything was fine because it all was just harmlessly been

Re: ASU - out of memory?

2008-08-21 Thread Clinton Ebadi
Carsten Haitzler (The Rasterman) [EMAIL PROTECTED] writes: really - we need a userspace oom that is Smarter (it knows what a system daemon is and what a user application is and what is a necessary user desktop process), so it will always kill apps not the phone daemon or the window manager or

Re: ASU - out of memory?

2008-08-21 Thread Esben Stien
Carsten Haitzler (The Rasterman) [EMAIL PROTECTED] writes: and luckily those smart fellas in kernel developer land.. made kernel overcommit.. a tunable parameter! and... cunningly.. on the FR (and as wel on my desktop) it's turned off! :) so... a moot point really. :) I was more thinking of

Re: ASU - out of memory?

2008-08-21 Thread Tilman Baumann
Am 21.08.2008 um 19:33 schrieb Steven Kurylo: And come on. Software is not perfect. Sometimes we have to live with a dreamteam like (old) firefox and x11. I had times when they had both hundreds of megs virtual mem. But everything was fine because it all was just harmlessly been swaped

Re: ASU - out of memory?

2008-08-21 Thread Steven Kurylo
I'm not sure this is true on Freerunner. None of the embedded systems I've used have had swap. Because they where really embedded. Openmoko is more or less a mobile desktop. Its embedded because of the limited resources available to it. Slowing down is clearly better than instant crashing.

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
On Thu, 21 Aug 2008 14:29:45 -0400 Clinton Ebadi [EMAIL PROTECTED] babbled: You've just rediscovered one of the few good design decisions of the l4hurd project. See the bits on memory allocation in [0]. 'Tis a shame that Hurd has pretty much failed (l4hurd and ngHurd got closer and closer to

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
On Fri, 22 Aug 2008 00:07:12 +0200 Esben Stien [EMAIL PROTECTED] babbled: Carsten Haitzler (The Rasterman) [EMAIL PROTECTED] writes: and luckily those smart fellas in kernel developer land.. made kernel overcommit.. a tunable parameter! and... cunningly.. on the FR (and as wel on my

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
On Thu, 21 Aug 2008 18:40:52 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 16:44:36 +0200 Tilman Baumann [EMAIL PROTECTED] babbled: Carsten Haitzler (The Rasterman) wrote: On Thu, 21 Aug 2008 17:50:26 +0200 Esben Stien

Re: ASU - out of memory?

2008-08-21 Thread The Rasterman
On Thu, 21 Aug 2008 19:54:26 +0200 Sander van Grieken [EMAIL PROTECTED] babbled: On Thursday 21 August 2008 19:33:24 Steven Kurylo wrote: And come on. Software is not perfect. Sometimes we have to live with a dreamteam like (old) firefox and x11. I had times when they had both hundreds

ASU - out of memory?

2008-08-20 Thread Torfinn Ingolfsen
Aug 20 22:13:23 om-gta02 user.err kernel: [275269.02] Killed process 1278 (hald-runner) This doesn't look good to me. Should ASU run out of memory? -- Regards, Torfinn Ingolfsen ___ Openmoko community mailing list community@lists.openmoko.org http