[PATCH 7/8] memory-hotplug: enable memory hotplug to handle hugepage

2013-07-24 Thread Naoya Horiguchi
Until now we can't offline memory blocks which contain hugepages because a hugepage is considered as an unmovable page. But now with this patch series, a hugepage has become movable, so by using hugepage migration we can offline such memory blocks. What's different from other users of hugepage mig

Re: [PATCH 7/8] memory-hotplug: enable memory hotplug to handle hugepage

2013-07-23 Thread Naoya Horiguchi
On Wed, Jul 24, 2013 at 02:10:07PM +0800, Wanpeng Li wrote: ... > >diff --git v3.11-rc1.orig/mm/page_isolation.c v3.11-rc1/mm/page_isolation.c > >index 383bdbb..cf48ef6 100644 > >--- v3.11-rc1.orig/mm/page_isolation.c > >+++ v3.11-rc1/mm/page_isolation.c > >@@ -6,6 +6,7 @@ > > #include > > #includ

Re: [PATCH 7/8] memory-hotplug: enable memory hotplug to handle hugepage

2013-07-20 Thread Hillf Danton
On Fri, Jul 19, 2013 at 10:39 PM, Naoya Horiguchi wrote: > On Fri, Jul 19, 2013 at 01:40:38PM +0800, Hillf Danton wrote: >> On Fri, Jul 19, 2013 at 5:34 AM, Naoya Horiguchi >> wrote: >> > @@ -518,9 +519,11 @@ static struct page *dequeue_huge_page_node(struct >> > hstate *h, int nid) >> > { >> >

Re: [PATCH 7/8] memory-hotplug: enable memory hotplug to handle hugepage

2013-07-19 Thread Naoya Horiguchi
On Fri, Jul 19, 2013 at 01:40:38PM +0800, Hillf Danton wrote: > On Fri, Jul 19, 2013 at 5:34 AM, Naoya Horiguchi > wrote: > > @@ -518,9 +519,11 @@ static struct page *dequeue_huge_page_node(struct > > hstate *h, int nid) > > { > > struct page *page; > > > > - if (list_empty(&h->hug

Re: [PATCH 7/8] memory-hotplug: enable memory hotplug to handle hugepage

2013-07-18 Thread Hillf Danton
On Fri, Jul 19, 2013 at 5:34 AM, Naoya Horiguchi wrote: > @@ -518,9 +519,11 @@ static struct page *dequeue_huge_page_node(struct hstate > *h, int nid) > { > struct page *page; > > - if (list_empty(&h->hugepage_freelists[nid])) > + list_for_each_entry(page, &h->hugepage_freeli

[PATCH 7/8] memory-hotplug: enable memory hotplug to handle hugepage

2013-07-18 Thread Naoya Horiguchi
Until now we can't offline memory blocks which contain hugepages because a hugepage is considered as an unmovable page. But now with this patch series, a hugepage has become movable, so by using hugepage migration we can offline such memory blocks. What's different from other users of hugepage mig