Re: [PATCH 3 of 4] sparsemem: reduce i386 PAE section size

From: Dave Hansen
Date: Fri Mar 28 2008 - 12:43:43 EST


On Thu, 2008-03-27 at 23:18 -0700, Jeremy Fitzhardinge wrote:
> Christoph Lameter wrote:
> > Only works on i386 if you either use sparsemem / vmemmap or not sparsemem
> > though. Is there any need for the other sparsemem memory models? Or could
> > we disable them like on x86_64?
>
> Probably, but I don't know what the tradeoffs are. All I want is
> hotplug memory.

Developers should probably learn the tradeoffs before they go start
poking around in code and sending patches. ;)

Maybe Christoph has a good idea what the tradeoffs are for the vmemmap
variant, but the table-based one is pretty simple. Smaller sections
mean that it costs you larger sparsemem structures and more bits in
page->flags. But, the smaller the section, the more mem_map[] you might
waste.

BTW, the current 1G sections were picked because all the hardware we
knew of at the time had 512MB dimms that had to be added in pairs. So,
we didn't ever have physical hotplug of less than that.

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