Messages in this thread | | | Date | Sun, 3 Nov 2002 12:14:48 -0800 | From | William Lee Irwin III <> | Subject | Re: Hot/cold allocation -- swsusp can not handle hot pages |
| |
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/
| |