On 12/2/21 04:47, David Hildenbrand wrote: > On 02.12.21 11:19, fei luo wrote: >> >> When reusing the page that has been cleared, there is no need to clear it >> >> again, which also speeds up the memory allocation of user-mode programs. >> >> >> Is this feature feasible? > > "init_on_free=1" for the system as a whole, which might sounds like what > might tackle part of your use case. > Certainly init_on_free will not make much difference if VMs are backed by hugetlb pages. We (Joao and myself) have thought about clearing hugetlb pages from user space in an attempt speed up launching of VMs backed by hugetlb pages. -- Mike Kravetz