Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762114AbZAOAzv (ORCPT ); Wed, 14 Jan 2009 19:55:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759817AbZAOAzP (ORCPT ); Wed, 14 Jan 2009 19:55:15 -0500 Received: from smtp-out.google.com ([216.239.33.17]:17978 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756773AbZAOAzK (ORCPT ); Wed, 14 Jan 2009 19:55:10 -0500 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id: references:user-agent:mime-version:content-type:x-gmailtapped-by:x-gmailtapped; b=yOM/MH8uuzQxK9NWL3DGEZKYqGfI5agkzdWEQwcSIEmFDjuO6r20VCt6MVNl+DxB0 OiyfQ+lAYZ5JSvj8LZoww== Date: Wed, 14 Jan 2009 16:54:09 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Evgeniy Polyakov cc: Bodo Eggert <7eggert@gmx.de>, Alan Cox , Dave Jones , linux-kernel@vger.kernel.org, Andrew Morton , Linus Torvalds Subject: Re: [why oom_adj does not work] Re: Linux killed Kenny, bastard! In-Reply-To: <20090114192216.GA18123@ioremap.net> Message-ID: References: <20090114192216.GA18123@ioremap.net> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-GMailtapped-By: 172.24.198.101 X-GMailtapped: rientjes Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 804 Lines: 16 On Wed, 14 Jan 2009, Evgeniy Polyakov wrote: > This does not work if processes are short-living and are spawned by the > parent on demand. If processes have different priority in regards to oom > condition, this problem can not be solved with existing interfaces > without changing the application. So effectively there is no solution. > Wrong, you can change how the application is forked. Either immediately adjust /proc/$!/oom_adj or use the adjustment inheritance property and change /proc/$$/oom_adj to the desired value prior to forking. Thanks. -- 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/