Re: [RFC v2 0/5] mm: introduce THP deferred setting

2025-02-17 Thread Usama Arif
On 11/02/2025 00:40, Nico Pache wrote: > This series is a follow-up to [1], which adds mTHP support to khugepaged. > mTHP khugepaged support was necessary for the global="defer" and > mTHP="inherit" case (and others) to make sense. > Hi Nico, Thanks for the patches! Why is mTHP khugepaged a

Re: [RFC v2 1/5] mm: defer THP insertion to khugepaged

2025-02-17 Thread Usama Arif
On 11/02/2025 00:40, Nico Pache wrote: > setting /transparent_hugepages/enabled=always allows applications > to benefit from THPs without having to madvise. However, the pf handler > takes very few considerations to decide weather or not to actually use a > THP. This can lead to a lot of wasted

Re: [RFC v2 2/5] mm: document transparent_hugepage=defer usage

2025-02-17 Thread Usama Arif
On 11/02/2025 00:40, Nico Pache wrote: > The new transparent_hugepage=defer option allows for a more conservative > approach to THPs. Document its usage in the transhuge admin-guide. > > Signed-off-by: Nico Pache > --- > Documentation/admin-guide/mm/transhuge.rst | 22 +- >

Re: [RFC v2 5/5] mm: document mTHP defer setting

2025-02-17 Thread Usama Arif
On 11/02/2025 00:40, Nico Pache wrote: > Now that we have mTHP support in khugepaged, lets add it to the > transhuge admin guide to provide proper guidance. > I think you should move this patch to the mTHP khugepaged series, and just send THP=defer separately from mTHP khguepaged. > Signed-of