Re: [Lhms-devel] Re: Merging Nonlinear and Numa style memoryhotplug

From: Dave Hansen
Date: Fri Jun 25 2004 - 14:05:06 EST


On Fri, 2004-06-25 at 11:48, Yasunori Goto wrote:
> >
> > > Should this translation be in common code?
> >
> > What do you mean by common code? It should be shared by all
> > architectures.
>
> If physical memory chunk size is larger than the area which
> should be contiguous like IA32's kmalloc,
> there is no merit in this code.
> So, I thought only mem_section is enough.
> But I don't know about other architecutures yet and I'm not sure.
>
> Are you sure that all architectures need phys_section?

You don't *need* it, but the alternative is a scan of the mem_section[]
array, which would be much, much slower.

Do you have an idea for an alternate implementation?

-- Dave

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