Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables

2016-02-09 Thread Aneesh Kumar K.V
Andrew Morton writes: > On Tue, 9 Feb 2016 21:41:44 +0530 "Aneesh Kumar K.V" > wrote: > >> With next generation power processor, we are having a new mmu model >> [1] that require us to maintain a different linux page table format. >> >> Inorder to support both current and future ppc64 systems

Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables

2016-02-09 Thread Aneesh Kumar K.V
"Kirill A. Shutemov" writes: > On Tue, Feb 09, 2016 at 09:41:44PM +0530, Aneesh Kumar K.V wrote: >> With next generation power processor, we are having a new mmu model >> [1] that require us to maintain a different linux page table format. >> >> Inorder to support both current and future ppc64 s

Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables

2016-02-09 Thread Kirill A. Shutemov
On Tue, Feb 09, 2016 at 01:26:08PM -0800, Andrew Morton wrote: > On Tue, 9 Feb 2016 21:41:44 +0530 "Aneesh Kumar K.V" > wrote: > > @@ -660,6 +660,18 @@ static int __init hugepage_init(void) > > return -EINVAL; > > } > > > > + khugepaged_pages_to_scan = HPAGE_PMD_NR * 8; > > +

Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables

2016-02-09 Thread Andrew Morton
On Tue, 9 Feb 2016 21:41:44 +0530 "Aneesh Kumar K.V" wrote: > With next generation power processor, we are having a new mmu model > [1] that require us to maintain a different linux page table format. > > Inorder to support both current and future ppc64 systems with a single > kernel we need t

Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables

2016-02-09 Thread Kirill A. Shutemov
On Tue, Feb 09, 2016 at 09:41:44PM +0530, Aneesh Kumar K.V wrote: > With next generation power processor, we are having a new mmu model > [1] that require us to maintain a different linux page table format. > > Inorder to support both current and future ppc64 systems with a single > kernel we need

[PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables

2016-02-09 Thread Aneesh Kumar K.V
With next generation power processor, we are having a new mmu model [1] that require us to maintain a different linux page table format. Inorder to support both current and future ppc64 systems with a single kernel we need to make sure kernel can select between different page table format at runti