lkml.org 
[lkml]   [2014]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: remap_file_pages() use
On 05/19/2014 09:42 AM, Armin Rigo wrote:
> If there is an official way to know in advance how many remappings our
> process is allowed to perform, then we could adapt as the size
> increases. Or maybe catching ENOMEM and doubling the remapping size
> (in some process-wide synchronization point). All in all, thanks for
> the note: it looks like there are solutions (even if less elegant than
> remap_file_pages from the user's perspective).

We keep the current count as mm->map_count in the kernel, and the limit
is available because it's a sysctl. It wouldn't be hard to dump
mm->map_count out in a /proc file somewhere if it would be useful to
you. Would that work, or is there some other interface that would be
more convenient?


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