lkml.org 
[lkml]   [2017]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv7 01/19] mm/sparsemem: Allocate mem_section at runtime for SPARSEMEM_EXTREME
On Thu, Sep 28, 2017 at 10:07:11AM +0200, Ingo Molnar wrote:
>
> * Kirill A. Shutemov <kirill.shutemov@linux.intel.com> wrote:
>
> > Size of mem_section array depends on size of physical address space.
> >
> > In preparation for boot-time switching between paging modes on x86-64
> > we need to make allocation of mem_section dynamic.
> >
> > The patch allocates the array on the first call to
> > sparse_memory_present_with_active_regions().
> >
> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
>
> What is the size of the allocations here, in bytes, for the two main variants?

For 4-level paging it's 32k. For 5-level paging it's 2M.

--
Kirill A. Shutemov

\
 
 \ /
  Last update: 2017-09-28 11:10    [W:0.063 / U:15.764 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site