[zeromq-dev] according zmq test documentation seems doesn't work for 1.0 version
lovec pc
pclovec at gmail.com
Thu Aug 13 17:54:54 CEST 2009
i refer to this documentation and try to test ZMQ performance but
seems doesn't work
http://www.zeromq.org/code:tests-zmq-v05
linux-r7dw:/opt/zmq-1.0.0/perf/tests/zmq # ./local_thr 192.168.10.1
eth1 eth1 6 500000 1
Usage: local_thr <hostname> <exchange interface> <queue interface>
<message size> <message count>
linux-r7dw:/opt/zmq-1.0.0/perf/tests/zmq #
seems the parameter‘s count is not correct
so i change to running
linux-r7dw:/opt/zmq-1.0.0/perf/tests/zmq # ./local_thr 192.168.10.1
eth1 eth1 6 50000
message size: 6 [B]
message count: 50000
lt-local_thr: ip.cpp:207: void zmq::resolve_nic_name(in_addr*, const
char*): Assertion `rc != 0' failed.
Aborted
linux-r7dw:/opt/zmq-1.0.0/perf/tests/zmq # ./local_thr
192.168.10.1192.168.10.1 192.168.10.1 6 50000
message size: 6 [B]
message count: 50000
Cannot assign requested address
rc == 0 (tcp_listener.cpp:160)
Aborted
linux-r7dw:/opt/zmq-1.0.0/perf/tests/zmq #
do i miss something
=========================
All binaries used in the tests (except zmq_server) are located in
perf/tests/zmq directory.
First start zmq_server on local host (10.0.0.1):
$ zmq_server
Note that zmq_server uses default port of 5682.
Throughput test
To run the throughput test with messages 6 B long and 500000 messages
in the test with single message stream involved first start the
local_thr binary on local host (10.0.0.1). Parameters are hostname of
zmq_server, IP address or name of local network interface to use for
exchange, IP address or name of local network interface to use for
queue, message size [B], number of messages in the test and number of
message streams used for transferring test messages:
$ ./local_thr 10.0.0.1 eth1 eth1 6 500000 1
Then start the remote_thr binary on the remote machine (10.0.0.2).
Parameters are the hostname of zmq_server, message size [B], number of
messages in the test and number of message streams to use:
$ ./remote_thr 10.0.0.1 6 500000 1
Following text should appear on the screen where local_thr runs:
threads: 1
message size: 6 [B]
message count: 500000
Your average throughput is 3523931 [msg/s]
Your average throughput is 169 [Mb/s]
After successful test execution tests.dat file should be created /
appended on local host. Refer to the Postprocessing chapter in the
throughput scenario documentation for more details about tests.dat
file format.
======================================================
More information about the zeromq-dev
mailing list