<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 2, 2016 at 12:03 PM, Atin Mukherjee <span dir="ltr">&lt;<a href="mailto:atin.mukherjee83@gmail.com" target="_blank">atin.mukherjee83@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"></p>
<p dir="ltr">-Atin<br>
Sent from one plus one</p><div><div class="h5"><br>
On Jan 2, 2016 11:52 AM, &quot;Vijay Bellur&quot; &lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On 12/30/2015 10:36 AM, Raghavendra Talur wrote:<br>
&gt;&gt;<br>
&gt;&gt; This is not comprehensive data but some interesting bits<br>
&gt;&gt;<br>
&gt;&gt; Average time taken for various commands in our .t files.<br>
&gt;&gt;<br>
&gt;&gt; * glusterd - 2 second<br>
&gt;&gt; * gluster vol start/stop - 3 second<br>
&gt;&gt; * gluster vol set/info(any basic gluster cli command) -1 second<br>
&gt;&gt; * gluster mount - 2 second<br>
&gt;&gt; * gluster add brick - 2 second<br>
&gt;&gt; * gluster remove brick - 5 second<br>
&gt;&gt; * gluster rebalance start 5 second<br>
&gt;&gt; * gluster tier attach/detach - 6 second<br>
&gt;&gt;<br>
&gt;&gt; The only other single command which takes 1+ second is sleep. Most of<br>
&gt;&gt; the other<br>
&gt;&gt; external commands we use in bash scripts are not that time taking.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hence,<br>
&gt;&gt;<br>
&gt;&gt; 1. Don&#39;t stop/delete a gluster volume in .t file unless it is part of<br>
&gt;&gt; your test. Let the cleanup function handle that.<br>
&gt;&gt; 2. Don&#39;t call gluster vol info at the start of the test if not required<br>
&gt;&gt; 3. Merge as many tests as possible to reduce glusterd starts/vol starts<br>
&gt;&gt; and mounts.<br>
&gt;&gt; 4. Use sleep only if it is absolutely required.<br>
&gt;&gt;<br>
&gt;&gt; You can use this bug <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1294826" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1294826</a><br>
&gt;&gt; to send patches to improve test times.<br>
&gt;&gt;<br>
&gt;<br>
&gt; Thank you! These are good set of steps that can help in reducing the overall time consumed for a regression test run. I also think the larger latencies observed in volume operations could be related to the the set of fsync()s involved in making configuration state durable in glusterd&#39;s store. It would be interesting to see if we can use a ramdisk for /var/lib/glusterd and check if the latencies would improve.<br></div></div>
That&#39;s a good suggestion. It&#39;d definitely improve the latency.<br></blockquote><div><br></div><div>Tried this.</div><div>I saw improvement of 1 second with commands which took over 4 second. May be there is something else which is taking more time?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt;<br>
&gt; Regards,<br>
&gt; Vijay<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-devel mailing list<br>
&gt; <a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
<p></p>
</blockquote></div><br></div></div>