Re: [PATCH] do not free non slab allocated per_cpu_pageset

Christoph Lameter
2006-09-22T19:06:48Z

On Fri, 22 Sep 2006, Andrew Morton wrote:

> >
> > > I think I preferred my earlier fix, recently reworked as:
> >
> > The problem is though that the pcp pointers must point to the static pcp
> > arrays for bootup to succeed under NUMA. Your patch may work under SMP.
> > For NUMA you may zap pointers to valid static pcps.
>
> This is unclear to me. Do you mean "the pcps must be usable during
> process_zones()'s call to kmalloc_node())" or do you mean "the pcps must
> always be usable" (in which case more work needs to be done) or what?

The pcps must be usable during process_zones() for NUMA bootstrap.
As far as I recall: A cpu is booted with the static arrays and later
process_zones is replacing the references to the static arrays.