On 11.03.21 22:26, Peter Xu wrote:
On Thu, Mar 11, 2021 at 07:14:02PM +0100, David Hildenbrand wrote:
I was wondering, is there any mechanism that reclaims basically empty page
tables in a running process?
Would munmap() count? :)
Haha, no -- also not mmap(FIXED) or mremap(FIXED) ;)
As so often lately, the use case is sparse memory mappings where we
a) may want to reuse the area later.
b) don't want to hold the mmap lock in write while optimizing
c) don't want to create a lot of individual mappings that we might not
be able to merge again.
--
Thanks,
David / dhildenb