Re: remap_file_pages() use
From: Armin Rigo
Date: Mon May 19 2014 - 18:06:20 EST
Hi Dave,
On 19 May 2014 19:50, Dave Hansen <dave.hansen@xxxxxxxxx> wrote:
> 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?
We can keep an in-process estimate of this value anyway. The sysctl
to get vm.max_map_count is all we need. That is, unless the limit is
moved to be per-user instead of per-process, as I think was discussed
here --- which would complicate further our job :-/
A bientÃt,
Armin.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/