[rabbitmq-discuss] Huge latency in Linux, compared with Leopard

Bogon Choi bogon.choi at gmail.com
Fri Sep 26 19:37:28 BST 2008


That was my mistake, though. The result is same.
I am figuring out why two systems have huge latency gap. Thanks.



Martin Sustrik wrote:
> 
> I would say you are actually measuring how long printing of timestamp 
> takes rather than latency of RabbitMQ itself :)
> 
> Try to acquire timestamp first, then send the message then print the 
> timestamp.
> 
> Martin
> 
> Bogon Choi wrote:
>> I tested very basic end-to-end latency of RabbitMQ 1.4.0 on Mac OS X
>> Leopard
>> and RHET Linux.
>> 
>> A publisher prints out a timestamp right before it publishes a message,
>> and
>> a subscriber receives the messages and prints out a timestamp. Every 3
>> second one process published a 1KB message. This is the very basic and
>> easy
>> latency test I am always doing before I deploy systems.
>> 
>> But, the result was surprisingly comic.
>> 
>> Mac OS X Leopard: 4 milliseconds average latency from a publisher to a
>> subscriber
>> RHET5 Linux: 40.55 milliseconds average latency from a publisher to a
>> subscriber
>> 
>> I am using Erlang R12B-4, and compiled it from "./configure" and "make".
>> There was an error like a "JInterface" and "ODBC" stuffs at configuring
>> from
>> Linux. I just ignored it.
>> All publisher, server, and subscriber were running at the same machine.
>> So,
>> we can ignore the network delay on this test.
>> 
>> I tried also from Ubuntu 8.1 and its latency was also 40.55 milliseconds.
>> What is wrong with between Linux and Erlang?
> 
> 
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-Huge-latency-in-Linux%2C-compared-with-Leopard-tp19693265p19694142.html
Sent from the RabbitMQ mailing list archive at Nabble.com.





More information about the rabbitmq-discuss mailing list