[zeromq-dev] ZMQ 2.1.0 and OpenPGM Memory Usage

Martin Sustrik sustrik at 250bpm.com
Fri Dec 3 17:02:41 CET 2010

On 12/03/2010 04:56 PM, Bob Beaty wrote:

>    This is where it gets interesting.
>    Below is the table of ZMQ_RATE size versus the "terminal memory
> footprint" of the application.
> 	bps       ZMQ_RATE     Size (after 2000 ... terminal)
> 	10Mbps      10000         7MB ... 18MB
> 	50Mbps      50000         7MB ... 73MB
> 	200Mbps    200000         7MB ... 280MB
>    At this point I realized that it's not a leak - it's something like a
> buffer growth related to the anticipated need based on the maximum speed.

Isn't it just the TX buffer? The size of PGM's TX buffer can be be 
computed as ZMQ_RATE * ZMQ_RECOVERY_IVL. The messages are held in memory 
even after they are sent to allow retransmission (repair) for the period 
of ZMQ_RECOVERY_IVL seconds.


More information about the zeromq-dev mailing list