<div dir="auto"><div>Did not upgrade yet gluster. I am still  using 3.8.12. Only the mentioned changes did provide the performance boost.</div><div dir="auto"><br></div><div dir="auto">From which version to which version did you see such performance boost? I will try to upgrade and check difference also. </div><div dir="auto"><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Sep 11, 2017 2:45 AM, &quot;Ben Turner&quot; &lt;<a href="mailto:bturner@redhat.com">bturner@redhat.com</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Great to hear!<br>
<div class="quoted-text"><br>
----- Original Message -----<br>
&gt; From: &quot;Abi Askushi&quot; &lt;<a href="mailto:rightkicktech@gmail.com">rightkicktech@gmail.com</a>&gt;<br>
&gt; To: &quot;Krutika Dhananjay&quot; &lt;<a href="mailto:kdhananj@redhat.com">kdhananj@redhat.com</a>&gt;<br>
&gt; Cc: &quot;gluster-user&quot; &lt;<a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a>&gt;<br>
</div><div class="quoted-text">&gt; Sent: Friday, September 8, 2017 7:01:00 PM<br>
&gt; Subject: Re: [Gluster-users] Slow performance of gluster volume<br>
&gt;<br>
</div><div class="quoted-text">&gt; Following changes resolved the perf issue:<br>
&gt;<br>
&gt; Added the option<br>
&gt; /etc/glusterfs/glusterd.vol :<br>
&gt; option rpc-auth-allow-insecure on<br>
<br>
</div>Was it this setting or was it the gluster upgrade, do you know for sure?  It may be helpful to others to know for sure(Im interested too:).<br>
<font color="#888888"><br>
-b<br>
</font><div class="elided-text"><br>
&gt;<br>
&gt; restarted glusterd<br>
&gt;<br>
&gt; Then set the volume option:<br>
&gt; gluster volume set vms server.allow-insecure on<br>
&gt;<br>
&gt; I am reaching now the max network bandwidth and performance of VMs is quite<br>
&gt; good.<br>
&gt;<br>
&gt; Did not upgrade the glusterd.<br>
&gt;<br>
&gt; As a next try I am thinking to upgrade gluster to 3.12 + test libgfapi<br>
&gt; integration of qemu by upgrading to ovirt 4.1.5 and check vm perf.<br>
&gt;<br>
&gt;<br>
&gt; On Sep 6, 2017 1:20 PM, &quot;Abi Askushi&quot; &lt; <a href="mailto:rightkicktech@gmail.com">rightkicktech@gmail.com</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I tried to follow step from<br>
&gt; <a href="https://wiki.centos.org/SpecialInterestGroup/Storage" rel="noreferrer" target="_blank">https://wiki.centos.org/<wbr>SpecialInterestGroup/Storage</a> to install latest<br>
&gt; gluster on the first node.<br>
&gt; It installed 3.10 and not 3.11. I am not sure how to install 3.11 without<br>
&gt; compiling it.<br>
&gt; Then when tried to start the gluster on the node the bricks were reported<br>
&gt; down (the other 2 nodes have still 3.8). No sure why. The logs were showing<br>
&gt; the below (even after rebooting the server):<br>
&gt;<br>
&gt; [2017-09-06 10:56:09.023777] E [rpcsvc.c:557:rpcsvc_check_<wbr>and_reply_error]<br>
&gt; 0-rpcsvc: rpc actor failed to complete successfully<br>
&gt; [2017-09-06 10:56:09.024122] E [server-helpers.c:395:server_<wbr>alloc_frame]<br>
&gt; (--&gt;/lib64/libgfrpc.so.0(<wbr>rpcsvc_handle_rpc_call+0x325) [0x7f2d0ec20905]<br>
&gt; --&gt;/usr/lib64/glusterfs/3.10.<wbr>5/xlator/protocol/server.so(+<wbr>0x3006b)<br>
&gt; [0x7f2cfa4bf06b]<br>
&gt; --&gt;/usr/lib64/glusterfs/3.10.<wbr>5/xlator/protocol/server.so(+<wbr>0xdb34)<br>
&gt; [0x7f2cfa49cb34] ) 0-server: invalid argument: client [Invalid argument]<br>
&gt;<br>
&gt; Do I need to upgrade all nodes before I attempt to start the gluster<br>
&gt; services?<br>
&gt; I reverted the first node back to 3.8 at the moment and all restored.<br>
&gt; Also tests with eager lock disabled did not make any difference.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Sep 6, 2017 at 11:15 AM, Krutika Dhananjay &lt; <a href="mailto:kdhananj@redhat.com">kdhananj@redhat.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Do you see any improvement with 3.11.1 as that has a patch that improves perf<br>
&gt; for this kind of a workload<br>
&gt;<br>
&gt; Also, could you disable eager-lock and check if that helps? I see that max<br>
&gt; time is being spent in acquiring locks.<br>
&gt;<br>
&gt; -Krutika<br>
&gt;<br>
&gt; On Wed, Sep 6, 2017 at 1:38 PM, Abi Askushi &lt; <a href="mailto:rightkicktech@gmail.com">rightkicktech@gmail.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi Krutika,<br>
&gt;<br>
&gt; Is it anything in the profile indicating what is causing this bottleneck? In<br>
&gt; case i can collect any other info let me know.<br>
&gt;<br>
&gt; Thanx<br>
&gt;<br>
&gt; On Sep 5, 2017 13:27, &quot;Abi Askushi&quot; &lt; <a href="mailto:rightkicktech@gmail.com">rightkicktech@gmail.com</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi Krutika,<br>
&gt;<br>
&gt; Attached the profile stats. I enabled profiling then ran some dd tests. Also<br>
&gt; 3 Windows VMs are running on top this volume but did not do any stress<br>
&gt; testing on the VMs. I have left the profiling enabled in case more time is<br>
&gt; needed for useful stats.<br>
&gt;<br>
&gt; Thanx<br>
&gt;<br>
&gt; On Tue, Sep 5, 2017 at 12:48 PM, Krutika Dhananjay &lt; <a href="mailto:kdhananj@redhat.com">kdhananj@redhat.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; OK my understanding is that with preallocated disks the performance with and<br>
&gt; without shard will be the same.<br>
&gt;<br>
&gt; In any case, please attach the volume profile[1], so we can see what else is<br>
&gt; slowing things down.<br>
&gt;<br>
&gt; -Krutika<br>
&gt;<br>
&gt; [1] -<br>
&gt; <a href="https://gluster.readthedocs.io/en/latest/Administrator%20Guide/Monitoring%20Workload/#running-glusterfs-volume-profile-command" rel="noreferrer" target="_blank">https://gluster.readthedocs.<wbr>io/en/latest/Administrator%<wbr>20Guide/Monitoring%20Workload/<wbr>#running-glusterfs-volume-<wbr>profile-command</a><br>
&gt;<br>
&gt; On Tue, Sep 5, 2017 at 2:32 PM, Abi Askushi &lt; <a href="mailto:rightkicktech@gmail.com">rightkicktech@gmail.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi Krutika,<br>
&gt;<br>
&gt; I already have a preallocated disk on VM.<br>
&gt; Now I am checking performance with dd on the hypervisors which have the<br>
&gt; gluster volume configured.<br>
&gt;<br>
&gt; I tried also several values of shard-block-size and I keep getting the same<br>
&gt; low values on write performance.<br>
&gt; Enabling client-io-threads also did not have any affect.<br>
&gt;<br>
&gt; The version of gluster I am using is glusterfs 3.8.12 built on May 11 2017<br>
&gt; 18:46:20.<br>
&gt; The setup is a set of 3 Centos 7.3 servers and ovirt 4.1, using gluster as<br>
&gt; storage.<br>
&gt;<br>
&gt; Below are the current settings:<br>
&gt;<br>
&gt;<br>
&gt; Volume Name: vms<br>
&gt; Type: Replicate<br>
&gt; Volume ID: 4513340d-7919-498b-bfe0-<wbr>d836b5cea40b<br>
&gt; Status: Started<br>
&gt; Snapshot Count: 0<br>
&gt; Number of Bricks: 1 x (2 + 1) = 3<br>
&gt; Transport-type: tcp<br>
&gt; Bricks:<br>
&gt; Brick1: gluster0:/gluster/vms/brick<br>
&gt; Brick2: gluster1:/gluster/vms/brick<br>
&gt; Brick3: gluster2:/gluster/vms/brick (arbiter)<br>
&gt; Options Reconfigured:<br>
&gt; server.event-threads: 4<br>
&gt; client.event-threads: 4<br>
&gt; performance.client-io-threads: on<br>
&gt; features.shard-block-size: 512MB<br>
&gt; cluster.granular-entry-heal: enable<br>
&gt; performance.strict-o-direct: on<br>
&gt; network.ping-timeout: 30<br>
&gt; storage.owner-gid: 36<br>
&gt; storage.owner-uid: 36<br>
&gt; user.cifs: off<br>
&gt; features.shard: on<br>
&gt; cluster.shd-wait-qlength: 10000<br>
&gt; cluster.shd-max-threads: 8<br>
&gt; cluster.locking-scheme: granular<br>
&gt; cluster.data-self-heal-<wbr>algorithm: full<br>
&gt; cluster.server-quorum-type: server<br>
&gt; cluster.quorum-type: auto<br>
&gt; cluster.eager-lock: enable<br>
&gt; network.remote-dio: off<br>
&gt; performance.low-prio-threads: 32<br>
&gt; performance.stat-prefetch: on<br>
&gt; performance.io-cache: off<br>
&gt; performance.read-ahead: off<br>
&gt; performance.quick-read: off<br>
&gt; transport.address-family: inet<br>
&gt; performance.readdir-ahead: on<br>
&gt; nfs.disable: on<br>
&gt; nfs.export-volumes: on<br>
&gt;<br>
&gt;<br>
&gt; I observed that when testing with dd if=/dev/zero of=testfile bs=1G count=1 I<br>
&gt; get 65MB/s on the vms gluster volume (and the network traffic between the<br>
&gt; servers reaches ~ 500Mbps), while when testing with dd if=/dev/zero<br>
&gt; of=testfile bs=1G count=1 oflag=direct I get a consistent 10MB/s and the<br>
&gt; network traffic hardly reaching 100Mbps.<br>
&gt;<br>
&gt; Any other things one can do?<br>
&gt;<br>
&gt; On Tue, Sep 5, 2017 at 5:57 AM, Krutika Dhananjay &lt; <a href="mailto:kdhananj@redhat.com">kdhananj@redhat.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m assuming you are using this volume to store vm images, because I see<br>
&gt; shard in the options list.<br>
&gt;<br>
&gt; Speaking from shard translator&#39;s POV, one thing you can do to improve<br>
&gt; performance is to use preallocated images.<br>
&gt; This will at least eliminate the need for shard to perform multiple steps as<br>
&gt; part of the writes - such as creating the shard and then writing to it and<br>
&gt; then updating the aggregated file size - all of which require one network<br>
&gt; call each, which further get blown up once they reach AFR (replicate) into<br>
&gt; many more network calls.<br>
&gt;<br>
&gt; Second, I&#39;m assuming you&#39;re using the default shard block size of 4MB (you<br>
&gt; can confirm this using `gluster volume get &lt;VOL&gt; shard-block-size`). In our<br>
&gt; tests, we&#39;ve found that larger shard sizes perform better. So maybe change<br>
&gt; the shard-block-size to 64MB (`gluster volume set &lt;VOL&gt; shard-block-size<br>
&gt; 64MB`).<br>
&gt;<br>
&gt; Third, keep stat-prefetch enabled. We&#39;ve found that qemu sends quite a lot of<br>
&gt; [f]stats which can be served from the (md)cache to improve performance. So<br>
&gt; enable that.<br>
&gt;<br>
&gt; Also, could you also enable client-io-threads and see if that improves<br>
&gt; performance?<br>
&gt;<br>
&gt; Which version of gluster are you using BTW?<br>
&gt;<br>
&gt; -Krutika<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Sep 5, 2017 at 4:32 AM, Abi Askushi &lt; <a href="mailto:rightkicktech@gmail.com">rightkicktech@gmail.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I have a gluster volume used to host several VMs (managed through oVirt).<br>
&gt; The volume is a replica 3 with arbiter and the 3 servers use 1 Gbit network<br>
&gt; for the storage.<br>
&gt;<br>
&gt; When testing with dd (dd if=/dev/zero of=testfile bs=1G count=1 oflag=direct)<br>
&gt; out of the volume (e.g. writing at /root/) the performance of the dd is<br>
&gt; reported to be ~ 700MB/s, which is quite decent. When testing the dd on the<br>
&gt; gluster volume I get ~ 43 MB/s which way lower from the previous. When<br>
&gt; testing with dd the gluster volume, the network traffic was not exceeding<br>
&gt; 450 Mbps on the network interface. I would expect to reach near 900 Mbps<br>
&gt; considering that there is 1 Gbit of bandwidth available. This results having<br>
&gt; VMs with very slow performance (especially on their write operations).<br>
&gt;<br>
&gt; The full details of the volume are below. Any advise on what can be tweaked<br>
&gt; will be highly appreciated.<br>
&gt;<br>
&gt; Volume Name: vms<br>
&gt; Type: Replicate<br>
&gt; Volume ID: 4513340d-7919-498b-bfe0-<wbr>d836b5cea40b<br>
&gt; Status: Started<br>
&gt; Snapshot Count: 0<br>
&gt; Number of Bricks: 1 x (2 + 1) = 3<br>
&gt; Transport-type: tcp<br>
&gt; Bricks:<br>
&gt; Brick1: gluster0:/gluster/vms/brick<br>
&gt; Brick2: gluster1:/gluster/vms/brick<br>
&gt; Brick3: gluster2:/gluster/vms/brick (arbiter)<br>
&gt; Options Reconfigured:<br>
&gt; cluster.granular-entry-heal: enable<br>
&gt; performance.strict-o-direct: on<br>
&gt; network.ping-timeout: 30<br>
&gt; storage.owner-gid: 36<br>
&gt; storage.owner-uid: 36<br>
&gt; user.cifs: off<br>
&gt; features.shard: on<br>
&gt; cluster.shd-wait-qlength: 10000<br>
&gt; cluster.shd-max-threads: 8<br>
&gt; cluster.locking-scheme: granular<br>
&gt; cluster.data-self-heal-<wbr>algorithm: full<br>
&gt; cluster.server-quorum-type: server<br>
&gt; cluster.quorum-type: auto<br>
&gt; cluster.eager-lock: enable<br>
&gt; network.remote-dio: off<br>
&gt; performance.low-prio-threads: 32<br>
&gt; performance.stat-prefetch: off<br>
&gt; performance.io-cache: off<br>
&gt; performance.read-ahead: off<br>
&gt; performance.quick-read: off<br>
&gt; transport.address-family: inet<br>
&gt; performance.readdir-ahead: on<br>
&gt; nfs.disable: on<br>
&gt; nfs.export-volumes: on<br>
&gt;<br>
&gt;<br>
&gt; Thanx,<br>
&gt; Alex<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
</div></blockquote></div><br></div></div></div>