Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1330766

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

From "Kirill A. Shutemov" <kirill@shutemov.name>
Newsgroups linux.kernel
Subject Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables
Date 2016-02-10 00:20 +0100
Message-ID <r0pJD-2qT-15@gated-at.bofh.it> (permalink)
References <r0jbc-6vm-15@gated-at.bofh.it> <r0o1c-1jK-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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" <aneesh.kumar@linux.vnet.ibm.com> wrote:
> > @@ -660,6 +660,18 @@ static int __init hugepage_init(void)
> >  		return -EINVAL;
> >  	}
> >  
> > +	khugepaged_pages_to_scan = HPAGE_PMD_NR * 8;
> > +	khugepaged_max_ptes_none = HPAGE_PMD_NR - 1;
> 
> I don't understand this change.  We change the initialization from
> at-compile-time to at-run-time, but nothing useful appears to have been
> done.

It's preparation patch. HPAGE_PMD_NR is going to be based on variable on
Power soon. Compile-time is not an option.

-- 
 Kirill A. Shutemov

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-02-09 17:20 +0100
  Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related  values as variables "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-02-09 20:50 +0100
    Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-02-10 03:40 +0100
  Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related  values as variables Andrew Morton <akpm@linux-foundation.org> - 2016-02-09 22:30 +0100
    Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related  values as variables "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-02-10 00:20 +0100
    Re: [PATCH V2] mm: Some arch may want to use HPAGE_PMD related values as variables "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-02-10 03:40 +0100

csiph-web