Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: with memory manager to use for multithread application?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Nov 11, 2015 10:27 AM Last Post By: William Egge
loki loki

Posts: 765
Registered: 7/1/02
with memory manager to use for multithread application?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 31, 2015 8:26 AM
Hello,

We know that fastmm4 is not very powerfull on multithread environnement.
what memory manager replacement you can suggest me to use in production server instead of FastMM4 ?
i think about using scalemm2 but i m not sure if it's very stable.

i also notice that most string assignment use LOCK asm instruction even to dec/inc their refcount,
LOCK asm behave like a criticalsection, making the use of string in multithread application not very powerfull :(
is it really matter ? hard to bench it ... but i would like to hear your opinion :)
William Egge

Posts: 98
Registered: 11/29/06
Re: with memory manager to use for multithread application?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 11, 2015 10:27 AM   in response to: loki loki in response to: loki loki
I would like to know too. In my testing I found that creation of objects kills the multi threading performance, the CPU is maxed out but has the same performance as single thread. Probably a false sharing issue.

In general, I try to stay away from memory allocations where multi threaded performance is needed. Use buffers instead.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02