Mesa Looks At Switching To Jemalloc For Faster Performance

Written by Michael Larabel in Mesa on 29 September 2016 at 09:15 AM EDT. 53 Comments
MESA
Marek Olšák is looking at using the jemalloc memory allocator for faster GLSL compilation and ultimately could redirect all malloc/calloc/realloc/free calls in Mesa to using jemalloc.

Jemalloc is a memory allocator designed to be very scalable and is notably used within Firefox, FreeBSD, and many other deployments elsewhere -- including at Facebook. Marek realized that the time of compiling shaders from GLSL to GCN bytecode could be reduced by about 10% if switching from using glibc to jemalloc for memory allocations. Those wishing to learn more about jemalloc can see the GitHub page.

With being ~10% quicker for GLSL compilation, Marek is looking at potentially redirecting all of the memory allocation calls to using jemalloc. The RFC patch for introducing jemalloc in Mesa can be found via the Mesa-dev mailing list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week