m***@redhat.com
2018-03-27 12:27:20 UTC
Recent glibc improved malloc implementation.
NEWS for version 2.26
How do you measure allocator performance? Any chance to switch to glibc
allocator?
Thanks for answers,
Marek
NEWS for version 2.26
=====================
* A per-thread cache has been added to malloc. Access to the cache requires
no locks and therefore significantly accelerates the fast path to allocate
and free small amounts of memory. Refilling an empty cache requires
locking
the underlying arena. Performance measurements show significant gains in a
wide variety of user workloads. Workloads were captured using a special
instrumented malloc and analyzed with a malloc simulator. Contributed by
DJ Delorie with the help of Florian Weimer, and Carlos O'Donell.
(https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html)
As I understand mongodb suggest using libtcmalloc allocator. Right?* A per-thread cache has been added to malloc. Access to the cache requires
no locks and therefore significantly accelerates the fast path to allocate
and free small amounts of memory. Refilling an empty cache requires
locking
the underlying arena. Performance measurements show significant gains in a
wide variety of user workloads. Workloads were captured using a special
instrumented malloc and analyzed with a malloc simulator. Contributed by
DJ Delorie with the help of Florian Weimer, and Carlos O'Donell.
(https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html)
How do you measure allocator performance? Any chance to switch to glibc
allocator?
Thanks for answers,
Marek
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/25e9f1cb-6250-45c5-b152-3d232203b4d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/25e9f1cb-6250-45c5-b152-3d232203b4d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.