From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by wa-out-1112.google.com with SMTP id m28so456656wag.8 for ; Fri, 19 Sep 2008 15:07:56 -0700 (PDT) Message-ID: <84144f020809191507w64ff1c47m40c2c500da3fdfa6@mail.gmail.com> Date: Sat, 20 Sep 2008 01:07:55 +0300 From: "Pekka Enberg" Subject: Re: [patch 3/3] Increase default reserve percpu area In-Reply-To: <84144f020809191502i35805980n97dc3073ab8a52bc@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080919203703.312007962@quilx.com> <20080919203724.474751340@quilx.com> <84144f020809191502i35805980n97dc3073ab8a52bc@mail.gmail.com> Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, jeremy@goop.org, ebiederm@xmission.com, travis@sgi.com, herbert@gondor.apana.org.au, xemul@openvz.org List-ID: On Sat, Sep 20, 2008 at 1:02 AM, Pekka Enberg wrote: > On Fri, Sep 19, 2008 at 11:37 PM, Christoph Lameter > wrote: >> SLUB now requires a portion of the per cpu reserve. There are on average >> about 70 real slabs on a system (aliases do not count) and each needs 12 bytes >> of per cpu space. Thats 840 bytes. In debug mode all slabs will be real slabs >> which will make us end up with 150 -> 1800. Give it some slack and add 2000 >> bytes to the default size. >> >> Things work fine without this patch but then slub will reduce the percpu reserve >> for modules. > > Hmm, shouldn't this be dynamically configured at runtime by > multiplying the number of possible CPUs with some constant? Oh, never mind, setup_per_cpu_areas() already does that, obviously. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org