public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Carlos O'Donell <carlos@redhat.com>
To: Alejandro Colomar <alx@kernel.org>,
	Helge Kreutzmann <debian@helgefjell.de>
Cc: mario.blaettermann@gmail.com, linux-man@vger.kernel.org
Subject: Re: Issue in man page PR_SET_SECUREBITS.2const
Date: Mon, 25 Aug 2025 13:52:03 -0400	[thread overview]
Message-ID: <8ed88109-2dd4-4d26-ba5d-32bbf7cb2906@redhat.com> (raw)
In-Reply-To: <lnh4f63q5onlj54wt7qg76unbcvu5apinualih4byiatrfvjpv@5r53xpupbjws>

On 8/24/25 3:21 PM, Alejandro Colomar wrote:
> Hi Helge,
> 
>> Subject: Re: Issue in man page PR_SET_SECUREBITS.2const
> 
> You probably meant PR_SET_THP_DISABLE.2const.  The text you quoted is
> there:
> 
> 	$ grep -rn THP.disable
> 	man/man2const/PR_SET_THP_DISABLE.2const:9:set the state of the "THP disable" flag for the calling thread
> 	man/man2const/PR_SET_THP_DISABLE.2const:21:Set the state of the "THP disable" flag for the calling thread.
> 	man/man2const/PR_SET_THP_DISABLE.2const:32:The setting of the "THP disable" flag is inherited by a child created via
> 	man/man2const/PR_GET_THP_DISABLE.2const:9:get the state of the "THP disable" flag for the calling thread
> 	man/man2const/PR_GET_THP_DISABLE.2const:22:the "THP disable" flag for the calling thread:
> 
> On Sun, Aug 24, 2025 at 02:48:48PM +0000, Helge Kreutzmann wrote:
>> Without further ado, the following was found:
>>
>> Issue:    malloc → B<malloc>(3) ?
> 
> Maybe, but we should probably add a reference to malloc_hook(3) instead?

In a modern system you care about malloc not malloc_hook.

The hooks have been removed and glibc has directly integrated THP usage in malloc instead.

https://sourceware.org/glibc/manual/2.42/html_node/Memory-Allocation-Tunables.html

Tunable: glibc.malloc.hugetlb

-- 
Cheers,
Carlos.


  parent reply	other threads:[~2025-08-25 17:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-24 14:48 Issue in man page PR_SET_SECUREBITS.2const Helge Kreutzmann
2025-08-24 19:21 ` Alejandro Colomar
2025-08-25 16:11   ` Helge Kreutzmann
2025-08-25 17:52   ` Carlos O'Donell [this message]
2025-08-25 19:41     ` Alejandro Colomar
2025-08-25 20:00       ` Carlos O'Donell
2025-08-31  9:19         ` Alejandro Colomar
  -- strict thread matches above, loose matches on Subject: below --
2025-08-24 14:48 Helge Kreutzmann
2025-08-24 19:25 ` Alejandro Colomar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8ed88109-2dd4-4d26-ba5d-32bbf7cb2906@redhat.com \
    --to=carlos@redhat.com \
    --cc=alx@kernel.org \
    --cc=debian@helgefjell.de \
    --cc=linux-man@vger.kernel.org \
    --cc=mario.blaettermann@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox