lkml.org 
[lkml]   [2014]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: remap_file_pages() use
Date
Armin Rigo wrote:
> Hi Kirill,
>
> On 19 May 2014 17:17, Kirill A. Shutemov
> <kirill.shutemov@linux.intel.com> wrote:
> > IIUC PyPy uses the syscall in some early prototype and looks like guys are
> > okay to rework it to mmap() if default sysctl_max_map_count will be high
> > enough.
>
> Yes, we can switch easily if needed. The syscall is not in any
> "production" version yet.
>
> Please note that "high enough" in this context means higher than
> 2**20. We need it high enough to handle regularly 10-20% of all the
> RAM used by each program. If I count correctly, at 20%, 2**20 fails
> above 20GB. In general I would suggest to use a default limit that
> depends on the amount of RAM (+swap) available.

Is it nessesary to remap in 4k chunks for you?
What about 64k chunks? Or something bigger?

This way you can scale down required number of VMAs to something more
reasonable.

--
Kirill A. Shutemov


\
 
 \ /
  Last update: 2014-05-19 21:41    [W:0.338 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site