[PATCH] nptl: Disable THP on thread stack if it incurs in large RSS usage

Florian Weimer fweimer@redhat.com
Wed Jan 31 11:43:08 GMT 2024


* Adhemerval Zanella Netto:

> On 31/01/24 04:54, Florian Weimer wrote:
>> * Cristian Rodríguez:
>> 
>>> On Tue, May 23, 2023 at 5:48 AM Wilco Dijkstra via Libc-alpha <libc-alpha@sourceware.org>
>>> wrote:
>>>
>>>> However even switching off THP for all small stacks (eg. default size or smaller)
>>>> would avoid the random use of THP without needing to set the tunable.
>>>>
>>>> Cheers,
>>>> Wilco
>>>
>>>  
>>> Didn't found the exact message to reply.. but this one is close enough. MAP_STACK implies no
>>> transparent hugepages since linux kernel commit 
>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c4608d1bf7c6536d1a3d233eb21e50678681564e
>> 
>> It's an odd choice for fixing the regression.  I commented on the
>> linux-mm thread.  It's also surprising to see such changes being made
>> without larger discussion.
>
> Do you have a link for this discussion?

My message is here:

  <https://lore.kernel.org/all/878r46ym4b.fsf@oldenburg.str.redhat.com/>

Thanks,
Florian



More information about the Libc-alpha mailing list