[zeromq-dev] ZMQ 2.1.0 and OpenPGM Memory Usage

Martin Sustrik sustrik at 250bpm.com
Mon Dec 6 14:28:16 CET 2010


Hi Bob,

>     Underlying library (OpenPGM) accepts the value in granularity of
>     seconds.
>
>     Steven, is there any rationale for that?
>
>
> I think I remember querying about it before.  Seconds is an easy default
> option to use until someone really needs anything else.  Now someone is
> asking for it.
>
> Easy workaround is to calculate the buffer size in sequence numbers in
> 0MQ and pass that onto OpenPGM.  Then you can export socket options for
> 0MQ to set the buffer size in seconds, milliseconds, etc.
>
> int sqns = (secs * max_rte) / tpdu_size;
> pgm_setsockopt (sock, IPPROTO_PGM, PGM_TXW_SQNS, &sqns, sizeof (sqns));

This seems like a viable solution. Does that work for you?

Martin



More information about the zeromq-dev mailing list