Re: [RFC PATCH 08/21] KVM: TDX: Increase/decrease folio ref for huge pages
From: Yan Zhao
Date: Thu Jul 03 2025 - 00:57:25 EST
On Wed, Jul 02, 2025 at 11:43:23AM -0700, Ackerley Tng wrote:
> >> vmemmap-optimized folios. Setting a page flag on a vmemmap-optimized
> >> folio will be setting the flag on a few pages.
> > BTW, I have a concern regarding to the overhead vmemmap-optimization.
> >
> > In my system,
> > with hugetlb_free_vmemmap=false, the TD boot time is around 30s;
> > with hugetlb_free_vmemmap=true, the TD boot time is around 1m20s;
>
> I'm aware of this, was investigating this for something similar
> internally. In your system and test, were you working with 1G pages, or
> 2M pages?
2M pages.