[zeromq-dev] how to running perftest between two machines
Pavol Malosek
malosek at fastmq.com
Fri Aug 14 09:27:36 CEST 2009
Hello,
Here is the doc
http://zeromq.wdfiles.com/local--files/area:docs-v06/zmq-tests.pdf
Your host A: 192.168.10.1
host B: 192.168.10.2
Throughput test zmq-1.0.0:
Have a look into perf/tests/scenarios/thr.hpp file, there is diagram of
messages flow, the idea to realize is that local side has to be able to
receive and send messages (there is sync message at the end of the test)
therefore local side needs to run global queue and global exchange as well.
Otherwise only global queue for thr. test would be enough.
Global objects from TCP/IP point of view are simple listeners where remote
clients are connecting - so one has to define interface to listen at.
1. start zmq_server on host A
$zmq_server
2. start local_thr on host A, parameters are <hostname> <exchange interface>
<queue interface> <message size> <message count>
hostname - zmq_server address, zmq_server runs on the same host so you
can use loopback
exchange interface - interface where sync message is send, listener will
be listening for incoming connection at 192.168.10.1
queue interface - where messages from the test are received, the same as
exchange 192.168.10.1
msg size and msg count - 1msg 1B
$local_thr localhost 192.168.10.1 192.168.10.1 1 1
3. start remote_thr on host B, parameters are <hostname> <message size>
<message count>
hostname - zmq_server address, host A 192.168.10.1
msg size and msg count - 1msg 1B
$remote_thr 192.168.10.1 1 1
HTH
malo
>----- Original Message -----
>From: "lovec pc" <pclovec at gmail.com>
>To: "Pavol Malosek" <malosek at fastmq.com>
>Sent: Thursday, August 13, 2009 5:10 AM
>Subject: Re: [zeromq-dev] how to running perftest between two machines
>
>hi, Pavol
>
>i only want to test the performance between on my two
>machine.could you please give me some summary to explan how to do it
>
>one machine is 192.168.10.1
>another machine is 192.168.10.2
>
>they are both opensuse 11.1 linux,
>
>thanks very much.
>
More information about the zeromq-dev
mailing list