glibc enables a per-thread cache for malloc()

Andreas Schneider asn at samba.org
Fri Jul 7 14:01:21 UTC 2017


"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                             asn at samba.org
www.samba.org



More information about the samba-technical mailing list