From: Patrick McGehearty <patrick.mcgehearty@oracle.com>
To: DJ Delorie <dj@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH v2] Remove upper limit on tunable MALLOC_MMAP_THRESHOLD
Date: Mon, 29 Nov 2021 15:35:36 -0600 [thread overview]
Message-ID: <2fe7ce47-dc7c-e4e6-034b-6548206a8b1b@oracle.com> (raw)
In-Reply-To: <xntufuitho.fsf@greed.delorie.com>
I thought about documentation issues.
The change in behavior for single threaded programs will
match the current documentation more closely. No change needed there.
I decided not to suggest documentation changes for the multi-thread
case as other threads have wanted to avoid tying documentation to
implementation details. If/when we change how MAX_HEAP_SIZE is handled
as described in the next paragraph, the current documentation would
be fine.
Longer term, it probably would be useful to change the max heap
size to be a tunable variable instead of a fixed value.
That change might also have the max heap size changed appropriately
when the MALLOC_MMAP_THRESHOLD is set beyond the default value.
Of course documentation would need to be added about the new
tunable for MAX_HEAP_SIZE.
- patrick
On 11/29/2021 2:42 PM, DJ Delorie wrote:
> Ok, based on all that, I think it's safe to increase the threshold -
> although, given your description, setting it bigger than the mmap'd heap
> size will still be kinda pointless in multi-threaded programs. Safe,
> but pointless.
>
> I wonder if any of these details or caveats need to be documented,
> either in the code or the manual...
>
next prev parent reply other threads:[~2021-11-29 21:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-01 21:48 Patrick McGehearty
2021-11-02 0:27 ` DJ Delorie
2021-11-09 22:33 ` Patrick McGehearty
2021-11-10 0:36 ` DJ Delorie
2021-11-25 0:52 ` Patrick McGehearty
2021-11-29 20:42 ` DJ Delorie
2021-11-29 21:35 ` Patrick McGehearty [this message]
2021-12-07 19:51 ` Patrick McGehearty
2021-12-07 20:35 ` DJ Delorie
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=2fe7ce47-dc7c-e4e6-034b-6548206a8b1b@oracle.com \
--to=patrick.mcgehearty@oracle.com \
--cc=dj@redhat.com \
--cc=libc-alpha@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).