Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756209AbZANTTP (ORCPT ); Wed, 14 Jan 2009 14:19:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754400AbZANTS4 (ORCPT ); Wed, 14 Jan 2009 14:18:56 -0500 Received: from mail-in-13.arcor-online.net ([151.189.21.53]:48148 "EHLO mail-in-13.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754384AbZANTSz (ORCPT ); Wed, 14 Jan 2009 14:18:55 -0500 From: Bodo Eggert <7eggert@gmx.de> Subject: Re: [why oom_adj does not work] Re: Linux killed Kenny, bastard! To: Evgeniy Polyakov , Alan Cox , Dave Jones , linux-kernel@vger.kernel.org, Andrew Morton , Linus Torvalds Reply-To: 7eggert@gmx.de Date: Wed, 14 Jan 2009 20:18:49 +0100 References: User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-Id: X-be10.7eggert.dyndns.org-MailScanner-Information: See www.mailscanner.info for information X-be10.7eggert.dyndns.org-MailScanner: Found to be clean X-be10.7eggert.dyndns.org-MailScanner-From: 7eggert@gmx.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1140 Lines: 23 Evgeniy Polyakov wrote: > On Mon, Jan 12, 2009 at 03:51:08PM +0000, Alan Cox (alan@lxorguk.ukuu.org.uk) >> > Well, Kenny has to die, but if we still decide to change the world, here >> > is the fist step. >> >> NAK this entire thing - we have an existing interface that does the job >> far better. > > Mwahaha, I just checked how scores are calculated, so that userspace > could adjust them. Let's start with beginning: [snip] > Do you _REALLY_ think anyone can calculate it yourself and then properly > calculate adjustment used to properly select oom-killed process? That's easy: Just let your Kenny process run, and check it's score. If it's too low, increase the adjustment until it's just above the other processes' score. Using binary search, you're done in five steps. Then, while you're at it, protect the important programs by setting their adjustment to -17. -- 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/