[zeromq-dev] Apparent queuing on PUB/SUB fan-in despite HWM=1

Brian Rossa rossabri at hotmail.com
Thu May 12 16:05:26 CEST 2011


> Can you post a minimal Python test case, please?
I've eschewed minimalism for realism here. I don't think it will be hard for you guys to reproduce my results, though; I've been tight with the code. Please see the following:zmq_test.py @ http://pastebin.com/wu6pPgTQzmq_test.sh @ http://pastebin.com/1Q8RasY8plot_zmq.py @ http://pastebin.com/NLQfzVYc
A quick explanation of the code: You need to run zmq_test.sh first and pipe its output to a file as in "sh zmq_test.sh > outfile.csv". It sets up a network topology and runs the Python zeromq in a way that's consistent with a real-time video processing system. You can change the test parameters by tweaking the variables at the top of the script. The code in zmq_plot.py will turn the .csv files into pretty graphs.
If the plot script bombs with "TypeError: expected a readable buffer object" it's probably because your .csv file has an incomplete line at the end. Just open the .csv in a text editor and erase the line fragment.
I look forward to hearing about your results.
Cheers!~Brian 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110512/fc380de4/attachment.htm>


More information about the zeromq-dev mailing list