<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I don’t think that would make any difference, since the packets never show up in the message stack, anyway.<div><br></div><div>Lee</div><div><br></div><div><br><div><div>On 30 Jul 2014, at 20:16, Andrei Dziahel <<a href="mailto:develop7@develop7.info">develop7@develop7.info</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-size:13px">Do you think fetching packets from passive socket (created with {active, false}) with gen_udp:recv (in separate process ofc) would help prevent packet drops?</span><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 10:06 PM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">I've spent lot of time to make capturing of 600 mbit/s of udp traffic without loss.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Don't specify buffer size in erlang, use system variables.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><pre style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:13px;white-space:pre-wrap;padding:15px 30px;margin-top:0px;margin-bottom:30px;line-height:18.571430206298828px;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;border:1px solid rgb(191,191,191)">
<code style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:inherit;padding:0px;color:inherit;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;background-color:transparent"><br>
sysctl -w net.core.rmem_max=1048576
sysctl -w net.core.rmem_default=1048576
sysctl -w net.ipv4.udp_mem="8388608 12582912 16777216"</code></pre></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<div>Andrei Dziahel</div>
</div>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br></div></body></html>