Re: [PATCHSET] percpu: generalize first chunk allocators and improve lpage NUMA support

From: Andi Kleen
Date: Fri Jun 26 2009 - 02:54:41 EST


On Fri, Jun 26, 2009 at 09:40:10AM +0900, Tejun Heo wrote:
> Andi Kleen wrote:
> >> I don't know why, but in the configuration I saw each percpu area was
> >> something like 1.8 MB.
> >
> > That sounds like something that needs to be investigated and fixed then.
> > In a sense per cpu space is precious like stack space and shouldn't
> > be wasted.
>
> The large percpu space is most likely from lockdep.

It would be better then to fix lockdep then to add weird hacks for that
elsewhere.

e.g. it could just allocate buffers in a cpu up/down callback and
only put a pointer to these buffers into percpu.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/