At Fri, 26 Nov 2004 18:52:36 +0900, IWAMOTO Toshihiro wrote: > I've put a set of memory migration test programs at > > http://people.valinux.co.jp/~iwamoto/mh/tests/ > > tests-041126.tar.gz should work either with Dave Hansen's patchset or > with my zone based hotplug emulation patch. > > I found the tests does not work well with Dave's patchset. > I've found the followings: > > - setup_per_zone_pages_min() calls should be added in > capture_page_range() and online_pages() > - lru_add_drain() should be called before try_to_migrate_pages() The following patch deals with the first item. Signed-off-by: IWAMOTO Toshihiro Signed-off-by: Dave Hansen --- memhotplug-dave/mm/memory_hotplug.c | 2 ++ mm/page_alloc.c | 0 2 files changed, 2 insertions(+) diff -puN include/linux/mmzone.h~N0-call_setup_per_zone_pages_min_after_memory_size_change include/linux/mmzone.h diff -puN mm/memory_hotplug.c~N0-call_setup_per_zone_pages_min_after_memory_size_change mm/memory_hotplug.c --- memhotplug/mm/memory_hotplug.c~N0-call_setup_per_zone_pages_min_after_memory_size_change 2005-07-28 13:51:14.000000000 -0700 +++ memhotplug-dave/mm/memory_hotplug.c 2005-07-28 13:51:14.000000000 -0700 @@ -157,5 +157,7 @@ int online_pages(unsigned long pfn, unsi } zone->present_pages += onlined_pages; + setup_per_zone_pages_min(); + return 0; } diff -puN mm/page_alloc.c~N0-call_setup_per_zone_pages_min_after_memory_size_change mm/page_alloc.c _