Re: Hot/cold allocation -- swsusp can not handle hot pages

From: William Lee Irwin III (wli@holomorphy.com)
Date: Sun Nov 03 2002 - 15:14:48 EST


At some point in the past, Andrew Morton wrote:
>> I'm not really sure what to suggest here. Emptying the per-cpu
>> page pools would be tricky. Maybe a swsusp-special page allocator
>> which goes direct to the buddy lists or something.

On Sun, Nov 03, 2002 at 09:08:09PM +0100, Pavel Machek wrote:
> Well, see the patch above. That seems to do the trick for
> me. It seems that even "cold" allocation can give page from per-cpu
> pool. I thought that was a bug?

Not a bug. The semantics only imply a preference for merging, not
a requirement to do so. A direct dequeue-from-buddy method either
by adjusting watermarks or a specialized interface in combination
with per-cpu list shootdown is required to enforce your invariants.

Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:30 EST