Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-09 Thread Naoya Horiguchi
On Sun, Sep 08, 2013 at 10:23:55PM +0530, Aneesh Kumar K.V wrote: > Naoya Horiguchi writes: > > > Currently all of page table handling by hugetlbfs code are done under > > mm->page_table_lock. So when a process have many threads and they heavily > > access to the memory, lock contention happens

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-09 Thread Naoya Horiguchi
On Sun, Sep 08, 2013 at 10:23:55PM +0530, Aneesh Kumar K.V wrote: Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. So when a process have many threads and they heavily access to the memory, lock

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-08 Thread Aneesh Kumar K.V
Naoya Horiguchi writes: > Currently all of page table handling by hugetlbfs code are done under > mm->page_table_lock. So when a process have many threads and they heavily > access to the memory, lock contention happens and impacts the performance. > > This patch makes hugepage support split

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-08 Thread Aneesh Kumar K.V
Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. So when a process have many threads and they heavily access to the memory, lock contention happens and impacts the performance. This patch makes

[PATCH 1/2] hugetlbfs: support split page table lock

2013-09-05 Thread Naoya Horiguchi
Currently all of page table handling by hugetlbfs code are done under mm->page_table_lock. So when a process have many threads and they heavily access to the memory, lock contention happens and impacts the performance. This patch makes hugepage support split page table lock so that we use

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-05 Thread Naoya Horiguchi
On Thu, Sep 05, 2013 at 02:48:18PM +0530, Aneesh Kumar K.V wrote: > Naoya Horiguchi writes: > > > Hi Aneesh, > > > > On Wed, Sep 04, 2013 at 12:43:19PM +0530, Aneesh Kumar K.V wrote: > >> Naoya Horiguchi writes: > >> > >> > Currently all of page table handling by hugetlbfs code are done under

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-05 Thread Aneesh Kumar K.V
Naoya Horiguchi writes: > Hi Aneesh, > > On Wed, Sep 04, 2013 at 12:43:19PM +0530, Aneesh Kumar K.V wrote: >> Naoya Horiguchi writes: >> >> > Currently all of page table handling by hugetlbfs code are done under >> > mm->page_table_lock. So when a process have many threads and they heavily >>

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-05 Thread Aneesh Kumar K.V
Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Hi Aneesh, On Wed, Sep 04, 2013 at 12:43:19PM +0530, Aneesh Kumar K.V wrote: Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. So when a process

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-05 Thread Naoya Horiguchi
On Thu, Sep 05, 2013 at 02:48:18PM +0530, Aneesh Kumar K.V wrote: Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Hi Aneesh, On Wed, Sep 04, 2013 at 12:43:19PM +0530, Aneesh Kumar K.V wrote: Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Currently all of page table handling

[PATCH 1/2] hugetlbfs: support split page table lock

2013-09-05 Thread Naoya Horiguchi
Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. So when a process have many threads and they heavily access to the memory, lock contention happens and impacts the performance. This patch makes hugepage support split page table lock so that we use page-ptl

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-04 Thread Naoya Horiguchi
Hi Aneesh, On Wed, Sep 04, 2013 at 12:43:19PM +0530, Aneesh Kumar K.V wrote: > Naoya Horiguchi writes: > > > Currently all of page table handling by hugetlbfs code are done under > > mm->page_table_lock. So when a process have many threads and they heavily > > access to the memory, lock

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-04 Thread Aneesh Kumar K.V
Naoya Horiguchi writes: > Currently all of page table handling by hugetlbfs code are done under > mm->page_table_lock. So when a process have many threads and they heavily > access to the memory, lock contention happens and impacts the performance. > > This patch makes hugepage support split

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-04 Thread Aneesh Kumar K.V
Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. So when a process have many threads and they heavily access to the memory, lock contention happens and impacts the performance. This patch makes

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-09-04 Thread Naoya Horiguchi
Hi Aneesh, On Wed, Sep 04, 2013 at 12:43:19PM +0530, Aneesh Kumar K.V wrote: Naoya Horiguchi n-horigu...@ah.jp.nec.com writes: Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. So when a process have many threads and they heavily access to the

[PATCH 1/2] hugetlbfs: support split page table lock

2013-08-30 Thread Naoya Horiguchi
Currently all of page table handling by hugetlbfs code are done under mm->page_table_lock. So when a process have many threads and they heavily access to the memory, lock contention happens and impacts the performance. This patch makes hugepage support split page table lock so that we use

[PATCH 1/2] hugetlbfs: support split page table lock

2013-08-30 Thread Naoya Horiguchi
Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. So when a process have many threads and they heavily access to the memory, lock contention happens and impacts the performance. This patch makes hugepage support split page table lock so that we use page-ptl

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-06-03 Thread Michal Hocko
On Mon 03-06-13 10:34:35, Naoya Horiguchi wrote: > On Mon, Jun 03, 2013 at 03:19:32PM +0200, Michal Hocko wrote: > > On Tue 28-05-13 15:52:50, Naoya Horiguchi wrote: > > > Currently all of page table handling by hugetlbfs code are done under > > > mm->page_table_lock. This is not optimal because

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-06-03 Thread Naoya Horiguchi
On Mon, Jun 03, 2013 at 03:19:32PM +0200, Michal Hocko wrote: > On Tue 28-05-13 15:52:50, Naoya Horiguchi wrote: > > Currently all of page table handling by hugetlbfs code are done under > > mm->page_table_lock. This is not optimal because there can be lock > > contentions between unrelated

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-06-03 Thread Michal Hocko
On Tue 28-05-13 15:52:50, Naoya Horiguchi wrote: > Currently all of page table handling by hugetlbfs code are done under > mm->page_table_lock. This is not optimal because there can be lock > contentions between unrelated components using this lock. While I agree with such a change in general I

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-06-03 Thread Michal Hocko
On Tue 28-05-13 15:52:50, Naoya Horiguchi wrote: Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. This is not optimal because there can be lock contentions between unrelated components using this lock. While I agree with such a change in general I am a

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-06-03 Thread Naoya Horiguchi
On Mon, Jun 03, 2013 at 03:19:32PM +0200, Michal Hocko wrote: On Tue 28-05-13 15:52:50, Naoya Horiguchi wrote: Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. This is not optimal because there can be lock contentions between unrelated components

Re: [PATCH 1/2] hugetlbfs: support split page table lock

2013-06-03 Thread Michal Hocko
On Mon 03-06-13 10:34:35, Naoya Horiguchi wrote: On Mon, Jun 03, 2013 at 03:19:32PM +0200, Michal Hocko wrote: On Tue 28-05-13 15:52:50, Naoya Horiguchi wrote: Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. This is not optimal because there can

[PATCH 1/2] hugetlbfs: support split page table lock

2013-05-28 Thread Naoya Horiguchi
Currently all of page table handling by hugetlbfs code are done under mm->page_table_lock. This is not optimal because there can be lock contentions between unrelated components using this lock. This patch makes hugepage support split page table lock so that we use page->ptl of the leaf node of

[PATCH 1/2] hugetlbfs: support split page table lock

2013-05-28 Thread Naoya Horiguchi
Currently all of page table handling by hugetlbfs code are done under mm-page_table_lock. This is not optimal because there can be lock contentions between unrelated components using this lock. This patch makes hugepage support split page table lock so that we use page-ptl of the leaf node of