On Tue, Apr 29, 2025 at 11:11 AM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote: > > On Tue, Apr 29, 2025 at 10:41:35AM +0800, Yafang Shao wrote: > > In our container environment, we aim to enable THP selectively—allowing > > specific services to use it while restricting others. This approach is > > driven by the following considerations: > > > > 1. Memory Fragmentation > > THP can lead to increased memory fragmentation, so we want to limit its > > use across services. > > What? That's precisely wrong. _not_ using THPs increases > fragmentation. It appears my previous explanation about memory fragmentation wasn't clear enough. To clarify, when I mention "memory fragmentation" in the context of THP, I'm specifically referring to how it can increase memory compaction activity. Additionally, I should have mentioned another significant drawback of THP: memory wastage. -- Regards Yafang