mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Problem: PGM doc missing info on high data rates
Solution: Include a new section on configuring both ZMQ and the host OS tx/rx buffers to facilitate sending large messages at a high data rate with the PGM protocol.
This commit is contained in:
parent
840b9ba4fa
commit
940f54e7ce
@ -130,6 +130,30 @@ Third datagram payload
|
||||
....
|
||||
|
||||
|
||||
CONFIGURATION
|
||||
-------------
|
||||
|
||||
The PGM is protocol is capable of multicasting data at high rates (500Mbps+)
|
||||
with large messages (1MB+), however it requires setting the relevent ZMQ socket
|
||||
options that are documented in linkzmq:zmq_setsockopt[3]:
|
||||
|
||||
* The 'ZMQ_RATE' should be set sufficiently high, e.g. 1Gbps
|
||||
* The 'ZMQ_RCVBUF' should be increased on the subscriber, e.g. 4MB
|
||||
* The 'ZMQ_SNDBUF' should be increased on the publisher, e.g. 4MB
|
||||
|
||||
It's important to note that the 'ZMQ_RCVBUF' and 'ZMQ_SNDBUF' options are
|
||||
limited by the underlying host OS tx/rx buffer size limit. On linux, these can
|
||||
be increased for the current session with the following commands:
|
||||
|
||||
....
|
||||
# set tx/rx buffers to 4MB (default can also be read as the initial buffer size)
|
||||
sudo sysctl -w net.core.rmem_max=4194304
|
||||
sudo sysctl -w net.core.wmem_max=4194304
|
||||
sudo sysctl -w net.core.rmem_default=4194304
|
||||
sudo sysctl -w net.core.wmem_default=4194304
|
||||
....
|
||||
|
||||
|
||||
EXAMPLE
|
||||
-------
|
||||
.Connecting a socket
|
||||
|
Loading…
x
Reference in New Issue
Block a user