Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-04-03 Thread Simon Jeons
Ping! On 03/21/2013 07:36 AM, Simon Jeons wrote: > Hi Naoya, > On 03/21/2013 05:53 AM, Naoya Horiguchi wrote: >> On Wed, Mar 20, 2013 at 07:57:32AM +0800, Simon Jeons wrote: >>> Hi Naoya, >>> On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: When we have a page fault for the address which is

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-04-03 Thread Simon Jeons
Ping! On 03/21/2013 07:36 AM, Simon Jeons wrote: Hi Naoya, On 03/21/2013 05:53 AM, Naoya Horiguchi wrote: On Wed, Mar 20, 2013 at 07:57:32AM +0800, Simon Jeons wrote: Hi Naoya, On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: When we have a page fault for the address which is backed by a

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-20 Thread Simon Jeons
Hi Naoya, On 03/21/2013 05:53 AM, Naoya Horiguchi wrote: > On Wed, Mar 20, 2013 at 07:57:32AM +0800, Simon Jeons wrote: >> Hi Naoya, >> On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: >>> When we have a page fault for the address which is backed by a hugepage >>> under migration, the kernel can't

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-20 Thread Naoya Horiguchi
On Wed, Mar 20, 2013 at 07:57:32AM +0800, Simon Jeons wrote: > Hi Naoya, > On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: > >When we have a page fault for the address which is backed by a hugepage > >under migration, the kernel can't wait correctly until the migration > >finishes. This is because

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-20 Thread Naoya Horiguchi
On Wed, Mar 20, 2013 at 07:57:32AM +0800, Simon Jeons wrote: Hi Naoya, On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: When we have a page fault for the address which is backed by a hugepage under migration, the kernel can't wait correctly until the migration finishes. This is because

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-20 Thread Simon Jeons
Hi Naoya, On 03/21/2013 05:53 AM, Naoya Horiguchi wrote: On Wed, Mar 20, 2013 at 07:57:32AM +0800, Simon Jeons wrote: Hi Naoya, On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: When we have a page fault for the address which is backed by a hugepage under migration, the kernel can't wait

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-19 Thread Simon Jeons
Hi Naoya, On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: When we have a page fault for the address which is backed by a hugepage under migration, the kernel can't wait correctly until the migration finishes. This is because pte_offset_map_lock() can't get a correct It seems that current

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-19 Thread Simon Jeons
Hi Naoya, On 02/22/2013 03:41 AM, Naoya Horiguchi wrote: When we have a page fault for the address which is backed by a hugepage under migration, the kernel can't wait correctly until the migration finishes. This is because pte_offset_map_lock() can't get a correct It seems that current

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-18 Thread Naoya Horiguchi
On Mon, Mar 18, 2013 at 03:51:59PM +0100, Michal Hocko wrote: > On Thu 21-02-13 14:41:40, Naoya Horiguchi wrote: > [...] > > diff --git v3.8.orig/mm/migrate.c v3.8/mm/migrate.c > > index 2fd8b4a..7d84f4c 100644 > > --- v3.8.orig/mm/migrate.c > > +++ v3.8/mm/migrate.c > > @@ -236,6 +236,30 @@ void

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-18 Thread Michal Hocko
On Thu 21-02-13 14:41:40, Naoya Horiguchi wrote: [...] > diff --git v3.8.orig/mm/migrate.c v3.8/mm/migrate.c > index 2fd8b4a..7d84f4c 100644 > --- v3.8.orig/mm/migrate.c > +++ v3.8/mm/migrate.c > @@ -236,6 +236,30 @@ void migration_entry_wait(struct mm_struct *mm, pmd_t > *pmd, >

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-18 Thread Michal Hocko
On Thu 21-02-13 14:41:40, Naoya Horiguchi wrote: [...] diff --git v3.8.orig/mm/migrate.c v3.8/mm/migrate.c index 2fd8b4a..7d84f4c 100644 --- v3.8.orig/mm/migrate.c +++ v3.8/mm/migrate.c @@ -236,6 +236,30 @@ void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd,

Re: [PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-03-18 Thread Naoya Horiguchi
On Mon, Mar 18, 2013 at 03:51:59PM +0100, Michal Hocko wrote: On Thu 21-02-13 14:41:40, Naoya Horiguchi wrote: [...] diff --git v3.8.orig/mm/migrate.c v3.8/mm/migrate.c index 2fd8b4a..7d84f4c 100644 --- v3.8.orig/mm/migrate.c +++ v3.8/mm/migrate.c @@ -236,6 +236,30 @@ void

[PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-02-21 Thread Naoya Horiguchi
When we have a page fault for the address which is backed by a hugepage under migration, the kernel can't wait correctly until the migration finishes. This is because pte_offset_map_lock() can't get a correct migration entry for hugepage. This patch adds migration_entry_wait_huge() to separate

[PATCH 1/9] migrate: add migrate_entry_wait_huge()

2013-02-21 Thread Naoya Horiguchi
When we have a page fault for the address which is backed by a hugepage under migration, the kernel can't wait correctly until the migration finishes. This is because pte_offset_map_lock() can't get a correct migration entry for hugepage. This patch adds migration_entry_wait_huge() to separate