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

From: Ingo Molnar
Date: Tue Jun 30 2009 - 15:15:49 EST



* Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Mon, 29 Jun 2009 19:20:53 -0400 (EDT)
> Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> > On Wed, 24 Jun 2009, Andrew Morton wrote:
> >
> > > I assume from the tremendous number of
> > > for_each_possible_cpu()s that CPU hotplug awareness won't be
> > > happening.
> >
> > Per cpu areas are allocated for all possible processors. No need
> > to handle offlining and onlining them.
>
> Well yes. My point is that this is a bug-not-a-feature ;)

Yeah, it's a bug for something like a virtual environment which
boots generic kernels that might have 64 possible CPUs (on a true
64-way system), but which will have fewer in practice.

It's pretty basic stuff: the on-demand allocation of percpu
resources.

Ingo
--
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/