Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762572AbXJRUky (ORCPT ); Thu, 18 Oct 2007 16:40:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756906AbXJRUks (ORCPT ); Thu, 18 Oct 2007 16:40:48 -0400 Received: from smtpq1.groni1.gr.home.nl ([213.51.130.200]:47721 "EHLO smtpq1.groni1.gr.home.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756676AbXJRUkr (ORCPT ); Thu, 18 Oct 2007 16:40:47 -0400 Message-ID: <4717C43D.6030204@keyaccess.nl> Date: Thu, 18 Oct 2007 22:38:21 +0200 From: Rene Herman User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Marcelo Tosatti CC: linux-kernel@vger.kernel.org, riel@redhat.com, drepper@redhat.com Subject: Re: OOM notifications References: <20071018202504.GA2854@dmt> In-Reply-To: <20071018202504.GA2854@dmt> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-AtHome-MailScanner-Information: Neem contact op met support@home.nl voor meer informatie X-AtHome-MailScanner: Found to be clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1266 Lines: 34 On 10/18/2007 10:25 PM, Marcelo Tosatti wrote: > AIX contains the SIGDANGER signal to notify applications to free up some > unused cached memory: > > http://www.ussg.iu.edu/hypermail/linux/kernel/0007.0/0901.html > > There have been a few discussions on implementing such an idea on Linux, > but nothing concrete has been achieved. > > On the kernel side Rik suggested two notification points: "about to > swap" (for desktop scenarios) and "about to OOM" (for embedded-like > scenarios). > > With that assumption in mind it would be necessary to either have two > special devices for notification, or somehow indicate both events > through the same file descriptor. > > Comments are more than welcome. Given the desktop/embedded distinction you made, do you need both scenarios active at the same time? If not, it seems something like a echo -n >/proc/sys/vm/danger could do with just one sigdanger notification point? (with suitably defined as or in terms of the used threshold value). Rene. - 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/