Re: [patch 3/3] Increase default reserve percpu area

From: Pekka Enberg
Date: Fri Sep 19 2008 - 18:08:12 EST


On Sat, Sep 20, 2008 at 1:02 AM, Pekka Enberg <penberg@xxxxxxxxxxxxxx> wrote:
> On Fri, Sep 19, 2008 at 11:37 PM, Christoph Lameter
> <cl@xxxxxxxxxxxxxxxxxxxx> 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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/