Re: Page zapping and page table reclaim

From
David Hildenbrand <hidden>
Date
2021-03-11 21:35:34
Reply to
Peter Xu, 2021-03-11
On 11.03.21 22:26, Peter Xu wrote:
On Thu, Mar 11, 2021 at 07:14:02PM +0100, David Hildenbrand wrote:
quoted
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

Thread (13 messages) 13 messages, 6 authors, last reply 2021-03-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help