glibc enables a per-thread cache for malloc()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

glibc enables a per-thread cache for malloc()

Samba - samba-technical mailing list
"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."


https://www.phoronix.com/scan.php?page=news_item&px=glibc-malloc-thread-cache


--
Andreas Schneider                   GPG-ID: CC014E3D
Samba Team                             [hidden email]
www.samba.org

Loading...