Re: [linux-pm] [PATCH] hibernation should work ok with memory hotplug

Dave Hansen
2008-11-04T07:36:14Z

On Tue, 2008-11-04 at 08:08 +0100, Rafael J. Wysocki wrote:
> A pfn always refers to specific page frame and/or struct page, so yes.
> However, in one of the nodes these pfns are sort of "invalid" (they point
> to struct pages belonging to other zones). AFAICS.

Part of this problem is getting out of the old zone mindset. It used to
be that there were one, two, or three zones, set up at boot, with static
ranges. These never had holes, never changed, and were always stacked
up nice and tightly on top of one another. It ain't that way no more.

Now, the zones are much more truly "allocation pools". They're bunches
of memory with similar attributes and hypervisors or firmware can hand
them to the OS in very interesting ways. This means that the attributes
that help us pool the memory together have less and less to do with
physical addresses. A given physical address a decreasing chance of
being related to its neighbor.

-- Dave