pthreads - Performance issues in Linux Multi-heap Multi-thread application -


we porting multi-process application multi-threaded architecture. have same application running on windows , performant.

for linux using pthread libraries. in order avoid memory contention have custom heaps, each thread having own heap. using mspace custom heap implemention. issue approach causing lot of performance overhead. mspace memory allocations slow compared native malloc. bottleneck. tried hoard allocator worse.

the performance impact due to: 1. cpu switching: see more switching in lwp in normal multi-processes 2. memory allocations: see mspace taking 7 8 times more time normal malloc

is there alternative acheive multi-heap performant in linux?


Comments

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

osx - Copy lines to os x clipboard from vim on remote console -