[erlang-questions] exec-port crashing

Serge Aleynikov serge@REDACTED
Fri Dec 4 05:44:27 CET 2015


Though this does depend on whether one is measuring throughput vs.
latency.  Generally, TCP would always be more latent than pipes on Linux
since pipes marshaling doesn't need to go through the TCP stack, which adds
penalty.  As you correctly observed, UNIX domain sockets, don't involve
that overhead, and have latency performance comparable to pipes, but
throughput better than pipes.

On Thu, Dec 3, 2015 at 2:19 AM, Michael Truog <mjtruog@REDACTED> wrote:

> On 12/02/2015 10:20 PM, Max Lapshin wrote:
>
>>
>> Sergey, have you compared TCP localhost vs stdin/stdout pipe?
>> Throughput and latency.
>>
>> TCP on localhost should be better due to the atomic send
> being limited by the MTU on the localhost interface
> which is normally 16436 on Linux, when compared to the
> atomic send on a pipe being limited by PIPE_BUF which
> is normally 4096.  There is a definite improvement
> when using UNIX domain sockets instead of INET domain
> sockets, so hopefully
> https://github.com/erlang/otp/pull/612 will make its
> way in sometime.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151203/c0b4aa85/attachment.htm>


More information about the erlang-questions mailing list