Re: [RFC] OOM aware applications

Andreas Dilger (adilger@turbolabs.com)
Tue, 25 Sep 2001 10:46:22 -0600


On Sep 25, 2001 10:49 +0530, BALBIR SINGH wrote:
> Warning: I am not aware of what was discussed earlier about these issues
> or if they were discusses at all.

They have been discussed many times. Please search for SIGDANGER in the
linux-kernel mailing list archive.

> 1. I was wondering that instead of killing the application using
> oom_kill_task() directly, should the OOM issue some kind of a
> warning by sending a signal (some signal with si_code set to a
> value indicating that the application is causing memory to run
> out). Then, wait for a while and then see if the application is
> still misbehaving and if so kill it.

This is exactly what SIGDANGER is.

Cheers, Andreas

--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

- 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/