Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-20 Thread Simon Jeons
Hi Naoya, On 03/21/2013 05:59 AM, Naoya Horiguchi wrote: > On Wed, Mar 20, 2013 at 08:31:06AM +0800, Simon Jeons wrote: > ... > diff --git v3.8.orig/mm/mempolicy.c v3.8/mm/mempolicy.c > index e2df1c1..8627135 100644 > --- v3.8.orig/mm/mempolicy.c > +++ v3.8/mm/mempolicy.c > @@

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-20 Thread Naoya Horiguchi
On Wed, Mar 20, 2013 at 08:31:06AM +0800, Simon Jeons wrote: ... > >>> diff --git v3.8.orig/mm/mempolicy.c v3.8/mm/mempolicy.c > >>> index e2df1c1..8627135 100644 > >>> --- v3.8.orig/mm/mempolicy.c > >>> +++ v3.8/mm/mempolicy.c > >>> @@ -525,6 +525,27 @@ static int check_pte_range(struct

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-20 Thread Michal Hocko
On Wed 20-03-13 02:12:54, Naoya Horiguchi wrote: > On Tue, Mar 19, 2013 at 08:11:13AM +0100, Michal Hocko wrote: > > On Mon 18-03-13 20:07:16, Naoya Horiguchi wrote: > > > On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: > > > > On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: > ... >

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-20 Thread Naoya Horiguchi
On Tue, Mar 19, 2013 at 08:11:13AM +0100, Michal Hocko wrote: > On Mon 18-03-13 20:07:16, Naoya Horiguchi wrote: > > On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: > > > On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: ... > > > > @@ -536,6 +557,11 @@ static inline int

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-20 Thread Naoya Horiguchi
On Tue, Mar 19, 2013 at 08:11:13AM +0100, Michal Hocko wrote: On Mon 18-03-13 20:07:16, Naoya Horiguchi wrote: On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: ... @@ -536,6 +557,11 @@ static inline int check_pmd_range(struct

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-20 Thread Michal Hocko
On Wed 20-03-13 02:12:54, Naoya Horiguchi wrote: On Tue, Mar 19, 2013 at 08:11:13AM +0100, Michal Hocko wrote: On Mon 18-03-13 20:07:16, Naoya Horiguchi wrote: On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: ... @@

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-20 Thread Naoya Horiguchi
On Wed, Mar 20, 2013 at 08:31:06AM +0800, Simon Jeons wrote: ... diff --git v3.8.orig/mm/mempolicy.c v3.8/mm/mempolicy.c index e2df1c1..8627135 100644 --- v3.8.orig/mm/mempolicy.c +++ v3.8/mm/mempolicy.c @@ -525,6 +525,27 @@ static int check_pte_range(struct vm_area_struct *vma, pmd_t

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-20 Thread Simon Jeons
Hi Naoya, On 03/21/2013 05:59 AM, Naoya Horiguchi wrote: On Wed, Mar 20, 2013 at 08:31:06AM +0800, Simon Jeons wrote: ... diff --git v3.8.orig/mm/mempolicy.c v3.8/mm/mempolicy.c index e2df1c1..8627135 100644 --- v3.8.orig/mm/mempolicy.c +++ v3.8/mm/mempolicy.c @@ -525,6 +525,27 @@ static

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-19 Thread Simon Jeons
Hi Naoya, On 03/19/2013 08:07 AM, Naoya Horiguchi wrote: > On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: >> On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: >>> This patch extends check_range() to handle vma with VM_HUGETLB set. >>> With this changes, we can migrate hugepage with

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-19 Thread Michal Hocko
On Mon 18-03-13 20:07:16, Naoya Horiguchi wrote: > On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: > > On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: [...] > > > @@ -3202,3 +3202,13 @@ void putback_active_hugepages(struct list_head *l) > > > list_for_each_entry_safe(page, page2,

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-19 Thread Michal Hocko
On Mon 18-03-13 20:07:16, Naoya Horiguchi wrote: On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: [...] @@ -3202,3 +3202,13 @@ void putback_active_hugepages(struct list_head *l) list_for_each_entry_safe(page, page2, l, lru)

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-19 Thread Simon Jeons
Hi Naoya, On 03/19/2013 08:07 AM, Naoya Horiguchi wrote: On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: This patch extends check_range() to handle vma with VM_HUGETLB set. With this changes, we can migrate hugepage with

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-18 Thread Naoya Horiguchi
On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: > On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: > > This patch extends check_range() to handle vma with VM_HUGETLB set. > > With this changes, we can migrate hugepage with migrate_pages(2). > > Note that for larger hugepages (covered

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-18 Thread Michal Hocko
On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: > This patch extends check_range() to handle vma with VM_HUGETLB set. > With this changes, we can migrate hugepage with migrate_pages(2). > Note that for larger hugepages (covered by pud entries, 1GB for > x86_64 for example), we simply skip it now.

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-18 Thread Michal Hocko
On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: This patch extends check_range() to handle vma with VM_HUGETLB set. With this changes, we can migrate hugepage with migrate_pages(2). Note that for larger hugepages (covered by pud entries, 1GB for x86_64 for example), we simply skip it now.

Re: [PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-03-18 Thread Naoya Horiguchi
On Mon, Mar 18, 2013 at 04:40:57PM +0100, Michal Hocko wrote: On Thu 21-02-13 14:41:44, Naoya Horiguchi wrote: This patch extends check_range() to handle vma with VM_HUGETLB set. With this changes, we can migrate hugepage with migrate_pages(2). Note that for larger hugepages (covered by pud

[PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-02-21 Thread Naoya Horiguchi
This patch extends check_range() to handle vma with VM_HUGETLB set. With this changes, we can migrate hugepage with migrate_pages(2). Note that for larger hugepages (covered by pud entries, 1GB for x86_64 for example), we simply skip it now. Signed-off-by: Naoya Horiguchi ---

[PATCH 5/9] migrate: enable migrate_pages() to migrate hugepage

2013-02-21 Thread Naoya Horiguchi
This patch extends check_range() to handle vma with VM_HUGETLB set. With this changes, we can migrate hugepage with migrate_pages(2). Note that for larger hugepages (covered by pud entries, 1GB for x86_64 for example), we simply skip it now. Signed-off-by: Naoya Horiguchi