Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756044Ab0KNAFd (ORCPT ); Sat, 13 Nov 2010 19:05:33 -0500 Received: from mail-in-02.arcor-online.net ([151.189.21.42]:44740 "EHLO mail-in-02.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754395Ab0KNAFb (ORCPT ); Sat, 13 Nov 2010 19:05:31 -0500 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-13.arcor-online.net C2407212EE0 Message-Id: From: Bodo Eggert <7eggert@web.de> Subject: Re: [PATCH] oom: allow a non-CAP_SYS_RESOURCE proces to oom_score_adj down To: Mandeep Singh Baines , David Rientjes , Andrew Morton , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Rik van Riel , Ying Han , linux-kernel@vger.kernel.org, gspencer@chromium.org, piman@chromium.org, wad@chromium.org, olofj@chromium.org, Bodo Eggert <7eggert@web.de> Reply-To: 7eggert@gmx.de Date: Sun, 14 Nov 2010 01:05:28 +0100 References: User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 815 Lines: 16 Mandeep Singh Baines wrote: > We'd like to be able to oom_score_adj a process up/down as its > enters/leaves the foreground. Currently, it is not possible to oom_adj > down without CAP_SYS_RESOURCE. This patch allows a task to decrease > its oom_score_adj back to the value that a CAP_SYS_RESOURCE thread set > it or its inherited value at fork. Assuming the thread that has forked > it has oom_score_adj of 0, each tab process > could decrease it back from 0 upon > activation unless a CAP_SYS_RESOURCE thread elevated it to something > higher. -- 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/