* [Xenomai-help] VM killer
@ 2006-11-17 18:15 Daniel Schnell
2006-11-17 18:41 ` Gilles Chanteperdrix
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Daniel Schnell @ 2006-11-17 18:15 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 678 bytes --]
Hi,
I know this is somewhat not related to Xenomai. But as I encountered
this while actually testing the memory allocation with Xenomai, maybe
there is some common sense here, as there are many people having to do
with embedded systems, where something like that matters.
Everytime the system comes to its limits and some process uses up all
the memory the vm systems kills (more or less randomly) one or more
processes. Even system processes. I would really like to get rid of this
behaviour, but having disabled CONFIG_OOM_KILLER inside the linux kernel
doesn't help.
I use ELDK4.0 with 2.4.25 Denx Kernel.
Any hints ?
Best regards,
Daniel.
[-- Attachment #2: Type: text/html, Size: 2118 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] VM killer
2006-11-17 18:15 [Xenomai-help] VM killer Daniel Schnell
@ 2006-11-17 18:41 ` Gilles Chanteperdrix
2006-11-17 18:55 ` Jan Kiszka
2006-11-17 18:52 ` Philippe Gerum
2006-11-17 20:09 ` Wolfgang Grandegger
2 siblings, 1 reply; 8+ messages in thread
From: Gilles Chanteperdrix @ 2006-11-17 18:41 UTC (permalink / raw)
To: Daniel Schnell; +Cc: xenomai
Daniel Schnell wrote:
> Hi,
>
> I know this is somewhat not related to Xenomai. But as I encountered
> this while actually testing the memory allocation with Xenomai, maybe
> there is some common sense here, as there are many people having to do
> with embedded systems, where something like that matters.
>
> Everytime the system comes to its limits and some process uses up all
> the memory the vm systems kills (more or less randomly) one or more
> processes. Even system processes. I would really like to get rid of this
> behaviour, but having disabled CONFIG_OOM_KILLER inside the linux kernel
> doesn't help.
>
> I use ELDK4.0 with 2.4.25 Denx Kernel.
>
> Any hints ?
There is no way the system can run properly if there is not enough RAM.
Add some RAM to your board, or decrease the memory used by applications.
--
Gilles Chanteperdrix
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] VM killer
2006-11-17 18:15 [Xenomai-help] VM killer Daniel Schnell
2006-11-17 18:41 ` Gilles Chanteperdrix
@ 2006-11-17 18:52 ` Philippe Gerum
2006-11-17 20:09 ` Wolfgang Grandegger
2 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2006-11-17 18:52 UTC (permalink / raw)
To: Daniel Schnell; +Cc: xenomai
On Fri, 2006-11-17 at 18:15 +0000, Daniel Schnell wrote:
> Hi,
>
> I know this is somewhat not related to Xenomai. But as I encountered
> this while actually testing the memory allocation with Xenomai, maybe
> there is some common sense here, as there are many people having to do
> with embedded systems, where something like that matters.
>
> Everytime the system comes to its limits and some process uses up all
> the memory the vm systems kills (more or less randomly) one or more
> processes. Even system processes. I would really like to get rid of
> this behaviour, but having disabled CONFIG_OOM_KILLER inside the linux
> kernel doesn't help.
What does the following say on your board?
cat /proc/sys/vm/overcommit_memory
>
> I use ELDK4.0 with 2.4.25 Denx Kernel.
>
> Any hints ?
>
>
> Best regards,
>
> Daniel.
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] VM killer
2006-11-17 18:41 ` Gilles Chanteperdrix
@ 2006-11-17 18:55 ` Jan Kiszka
2006-11-17 19:35 ` Daniel Schnell
0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2006-11-17 18:55 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]
Gilles Chanteperdrix wrote:
> Daniel Schnell wrote:
>> Hi,
>>
>> I know this is somewhat not related to Xenomai. But as I encountered
>> this while actually testing the memory allocation with Xenomai, maybe
>> there is some common sense here, as there are many people having to do
>> with embedded systems, where something like that matters.
>>
>> Everytime the system comes to its limits and some process uses up all
>> the memory the vm systems kills (more or less randomly) one or more
>> processes. Even system processes. I would really like to get rid of this
>> behaviour, but having disabled CONFIG_OOM_KILLER inside the linux kernel
>> doesn't help.
>>
>> I use ELDK4.0 with 2.4.25 Denx Kernel.
>>
>> Any hints ?
>
> There is no way the system can run properly if there is not enough RAM.
> Add some RAM to your board, or decrease the memory used by applications.
Having a means to avoid that your critical process gets killed
accidentally because some uncritical one decided to suck up all system
resources is, IMO, a very legitimate use case. On 2.6, where there is no
CONFIG_OOM_KILLER, you can play with /proc/<pid>/oom_adj and make your
process "unattractive" to the OOM killer (set to -17). On older kernels
you also had to include any parent processes in this protection. I think
this was fixed meanwhile.
But I wonder why there should be no effect of CONFIG_OOM_KILLER on 2.4.
Forgot to replay the updated kernel binaries?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Xenomai-help] VM killer
2006-11-17 18:55 ` Jan Kiszka
@ 2006-11-17 19:35 ` Daniel Schnell
0 siblings, 0 replies; 8+ messages in thread
From: Daniel Schnell @ 2006-11-17 19:35 UTC (permalink / raw)
To: xenomai
jan.kiszka@domain.hid wrote:
> Having a means to avoid that your critical process gets killed
> accidentally because some uncritical one decided to suck up all
> system resources is, IMO, a very legitimate use case. On 2.6, where
> there is no CONFIG_OOM_KILLER, you can play with /proc/<pid>/oom_adj
> and make your process "unattractive" to the OOM killer (set to -17).
> On older kernels you also had to include any parent processes in this
> protection. I think this was fixed meanwhile.
>
> But I wonder why there should be no effect of CONFIG_OOM_KILLER on
> 2.4.
> Forgot to replay the updated kernel binaries?
Well double checked: no. At least if my .config in the linux kernel
directory is not magically updated after compiling the kernel. BTW: I
could not find that option in the make menuconfig configuration. Maybe
it is hidden somewhere in a submenu, but at least in the .config file it
is definetly disabled.
Best regards,
Daniel Schnell.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] VM killer
2006-11-17 18:15 [Xenomai-help] VM killer Daniel Schnell
2006-11-17 18:41 ` Gilles Chanteperdrix
2006-11-17 18:52 ` Philippe Gerum
@ 2006-11-17 20:09 ` Wolfgang Grandegger
2006-11-17 20:12 ` Daniel Schnell
2006-11-17 23:30 ` Wolfgang Denk
2 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Grandegger @ 2006-11-17 20:09 UTC (permalink / raw)
To: Daniel Schnell; +Cc: xenomai
Daniel Schnell wrote:
> Hi,
>
> I know this is somewhat not related to Xenomai. But as I encountered
> this while actually testing the memory allocation with Xenomai, maybe
> there is some common sense here, as there are many people having to do
> with embedded systems, where something like that matters.
>
> Everytime the system comes to its limits and some process uses up all
> the memory the vm systems kills (more or less randomly) one or more
> processes. Even system processes. I would really like to get rid of this
> behaviour, but having disabled CONFIG_OOM_KILLER inside the linux kernel
> doesn't help.
>
> I use ELDK4.0 with 2.4.25 Denx Kernel.
For 2.4 kernels you should use ELDK 3.1.1. Wolfgang, can you confirm that?
Wolfgang.
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Xenomai-help] VM killer
2006-11-17 20:09 ` Wolfgang Grandegger
@ 2006-11-17 20:12 ` Daniel Schnell
2006-11-17 23:30 ` Wolfgang Denk
1 sibling, 0 replies; 8+ messages in thread
From: Daniel Schnell @ 2006-11-17 20:12 UTC (permalink / raw)
To: xenomai, Wolfgang Denk
Wolfgang Grandegger wrote:
> For 2.4 kernels you should use ELDK 3.1.1. Wolfgang, can you confirm
> that?
I have heard that, but actually did not have any hint that something
wouldn't work. Also I like the gcc-4 provided here. I have both setups
running and can not make up a lot of differences.
But maybe there is a clear reason not to use, it. Would be interesting
to hear.
Best regards,
Daniel Schnell.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] VM killer
2006-11-17 20:09 ` Wolfgang Grandegger
2006-11-17 20:12 ` Daniel Schnell
@ 2006-11-17 23:30 ` Wolfgang Denk
1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2006-11-17 23:30 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: xenomai
In message <455E16DD.4090804@domain.hid> you wrote:
>
> > I use ELDK4.0 with 2.4.25 Denx Kernel.
>
> For 2.4 kernels you should use ELDK 3.1.1. Wolfgang, can you confirm that?
If you wan to be on the safe side: indeed.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@domain.hid
Life would be so much easier if everyone read the manual.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-11-17 23:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-17 18:15 [Xenomai-help] VM killer Daniel Schnell
2006-11-17 18:41 ` Gilles Chanteperdrix
2006-11-17 18:55 ` Jan Kiszka
2006-11-17 19:35 ` Daniel Schnell
2006-11-17 18:52 ` Philippe Gerum
2006-11-17 20:09 ` Wolfgang Grandegger
2006-11-17 20:12 ` Daniel Schnell
2006-11-17 23:30 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.