[zeromq-dev] UDP support

Armin Steinhoff armin at steinhoff.de
Sun Jan 31 15:26:49 CET 2010


Hello Martin,

I did locally the following tests on a Linux machine (dual-core, 2.2GHz):

First I send 1000 messages of 1 byte, then 10000 of the same length.
Is the lower performance created by the ethernet driver by buffering of 
messages?

-----------------
Linux-New:/home/Archive/RT-Linux/zeromq-2.0-beta2/perf/c # local_thr 
"udp://192.168.178.126;224.0.0.1:5555" 1 1000
 udp://192.168.178.126;224.0.0.1:5555 1 1000
^[[Amessage size: 1 [B]
message count: 1000
mean throughput: 13333333 [msg/s]
mean throughput: 106.667 [Mb/s]
Linux-New:/home/Archive/RT-Linux/zeromq-2.0-beta2/perf/c # local_thr 
"udp://192.168.178.126;224.0.0.1:5555" 1 10000
 udp://192.168.178.126;224.0.0.1:5555 1 10000
message size: 1 [B]
message count: 10000
mean throughput: 15112 [msg/s]
mean throughput: 0.121 [Mb/s]
--------------------
I don't really understand the results above. Please explain. The test 
below was using 10000 messages with a length of 10 bytes:
--------------
Linux-New:/home/Archive/RT-Linux/zeromq-2.0-beta2/perf/c # local_thr 
"udp://192.168.178.126;224.0.0.1:5555" 10 10000
 udp://192.168.178.126;224.0.0.1:5555 10 10000 
----------------
->  local_thr doesn't terminate.  It seems we are loosing messages ?

Best Regards

Armin Steinhoff


Martin Sustrik wrote:
> Hi Armin,
>
>   
>>> I have tried to run the examples* local_lat* and *remote_lat*  with UPD 
>>> but got always the return code 93 -> Protocol not supported.
>>>       
>
> I know! The problem is that UDP is actually UDP encapsulation of PGM 
> reliable multicast protocol. So to have it available you have to specify 
> --with-pgm when doing configure.
>
> One more comment: Latency tests use request/reply sockets which, quite 
> naturally, don't work over multicast. So you'll end up with error 
> anyway. The throughput tests should work though.
>
> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100131/fe520d94/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Attached Message Part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100131/fe520d94/attachment.ksh>


More information about the zeromq-dev mailing list