[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090114221043.GA6039@ioremap.net>
Date: Thu, 15 Jan 2009 01:10:44 +0300
From: Evgeniy Polyakov <zbr@...emap.net>
To: Bryan Donlan <bdonlan@...il.com>
Cc: linux-kernel@...r.kernel.org, David Rientjes <rientjes@...gle.com>,
Balbir Singh <balbir@...ux.vnet.ibm.com>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
Dave Jones <davej@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Theodore Tso <tytso@....edu>,
Matthias Andree <matthias.andree@....de>
Subject: Re: [take2] OOM documentation update [was: Linux killed Kenny, bastard!]
On Wed, Jan 14, 2009 at 04:53:16PM -0500, Bryan Donlan (bdonlan@...il.com) wrote:
> On Wed, Jan 14, 2009 at 12:06 PM, Evgeniy Polyakov <zbr@...emap.net> 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.
Yes, I think it is enough with shift example.
Thanks guys I will update the doc.
--
Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists