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

2025-02-17 Thread Nico Pache
On Mon, Feb 17, 2025 at 8:14 AM Usama Arif wrote: > > > > 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 patc

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

2025-02-17 Thread Nico Pache
On Mon, Feb 17, 2025 at 8:04 AM Usama Arif wrote: > > > > 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. > >

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

2025-02-17 Thread Nico Pache
On Mon, Feb 17, 2025 at 7:59 AM Usama Arif wrote: > > > > 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 consi

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

2025-02-17 Thread Nico Pache
On Mon, Feb 17, 2025 at 7:54 AM Usama Arif wrote: > > > > 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=&

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

2025-02-10 Thread Nico Pache
Now that we have mTHP support in khugepaged, lets add it to the transhuge admin guide to provide proper guidance. Signed-off-by: Nico Pache --- Documentation/admin-guide/mm/transhuge.rst | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/Documentation

[RFC v2 4/5] khugepaged: add defer option to mTHP options

2025-02-10 Thread Nico Pache
Now that we have defer to globally disable THPs at fault time, lets add a defer setting to the mTHP options. This will allow khugepaged to operate at that order, while avoiding it at PF time. Signed-off-by: Nico Pache --- include/linux/huge_mm.h | 5 + mm/huge_memory.c| 38

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

2025-02-10 Thread Nico Pache
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 +- 1 file changed, 17 insertions(+), 5 deletions

[RFC v2 3/5] selftests: mm: add defer to thp setting parser

2025-02-10 Thread Nico Pache
add the defer setting to the selftests library for reading thp settings. Signed-off-by: Nico Pache --- tools/testing/selftests/mm/thp_settings.c | 1 + tools/testing/selftests/mm/thp_settings.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/testing/selftests/mm/thp_settings.c b

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

2025-02-10 Thread Nico Pache
applications to benefits from THPs, while curbing some of the memory waste. Signed-off-by: Nico Pache --- include/linux/huge_mm.h | 15 +-- mm/huge_memory.c| 31 +++ 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/include/linux/huge_mm.h

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

2025-02-10 Thread Nico Pache
npache/mthp_khugepaged_defer/testoutput2/output.html Nico Pache (5): mm: defer THP insertion to khugepaged mm: document transparent_hugepage=defer usage selftests: mm: add defer to thp setting parser khugepaged: add defer option to mTHP options mm: document mTHP defer setting Documen