Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761146AbZANVx2 (ORCPT ); Wed, 14 Jan 2009 16:53:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757385AbZANVxS (ORCPT ); Wed, 14 Jan 2009 16:53:18 -0500 Received: from qw-out-2122.google.com ([74.125.92.26]:38296 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547AbZANVxR (ORCPT ); Wed, 14 Jan 2009 16:53:17 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=j6fRnwuejNGt4y9kAQTwihEaW6NCznb2acWksqw0dP0FVeWRuNIpir2TJ4RPr9/SQO GjIBeqKCeShSBBBSV6lCZiFvd69JwPpYEjH/7nan6jixAYMdAtUEGv0zcuoVnrxPiyV5 odQieycqKEAtUd9ZaFCN+V/WGLYDxcahSLGo0= Message-ID: <3e8340490901141353u3990148ft1b20220a8317f7dc@mail.gmail.com> Date: Wed, 14 Jan 2009 16:53:16 -0500 From: "Bryan Donlan" To: "Evgeniy Polyakov" Subject: Re: [take2] OOM documentation update [was: Linux killed Kenny, bastard!] Cc: linux-kernel@vger.kernel.org, "David Rientjes" , "Balbir Singh" , "Alan Cox" , "Dave Jones" , "Andrew Morton" , "Linus Torvalds" , "Theodore Tso" , "Matthias Andree" In-Reply-To: <20090114170606.GB12102@ioremap.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20090112155108.2646b3ae@lxorguk.ukuu.org.uk> <20090113140627.507f15e1@lxorguk.ukuu.org.uk> <20090113142423.GA30710@ioremap.net> <661de9470901130700m34c4938cm6feeb6fc561d605a@mail.gmail.com> <20090113152106.GA1134@ioremap.net> <20090113213316.GB27227@ioremap.net> <20090114161225.GA9584@ioremap.net> <20090114170606.GB12102@ioremap.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 999 Lines: 22 On Wed, Jan 14, 2009 at 12:06 PM, Evgeniy Polyakov wrote: > + * resulted score is multiplied by the two in the power of oom_adj when it is > + positive, and divided otherwise, i.e. > + points <<= oom_adj when it is positive and > + points >>= oom_adj otherwise Two to the power of a negative number is equivalent to dividing by two to the power of said exponent's absolute value, making this paragraph more than a bit confusing - indeed, a literal read would make it equivalent to multiplying by 2^abs(oom_adj). I would think that the following would be enough: * The resulting score is multiplied by two to the power of oom_adj. Unless we assume admins don't know how exponentiation by a negative number works :) -- 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/