[erlang-questions] Inter-node communication bottleneck

Dmitry Kolesnikov dmkolesnikov@REDACTED
Thu Aug 21 12:15:32 CEST 2014


Hello,

I am not sure why you are saying that spin-lock do not impact the result.
I saw 25% gain on peak (on both loopback and en0 interfaces).

- Dmitry

On 21 Aug 2014, at 07:05, Jihyun Yu <yjh0502@REDACTED> wrote:

> The problem is reproducable *with loopback interface*. I tested with two
> Erlang instances on same machine, communicating via loopback interface,
> and results are same.
> 
> I changed contented lock - qlock in DistEntry - to spinlock, but it does
> not affact on throughput(messages per second). 'perf' profiling tool [1]
> shows that CPU cycle is moved from kernel to userspace.
> 
> I attach patch and 10-seconds sampling result on mutex and spinlock.
> 
> [1] https://perf.wiki.kernel.org/
> <spinlock.patch><perf_spinlock.report><perf_mutex.report>_______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list