8

Linux Multi-heap Multi-thread application

view full story
linux-howto

http://www.linuxquestions.org – We are porting a multi-process application to multi-threaded architecture. We have the same application running on Windows and it is very performant. For Linux we are using the pthread libraries. In order to avoid memory contention we have custom heaps, each thread having its own heap. We are using mspace for this custom heap implemention. However the issue is that this approach is causing a lot of performance overhead. The mspace memory allocations are very slow as compared to the native malloc. This is the bottleneck. We tried the Hoard allocator but that is much worse. Is there any altern (HowTos)