(no subject)

From: vinay (vinays_at_burntmail.com)
Date: 08/09/05

  • Next message: Ingo Molnar: "Re: PowerOP 2/3: Intel Centrino support"
    To: linux-kernel@vger.kernel.org
    Date:	Tue, 09 Aug 2005 07:54:09 +0000
    
    

    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.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ingo Molnar: "Re: PowerOP 2/3: Intel Centrino support"

    Relevant Pages

    • Re: [PATCH 1/2 (repost)] mm: serialize OOM kill operations
      ... __alloc_pagesthis will cause the task to retry the memory allocation ... by the OOM killer's chosen victim. ... easily with the modified 2.6.9-based redhat kernel that I've been mostly ... I've been tinkering with the OOM killer lately because we're moving ...
      (Linux-Kernel)
    • Re: OT (slightly) swap limits
      ... Could this be the reason that Firefox sometimes ... If a system doesn't have any swap space enabled, or just too little, ... memory deficient condition. ... If the OOM killer is invoked then the syslog should have some mention ...
      (Debian-User)
    • Re: [PATCH] Remove OOM killer from try_to_free_pages / all_unreclaimable braindamage
      ... > overview of all the memory and can see when a particular process is ... It could of course be that this scenario is overly specific. ... The OOM killer could first make its pick among the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Kernels Out Of Memoy(OOM) killer Problem ?
      ... 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. ...
      (Linux-Kernel)
    • Re: Making sense of OOM killer messages?
      ... The OOM killer tries to do the most sensible thing by killing ... >less active processes that still yield a fair amount of released memory. ... Normally the runaway process will be killed after only a ... if there are monitoring processes looking to ...
      (Fedora)