[prev in list] [next in list] [prev in thread] [next in thread]
List: zeromq-dev
Subject: Re: [zeromq-dev] ROUTER and Credit-Based Flow Control
From: Charles Remes <lists () chuckremes ! com>
Date: 2014-08-21 22:08:31
Message-ID: 04C0E41C-4537-4C93-98FB-49DE82780680 () chuckremes ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Ha, I love those eureka moments! I wish I had more of them…
cr
On Aug 21, 2014, at 3:39 PM, Gabriel Sanchez <gave2000@gmail.com> wrote:
> Of course! I hadn't thought of that. Thanks!
>
> Gabriel
>
>
> On Thu, Aug 21, 2014 at 1:23 PM, Charles Remes <lists@chuckremes.com> wrote:
> If you are using credit-based flow control then you shouldn’t care about the HWM \
> settings. Set them to infinite.
> cr
>
> On Aug 21, 2014, at 1:17 PM, Gabriel Sanchez <gave2000@gmail.com> wrote:
>
> > Hi,
> >
> > I am trying to implement credit-based flow control from Chapter 7 of the guide \
> > using ROUTER-DEALER. However, I am dropping messages on the ROUTER side when \
> > reaching the SNDHWM. If I set the maximum amount of credits to a fraction of the \
> > SNDHWM I don't drop any messages. I checked the code in pipe.cpp and saw that the \
> > reader side of the pipe only notifies the writer when it has read a multiple of \
> > the LWM.
> > Does this mean that if the number of messages written by the ROUTER to a peer \
> > pipe approaches the SNDHWM and in the meantime I get more credits before the \
> > reader reaches the LWM I may drop messages? If so, are there any workarounds? I \
> > was thinking of setting the maximum credit value to SNDHWM - LWM to ensure that \
> > the number of messages written doesn't go above the SNDHWM.
> > I am using libzmq 3.2.3 and I noticed that in newer versions there's a patch for \
> > notifying the application when sending a message to a ROUTER fails.
> > Thanks in advance
> >
> > Gabriel
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev@lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[Attachment #5 (unknown)]
<html><head><meta http-equiv="Content-Type" content="text/html \
charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;">Ha, I love those eureka moments! I \
wish I had more of them…<div><br></div><div>cr</div><div><br><div><div>On Aug 21, \
2014, at 3:39 PM, Gabriel Sanchez <<a \
href="mailto:gave2000@gmail.com">gave2000@gmail.com</a>> wrote:</div><br \
class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Of \
course! I hadn't thought of that. Thanks!<br><br></div>Gabriel<br></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 1:23 PM, \
Charles Remes <span dir="ltr"><<a href="mailto:lists@chuckremes.com" \
target="_blank">lists@chuckremes.com</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">If you are using credit-based flow control then you shouldn’t \
care about the HWM settings. Set them to infinite.<br> <br>
cr<br>
<div><div class="h5"><br>
On Aug 21, 2014, at 1:17 PM, Gabriel Sanchez <<a \
href="mailto:gave2000@gmail.com">gave2000@gmail.com</a>> wrote:<br> <br>
> Hi,<br>
><br>
> I am trying to implement credit-based flow control from Chapter 7 of the guide \
using ROUTER-DEALER. However, I am dropping messages on the ROUTER side when reaching \
the SNDHWM. If I set the maximum amount of credits to a fraction of the SNDHWM I \
don't drop any messages. I checked the code in pipe.cpp and saw that the reader side \
of the pipe only notifies the writer when it has read a multiple of the LWM.<br>
><br>
> Does this mean that if the number of messages written by the ROUTER to a peer \
pipe approaches the SNDHWM and in the meantime I get more credits before the reader \
reaches the LWM I may drop messages? If so, are there any workarounds? I was thinking \
of setting the maximum credit value to SNDHWM - LWM to ensure that the number of \
messages written doesn't go above the SNDHWM.<br>
><br>
> I am using libzmq 3.2.3 and I noticed that in newer versions there's a patch for \
notifying the application when sending a message to a ROUTER fails.<br> ><br>
> Thanks in advance<br>
><br>
> Gabriel<br>
</div></div>> _______________________________________________<br>
> zeromq-dev mailing list<br>
> <a href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a><br>
> <a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" \
target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a><br> <br>
_______________________________________________<br>
zeromq-dev mailing list<br>
<a href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a><br>
<a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev" \
target="_blank">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a><br> \
</blockquote></div><br></div> \
_______________________________________________<br>zeromq-dev mailing list<br><a \
href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a><br>http://li \
sts.zeromq.org/mailman/listinfo/zeromq-dev<br></blockquote></div><br></div></body></html>
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic