Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756622Ab0BJVeo (ORCPT ); Wed, 10 Feb 2010 16:34:44 -0500 Received: from cantor2.suse.de ([195.135.220.15]:38506 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756550Ab0BJVek (ORCPT ); Wed, 10 Feb 2010 16:34:40 -0500 From: Lubos Lunak To: Rik van Riel Subject: Re: Improving OOM killer Date: Wed, 10 Feb 2010 22:34:38 +0100 User-Agent: KMail/1.9.10 Cc: David Rientjes , Balbir Singh , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , KOSAKI Motohiro , Nick Piggin , Jiri Kosina References: <201002012302.37380.l.lunak@suse.cz> <201002102154.39771.l.lunak@suse.cz> <4B73206C.8090108@redhat.com> In-Reply-To: <4B73206C.8090108@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201002102234.38377.l.lunak@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1010 Lines: 23 On Wednesday 10 of February 2010, Rik van Riel wrote: > On 02/10/2010 03:54 PM, Lubos Lunak wrote: > > Simply computing the cost of the whole children subtree (or a > > reasonable approximation) avoids the need for any magic numbers and gives > > a much better representation of how costly the subtree is, since, well, > > it is the cost itself. > > That assumes you want to kill off that entire tree. As said in another mail, I think I actually do, since the entire tree is indentified as the problem. But regardless of that, surely computing the cost of a forkbomb by computing something that is close to the actual cost of it is better than trying magic numbers? -- Lubos Lunak openSUSE Boosters team, KDE developer l.lunak@suse.cz , l.lunak@kde.org -- 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/