[rabbitmq-discuss] Huge latency in Linux, compared with Leopard
Bogon Choi
bogon.choi at gmail.com
Sat Sep 27 06:47:02 BST 2008
I am using RabbitMQ Java library to talk with RabbitMQ Server. So, on the
client side, I don't have any erlang options.
On the server side, I use default options already provided by RabbitMQ.
ERL_ARGS="+K true +A30 -kernel inet_default_listen_options
[{sndbuf,16384},{recbuf,4096}]"
Both machines are using above options when RabbitMQ Server runs. I didn't
change anything.
Edwin Fine-3 wrote:
>
> Will you post your erl command line for the Erlang node running the Rabbit
> Erlang client, on MacOS and Linux? I am curious to see the options you are
> using.
> If you were able to post the code too, that would be interesting.
>
> On Fri, Sep 26, 2008 at 2:37 PM, Bogon Choi <bogon.choi at gmail.com> wrote:
>
>>
>> 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.
>>
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>>
>
> _______________________________________________
> 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-tp19693265p19699943.html
Sent from the RabbitMQ mailing list archive at Nabble.com.
More information about the rabbitmq-discuss
mailing list