On 03/02/23 08:43, James Houghton wrote: > > This solution limits the size of a HugeTLB page to 16G. I'm not sure > if there are any architectures that support HugeTLB pages larger than > 16G (it looks like powerpc supports 16G). If they do, I think we can > just increase the value of COMPOUND_MAPPED. If that's not possible, we > would need another solution than participating in _nr_pages_mapped > like THPs. For now, I believe you should continue with the THP like approach. A couple days back, Matthew asked me to take a look and comment on his latest mapcount proposal. I have not done that yet. :( The hope is that this will make hugetlb HGM simpler as well. It is somewhat troubling that mapcount may be changed in the near future. Better to be consistent with THP than invent something hugetlb HGM specific. That way, when THP is updated hugetlb updates should be nearly the same. -- Mike Kravetz