<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>There are no cross platform & erlangish way to detect it. </div><div>On linux platform kernel maintains various counters including drop ratio at /proc/<pid>/net/udp</div><div><br></div><div>I do not see a reason why your application should look into that metric. Since, udp is not reliable by nature only e2e flow control make sense. If you are just worried about a local instance then I would propose to use bandwidth as a flow control metric. In this respect a inet:getstat(Socket) is enough <a href="http://erldocs.com/R14B02/kernel/inet.html?i=10&search=inet:get#getstat/2">http://erldocs.com/R14B02/kernel/inet.html?i=10&search=inet:get#getstat/2</a></div><div><br></div><div><br></div><div>- Dmitry</div><div><br><div><div>On Jun 2, 2012, at 11:47 AM, Arun Muralidharan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Yes Torben, you are correct about the question. But how would I check if my application is pushing the machine too hard. As UDP is "send and forget" as said by Tim, so does the performance of UDP send really comes down to the performance of kernel/machine not the application ?<div>
<br></div><div>Thanks<br clear="all">-A<br>
<br><br><div class="gmail_quote">On Sat, Jun 2, 2012 at 1:09 PM, Torben Hoffmann <span dir="ltr"><<a href="mailto:torben.lehoff@gmail.com" target="_blank">torben.lehoff@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Tim, you are correct about the 'fire and forget', but that is only for the part outside your own machine.<br>
<br>
The original poster wanted to know if the message really got sent or got dropped in his own machine.<br>
Which actually poses a question in my head: what does it matter where the message was lost?<br>
The only reason I can think of right now is to control load on your own kernel and slow down if you are pushing your machine too hard.<br>
Perhaps the original poster can clarify?<br>
<br>
Cheers,<br>
Torben<div class="HOEnZb"><div class="h5"><br>
<br>
On 02/06/2012 07:29, Tim McNamara wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Others can correct me.<br>
<br>
AFAIK UDP is 'fire and forget'. You don't get the opportunity to check<br>
whether the message was received, or even if there was someone there<br>
to receive it.<br>
<br>
<br>
On 2 June 2012 17:18, Arun Muralidharan<<a href="mailto:arun11299@gmail.com" target="_blank">arun11299@gmail.<u></u>com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A Remider. :) (As per Joe's suggestion on unanswered questions)<br>
-Arun<br>
<br>
<br>
On Thu, May 31, 2012 at 10:34 PM, Arun Muralidharan<<a href="mailto:arun11299@gmail.com" target="_blank">arun11299@gmail.<u></u>com</a>><br>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Folks!<br>
Is there any way to detect if the packet sent by issuing the statement<br>
"gen_udp:send" is really sent or got dropped because of buffer overflow in<br>
the kernel .<br>
I am using UDP socket with one of the option set as active once and both<br>
send and receive buffer set to 2MB.<br>
<br>
<br>
Thanks,<br>
-A<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
<a href="http://www.linkedin.com/in/torbenhoffmann" target="_blank">http://www.linkedin.com/in/<u></u>torbenhoffmann</a><br>
<br>
</font></span></blockquote></div><br></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>