<div>Fascinating...not sure if the subject has been beaten to death yet, but, my results are somewhat different.</div><div><br></div><div>The following are on Windows 7 X64:</div><div>------------------------------------------------------------------------------------------------------------------------------------------</div>
<div>Fixed send and receive buffers at 65535:</div><div><br></div><div>c:\AMQP\RabbitMQ\rabbitmq-java-client-1.7.1\test\src>java -server com.rabbitmq.e</div><div>xamples.MulticastMain -hlocalhost -p5672 -a -z 60 -i 10 -s 1024 -r 12000</div>
<div>starting consumer #0</div><div>starting producer #0</div><div>recving rate: 4095 msg/s, min/avg/max latency: 449/489755/1646688 microseconds</div><div>sending rate: 4849 msg/s</div><div>recving rate: 5395 msg/s, min/avg/max latency: 1566/374119/1485288 microseconds</div>
<div>sending rate: 5226 msg/s</div><div>recving rate: 4620 msg/s, min/avg/max latency: 785/299498/1330197 microseconds</div><div>sending rate: 5176 msg/s</div><div>recving rate: 5137 msg/s, min/avg/max latency: 918/381703/1385686 microseconds</div>
<div>sending rate: 5357 msg/s</div><div>recving rate: 5873 msg/s, min/avg/max latency: 379/445433/1677491 microseconds</div><div>sending rate: 5192 msg/s</div><div>recving rate: 5274 msg/s, min/avg/max latency: 426/244059/1061180 microseconds</div>
<div>recving rate avg: 5193 msg/s</div><div>sending rate avg: 5211 msg/s</div><div>------------------------------------------------------------------------------------------------------------------------------------------<br>
</div><div>This is with no buffers specified on the same machine:</div><div><br></div><div><div>c:\AMQP\RabbitMQ\rabbitmq-java-client-1.7.1\test\src>java -server com.rabbitmq.e</div><div>xamples.MulticastMain -hlocalhost -p5672 -a -z 60 -i 10 -s 1024 -r 12000</div>
<div>starting consumer #0</div><div>starting producer #0</div><div>recving rate: 3302 msg/s, min/avg/max latency: 6666/493540/1274826 microseconds</div><div>sending rate: 3461 msg/s</div><div>recving rate: 3696 msg/s, min/avg/max latency: 6462/270603/1022742 microseconds</div>
<div>sending rate: 3688 msg/s</div><div>recving rate: 3684 msg/s, min/avg/max latency: 707/903615/2256495 microseconds</div><div>sending rate: 3836 msg/s</div><div>recving rate: 3923 msg/s, min/avg/max latency: 801/387877/1060920 microseconds</div>
<div>sending rate: 4052 msg/s</div><div>recving rate: 3594 msg/s, min/avg/max latency: 2566/253710/1099121 microseconds</div><div>sending rate: 3473 msg/s</div><div>recving rate: 3900 msg/s, min/avg/max latency: 2045/308265/658904 microseconds</div>
<div>recving rate avg: 3708 msg/s</div><div>sending rate avg: 3715 msg/s</div></div><div><br></div>------------------------------------------------------------------------------------------------------------------------------------------<br>
<div class="gmail_quote">On Mon, Feb 8, 2010 at 13:24, Matthew Sackman <span dir="ltr"><<a href="mailto:matthew@lshift.net">matthew@lshift.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Sat, Feb 06, 2010 at 04:32:35AM +0100, Holger Hoffstaette wrote:<br>
> This rabbit hole goes deep..<br>
<br>
Indeed it does. I repeated all my tests this morning with the buffers<br>
all hard set to 65536 and things got slightly better with large<br>
messages (~1kB), but worse with small messages.<br>
<br>
I then set up a high latency loopback:<br>
# tc qdisc add dev lo root netem delay 100ms 20ms distribution pareto loss 0.01%<br>
<br>
So a 100ms delay, ±20ms on a pareto distribution, with 0.01% packet<br>
loss.<br>
<br>
With our default buffer sizes:<br>
rabbitmq-java-client/build/dist$ sh runjava.sh com/rabbitmq/examples/MulticastMain -a -z 60 -i 10 -s 1024 -r 12000<br>
starting consumer #0<br>
starting producer #0<br>
recving rate: 8 msg/s, min/avg/max latency: 207432/3279948/6437079 microseconds<br>
sending rate: 322 msg/s<br>
recving rate: 13 msg/s, min/avg/max latency: 6437120/11372211/16522991 microseconds<br>
sending rate: 14 msg/s<br>
recving rate: 14 msg/s, min/avg/max latency: 16522969/21456014/26551356 microseconds<br>
sending rate: 13 msg/s<br>
recving rate: 13 msg/s, min/avg/max latency: 26551374/31650558/36685934 microseconds<br>
sending rate: 13 msg/s<br>
recving rate: 13 msg/s, min/avg/max latency: 36687449/41818269/46842999 microseconds<br>
sending rate: 13 msg/s<br>
recving rate: 13 msg/s, min/avg/max latency: 46851173/51931717/56934090 microseconds<br>
recving rate avg: 13 msg/s<br>
sending rate avg: 67 msg/s<br>
<br>
With buffers set to 65536 and 65536:<br>
recving rate: 180 msg/s, min/avg/max latency: 220489/3300700/6318430 microseconds<br>
sending rate: 648 msg/s<br>
recving rate: 286 msg/s, min/avg/max latency: 6318355/10433052/12858930 microseconds<br>
sending rate: 256 msg/s<br>
recving rate: 264 msg/s, min/avg/max latency: 12676703/13635080/14137168 microseconds<br>
sending rate: 294 msg/s<br>
recving rate: 282 msg/s, min/avg/max latency: 12437468/13308885/14238964 microseconds<br>
sending rate: 275 msg/s<br>
recving rate: 272 msg/s, min/avg/max latency: 12971076/13367869/13966905 microseconds<br>
sending rate: 262 msg/s<br>
recving rate: 251 msg/s, min/avg/max latency: 13644724/14051244/14746586 microseconds<br>
recving rate avg: 265 msg/s<br>
sending rate avg: 332 msg/s<br>
<br>
With no buffers set (thus allowing auto resizing to take place):<br>
recving rate: 1012 msg/s, min/avg/max latency: 196813/2498703/3712777 microseconds<br>
sending rate: 6146 msg/s<br>
recving rate: 6104 msg/s, min/avg/max latency: 2782802/4983136/5602666 microseconds<br>
sending rate: 10466 msg/s<br>
recving rate: 9649 msg/s, min/avg/max latency: 5440633/5971475/6431049 microseconds<br>
sending rate: 10637 msg/s<br>
recving rate: 9970 msg/s, min/avg/max latency: 6204889/6718248/7106264 microseconds<br>
sending rate: 6681 msg/s<br>
recving rate: 9535 msg/s, min/avg/max latency: 3934919/4661861/7229773 microseconds<br>
sending rate: 10795 msg/s<br>
recving rate: 8960 msg/s, min/avg/max latency: 4055794/4703495/5892391 microseconds<br>
recving rate avg: 7755 msg/s<br>
sending rate avg: 9121 msg/s<br>
<br>
Needless to say, my flabber has been ghasted. Many thanks for bringing<br>
this issue to our attention. Unless there are further revelations, it's<br>
very likely we'll remove this setting in the next release.<br>
<div><div></div><div class="h5"><br>
Matthew<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>---<br>John Apps<br>(49) 171 869 1813<br>