[erlang-questions] UDP receive performance
Wed Jun 13 23:08:07 CEST 2018
I think I was able to reproduce this problem.
And to me it looks like a bug.
On my system the packet_inet_input is called but the recv call returns eagain.
This isn’t freeing the buffer so the realloc (intended for fragments?) are trigged.
Reallocating the same size buffer again.
The below branch with the below change reduced the reallocs on my linux system.
> On 31 May 2018, at 21:05, Max Lapshin <> wrote:
> It is video, we need to receive packets strictly in order.
> Yes, I know that UDP can reorder and lose packets, but in normal conditions with hardware headend and plain C linux software on receiver it is possible to achieve almost 100% of deliverability of packets without reordering.
> We want to achieve something like this with erlang.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions