From: "vinay" <vinays@burntmail.com>
To: linux-kernel@vger.kernel.org
Subject: Kernels Out Of Memoy(OOM) killer Problem ?
Date: Tue, 09 Aug 2005 07:52:02 +0000 [thread overview]
Message-ID: <W727852995526691123573922@burntmail> (raw)
Hi all.
I have a problem with linux kernel's Out Of Memory (OOM) killer.
I wanted to know, is there any way that we can force OOM killer to send a signal other than SIGKILL to kill a process when ever OOM detects a system memory crunch.
Actually I have an application that is getting killed by OOM killer when the
system runs out of memory. It seems like OOM killer is sending SIGKILL to the
process. As SIGKILL cannot be caught by a process, my application is exiting
without doing proper cleanup.
Is there any way that we can force OOM killer to send a signal other than
SIGKILL ? So that my application can call the signal handler and do proper cleanup before exiting.
I searched through Google and came acorss some solution -
Like setting the capability of a process to CAP_SYS_RAWIO will force the OOM killer to send SIGTERM. I tried to set the capability of my application to CAP_SYS_RAWIO using capset() system call, but still then OOM killer is sending SIGKILL.
Could anybody please help me out with this problem ?
Any pointers are welcomed.
Thanks in advance.
Vinay.
next reply other threads:[~2005-08-09 7:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-09 7:52 vinay [this message]
2005-08-09 8:06 ` Kernels Out Of Memoy(OOM) killer Problem ? Xavier Roche
-- strict thread matches above, loose matches on Subject: below --
2005-08-09 9:23 vinay
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=W727852995526691123573922@burntmail \
--to=vinays@burntmail.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox