[zeromq-dev] LMAX/Distruptor code project

Martin Sustrik sustrik at 250bpm.com
Thu Oct 6 18:26:39 CEST 2011


On 10/06/2011 06:15 PM, Steven McCoy wrote:
> On 6 October 2011 12:02, Francois Saint-Jacques <fsaintjacques at gmail.com
> <mailto:fsaintjacques at gmail.com>> wrote:
>
>     IMHO, considering the fact that zmq is already using pre-allocated
>     arrays in yqueues and that it's a 1-producer/1-consumer scenario, I
>     don't think you will get a performance boost by using the disruptor
>     pattern.

That's my feeling as well, however, if anyone wants to try it, go for it.

One possible benefit would be to offload the maintenance of the 
lock-free algos to the separate project and thus take advantage of the 
development/patches done by unrelated 3rd parties.

> The only low level details that are different would be cache line
> padding, such that the following would probably help:

> Didn't Martin try this already?

Yes. We've tried that. Nobody was able to demostrate any improvement in 
performance though, so we haven't applied the patch.

Martin



More information about the zeromq-dev mailing list