[erlang-questions] Gen_UDP Packet Loss

Andrei Dziahel develop7@REDACTED
Wed Jul 30 21:16:03 CEST 2014


you also could check last column of `cat /proc/net/udp` output


On Wed, Jul 30, 2014 at 10:12 PM, Jesper Louis Andersen <
jesper.louis.andersen@REDACTED> wrote:

> There are two buffers here. The kernel has a buffer and the Erlang VM has
> a buffer. You are setting the Erlang VMs buffers only. If the kernels
> buffer fills up, it drops packets, because it is allowed to do so with UDP
> (UDP is not reliable). Linux doesn't have too many easy ways to see this.
> But you can do netstat -c --udp -an and watch for large recv-q's.
>
>
> On Wed, Jul 30, 2014 at 9:09 PM, Lee Sylvester <lee.sylvester@REDACTED>
> wrote:
>
>> Thanks.  How does that make a difference over setting it in the app,
>> though?
>>
>> Thanks,
>> Lee
>>
>>
>> On 30 Jul 2014, at 20:06, Max Lapshin <max.lapshin@REDACTED> wrote:
>>
>> I've spent lot of time to make capturing of 600 mbit/s of udp traffic
>> without loss.
>>
>> Don't specify buffer size in erlang, use system variables.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> sysctl -w net.core.rmem_max=1048576
>> sysctl -w net.core.rmem_default=1048576
>> sysctl -w net.ipv4.udp_mem="8388608 12582912 16777216"
>>
>>
>>
>
>
> --
> J.
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>


-- 
Regards,
Andrei Dziahel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140730/e32e809e/attachment.htm>


More information about the erlang-questions mailing list