[zeromq-dev] queue limits

Pavel Gushcha pavimus at gmail.com
Tue Sep 22 16:10:43 CEST 2009


I changed lwm to 5, hwm to 10, and things doesn't change (20000 sent
messages before block, 100mb of ram for display.cpp and propmt.cpp). Is
there any method to decrease amount of sent messages before blocking (in my
case each message may have size of 1megabyte)?

2009/9/22 Martin Sustrik <sustrik at fastmq.com>

> Pavel Gushcha wrote:
>
>> I tried to use queue limits in my development. When i send messages
>> between different api_thread_t all works as i except. But with sending
>> messages over network i get some problems. My testcase:
>> 1) prompt.cpp creates global exchange and sends about 100k messages (10000
>> bytes each).
>> 2) display.cpp creates local queue with hwm 5/lwm 5, and binds it to
>> global exchange. After that display.cpp wait user input and is not receiving
>> messages.
>>
>
> Lwm has to be lower than hwm. We should actually report an error when
> hwm<=lwm. Also, to avoid excessive blocking you should keep the difference
> between hwm and lwm reasonably large - say hwm=10000, lwm=5000.
>
> Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090922/f29f04a2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: display.cpp
Type: text/x-c++src
Size: 1392 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090922/f29f04a2/attachment.cpp>


More information about the zeromq-dev mailing list