svn commit: r325965 - head/libexec/rtld-elf

Brooks Davis brooks at freebsd.org
Mon Nov 20 21:57:24 UTC 2017


On Sat, Nov 18, 2017 at 01:21:22PM +0000, Edward Tomasz Napierala wrote:
> Author: trasz
> Date: Sat Nov 18 13:21:22 2017
> New Revision: 325965
> URL: https://svnweb.freebsd.org/changeset/base/325965
> 
> Log:
>   Increase rtld initial memory pool size from 32kB to 128kB.
>   
>   The old value was probably fine back in 1998, when that code was imported
>   (although the comments still mention VAX, which was quite obsolete by then);
>   now, however, it's too small to handle our libc, which results in some
>   additional calls to munmap/mmap later on.  Asking for more virtual address
>   space is virtually free, and syscalls are not, thus the change.

Not specificaly about this commit, but a general comment:

The power-of-2 sized buckets used by this allocator are likely suboptimal
both in terms of space use (largely irrelevent in practice) and cache
effects (in particular, unnecessicary false sharing of TLS segments).
There is probably a fair bit of room for optimization here.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20171120/3f31fa3b/attachment.sig>


More information about the svn-src-all mailing list