<div dir="ltr"><div>Hello, Jeff. <br><br>Thanks for responding so quickly. I&#39;m not familiar with the codebase, so if you don&#39;t mind me asking, how much would that list reordering slow things down for, say, a queue of 1500 client machines? i.e. round-about how long of a client list would significantly affect latency?<br><br></div><div>I only ask because we have quite a few clients and you explicitly call out that the queue reordering method used may have problems for lots of clients.<br></div><div><br>Thanks again,<br></div><div><br></div>Patrick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 12, 2016 at 11:18 AM, Jeff Darcy <span dir="ltr">&lt;<a href="mailto:jdarcy@redhat.com" target="_blank">jdarcy@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">&gt; &gt; * We might be able to tweak io-threads (which already runs on the<br>
&gt; &gt; bricks and already has a global queue) to schedule requests in a<br>
&gt; &gt; fairer way across clients. Right now it executes them in the<br>
&gt; &gt; same order that they were read from the network.<br>
&gt;<br>
&gt; This sounds to be an easier fix. We can make io-threads to factor in another<br>
&gt; input i.e., the client through which request came in (essentially<br>
&gt; frame-&gt;root-&gt;client) before scheduling. That should make the problem<br>
&gt; bearable at-least if not crippling. As to what algorithm to use, I think we<br>
&gt; can consider leaky bucket of bit-rot implementation or dmclock. I&#39;ve not<br>
&gt; really thought deeper about the algorithm part. If the approach sounds ok,<br>
&gt; we can discuss more about algos.<br>
<br>
</span>I&#39;ve created a patch to address the most basic part of this, in the simplest<br>
way I could think of.<br>
<br>
<a href="http://review.gluster.org/#/c/14904/" rel="noreferrer" target="_blank">http://review.gluster.org/#/c/14904/</a><br>
<br>
It&#39;s still running through basic tests, so I don&#39;t even know if it&#39;s really<br>
correct yet, but it should give an idea of the conceptual direction.<br>
</blockquote></div><br></div>