From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] VM killer
Date: Fri, 17 Nov 2006 19:55:08 +0100 [thread overview]
Message-ID: <455E058C.1010404@domain.hid> (raw)
In-Reply-To: <455E025B.7060708@domain.hid>
[-- 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 --]
next prev parent reply other threads:[~2006-11-17 18:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=455E058C.1010404@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.