<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 01/02/2016 10:11 PM, Raghavendra
      Talur wrote:<br>
    </div>
    <blockquote
cite="mid:CAM5jxn_UgdxxHBvhubzaxbTBZbgy8_5gDcL8F8Li+nKjW+nniQ@mail.gmail.com"
      type="cite">
      <p dir="ltr"><br>
        On Jan 2, 2016 8:18 PM, "Atin Mukherjee" &lt;<a
          moz-do-not-send="true"
          href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a>&gt;
        wrote:<br>
        &gt;<br>
        &gt; -Atin<br>
        &gt; Sent from one plus one<br>
        &gt; On Jan 2, 2016 4:41 PM, "Raghavendra Talur" &lt;<a
          moz-do-not-send="true" href="mailto:rtalur@redhat.com">rtalur@redhat.com</a>&gt;
        wrote:<br>
        &gt; &gt;<br>
        &gt; &gt;<br>
        &gt; &gt;<br>
        &gt; &gt; On Sat, Jan 2, 2016 at 12:03 PM, Atin Mukherjee &lt;<a
          moz-do-not-send="true"
          href="mailto:atin.mukherjee83@gmail.com">atin.mukherjee83@gmail.com</a>&gt;
        wrote:<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt; -Atin<br>
        &gt; &gt;&gt; Sent from one plus one<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt; On Jan 2, 2016 11:52 AM, "Vijay Bellur" &lt;<a
          moz-do-not-send="true" href="mailto:vbellur@redhat.com">vbellur@redhat.com</a>&gt;
        wrote:<br>
        &gt; &gt;&gt; &gt;<br>
        &gt; &gt;&gt; &gt; On 12/30/2015 10:36 AM, Raghavendra Talur
        wrote:<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;&gt; This is not comprehensive data but some
        interesting bits<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;&gt; Average time taken for various commands
        in our .t files.<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;&gt; * glusterd - 2 second<br>
        &gt; &gt;&gt; &gt;&gt; * gluster vol start/stop - 3 second<br>
        &gt; &gt;&gt; &gt;&gt; * gluster vol set/info(any basic gluster
        cli command) -1 second<br>
        &gt; &gt;&gt; &gt;&gt; * gluster mount - 2 second<br>
        &gt; &gt;&gt; &gt;&gt; * gluster add brick - 2 second<br>
        &gt; &gt;&gt; &gt;&gt; * gluster remove brick - 5 second<br>
        &gt; &gt;&gt; &gt;&gt; * gluster rebalance start 5 second<br>
        &gt; &gt;&gt; &gt;&gt; * gluster tier attach/detach - 6 second<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;&gt; The only other single command which takes
        1+ second is sleep. Most of<br>
        &gt; &gt;&gt; &gt;&gt; the other<br>
        &gt; &gt;&gt; &gt;&gt; external commands we use in bash scripts
        are not that time taking.<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;&gt; Hence,<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;&gt; 1. Don't stop/delete a gluster volume in
        .t file unless it is part of<br>
        &gt; &gt;&gt; &gt;&gt; your test. Let the cleanup function
        handle that.<br>
        &gt; &gt;&gt; &gt;&gt; 2. Don't call gluster vol info at the
        start of the test if not required<br>
        &gt; &gt;&gt; &gt;&gt; 3. Merge as many tests as possible to
        reduce glusterd starts/vol starts<br>
        &gt; &gt;&gt; &gt;&gt; and mounts.<br>
        &gt; &gt;&gt; &gt;&gt; 4. Use sleep only if it is absolutely
        required.<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;&gt; You can use this bug <a
          moz-do-not-send="true"
          href="https://bugzilla.redhat.com/show_bug.cgi?id=1294826">https://bugzilla.redhat.com/show_bug.cgi?id=1294826</a><br>
        &gt; &gt;&gt; &gt;&gt; to send patches to improve test times.<br>
        &gt; &gt;&gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;<br>
        &gt; &gt;&gt; &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'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>
        &gt; &gt;&gt; That's a good suggestion. It'd definitely improve
        the latency.<br>
        &gt; &gt;<br>
        &gt; &gt;<br>
        &gt; &gt; Tried this.<br>
        &gt; &gt; I saw improvement of 1 second with commands which took
        over 4 second. May be there is something else which is taking
        more time?<br>
        &gt; Did you observe this for clustered tests? I think apart
        from fsync() and n/w latency the rest of the things should be
        pretty light wight and shouldn't consume much time.</p>
      <p dir="ltr">This data is true for non clustered tests too. I am
        suspecting address resolution. <br>
        Rafi had suggested we use IP addresses instead of host names for
        HOST variables</p>
    </blockquote>
    <br>
    I have seen latency because of address resolution as well.<br>
    <br>
    Pranith<br>
    <blockquote
cite="mid:CAM5jxn_UgdxxHBvhubzaxbTBZbgy8_5gDcL8F8Li+nKjW+nniQ@mail.gmail.com"
      type="cite">
      <p dir="ltr"> </p>
      <p dir="ltr">&gt;<br>
        &gt; &gt;  <br>
        &gt; &gt;&gt;<br>
        &gt; &gt;&gt; &gt;<br>
        &gt; &gt;&gt; &gt; Regards,<br>
        &gt; &gt;&gt; &gt; Vijay<br>
        &gt; &gt;&gt; &gt;<br>
        &gt; &gt;&gt; &gt;
        _______________________________________________<br>
        &gt; &gt;&gt; &gt; Gluster-devel mailing list<br>
        &gt; &gt;&gt; &gt; <a moz-do-not-send="true"
          href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
        &gt; &gt;&gt; &gt; <a moz-do-not-send="true"
          href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
        &gt; &gt;<br>
        &gt; &gt;<br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a></pre>
    </blockquote>
    <br>
  </body>
</html>