Re: [PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-14 Thread Pavel Tatashin
Hi Sergey, Thank you for noticing this! I will send out an updated patch soon. Pavel On Wed, Feb 14, 2018 at 12:08 AM, Sergey Senozhatsky wrote: > On (02/09/18 14:22), Pavel Tatashin wrote: > [..] >> +/* >> + * If this zone has deferred pages, try to grow it

Re: [PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-14 Thread Pavel Tatashin
Hi Sergey, Thank you for noticing this! I will send out an updated patch soon. Pavel On Wed, Feb 14, 2018 at 12:08 AM, Sergey Senozhatsky wrote: > On (02/09/18 14:22), Pavel Tatashin wrote: > [..] >> +/* >> + * If this zone has deferred pages, try to grow it by initializing enough >> + *

Re: [PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-13 Thread Sergey Senozhatsky
On (02/09/18 14:22), Pavel Tatashin wrote: [..] > +/* > + * If this zone has deferred pages, try to grow it by initializing enough > + * deferred pages to satisfy the allocation specified by order, rounded up to > + * the nearest PAGES_PER_SECTION boundary. So we're adding memory in > increments

Re: [PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-13 Thread Sergey Senozhatsky
On (02/09/18 14:22), Pavel Tatashin wrote: [..] > +/* > + * If this zone has deferred pages, try to grow it by initializing enough > + * deferred pages to satisfy the allocation specified by order, rounded up to > + * the nearest PAGES_PER_SECTION boundary. So we're adding memory in > increments

[PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-09 Thread Pavel Tatashin
Deferred page initialization allows the boot cpu to initialize a small subset of the system's pages early in boot, with other cpus doing the rest later on. It is, however, problematic to know how many pages the kernel needs during boot. Different modules and kernel parameters may change the

[PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-09 Thread Pavel Tatashin
Deferred page initialization allows the boot cpu to initialize a small subset of the system's pages early in boot, with other cpus doing the rest later on. It is, however, problematic to know how many pages the kernel needs during boot. Different modules and kernel parameters may change the

Re: [PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-09 Thread Andrew Morton
On Fri, 9 Feb 2018 14:22:16 -0500 Pavel Tatashin wrote: > Deferred page initialization allows the boot cpu to initialize a small > subset of the system's pages early in boot, with other cpus doing the rest > later on. > > It is, however, problematic to know how many

Re: [PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-09 Thread Andrew Morton
On Fri, 9 Feb 2018 14:22:16 -0500 Pavel Tatashin wrote: > Deferred page initialization allows the boot cpu to initialize a small > subset of the system's pages early in boot, with other cpus doing the rest > later on. > > It is, however, problematic to know how many pages the kernel needs

[PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-09 Thread Pavel Tatashin
Deferred page initialization allows the boot cpu to initialize a small subset of the system's pages early in boot, with other cpus doing the rest later on. It is, however, problematic to know how many pages the kernel needs during boot. Different modules and kernel parameters may change the

[PATCH v3 1/1] mm: initialize pages on demand during boot

2018-02-09 Thread Pavel Tatashin
Deferred page initialization allows the boot cpu to initialize a small subset of the system's pages early in boot, with other cpus doing the rest later on. It is, however, problematic to know how many pages the kernel needs during boot. Different modules and kernel parameters may change the