<div dir="ltr">is transport tcp or tcp,rdma? I&#39;m using transport=tcp for IPoIB and get pretty fantastic speeds. I noticed when I used tcp,rdma as my transport I had problems.<div><br></div><div style>Are you mounting via fuse or nfs? I don&#39;t have any experience using the nfs but fuse works really well.</div>
<div style><br></div><div style>Additionally, how are you using the volume? many small files or big large files? I&#39;m hosting qcow2 files that are between 4 and 250GB.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Feb 13, 2013 at 10:35 PM, Michael Colonno <span dir="ltr">&lt;<a href="mailto:mcolonno@stanford.edu" target="_blank">mcolonno@stanford.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">            More data: I got the Infiniband network (QDR) working well and switched my gluster volume to the Infiniband fabric (IPoIB, not RDMA since it doesn’t seem to be supported yet for 3.x). The filesystem was slightly faster but still well short of what I would expect by a wide margin. Via an informal test (timing the movement of a large file) I’m getting several MB/s – well short of even a standard Gb network copy. With the faster network the CPU load on the brick systems increased dramatically: now I’m seeing 200%-250% usage by glusterfsd and glusterfs. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">            This leads me to believe that gluster is really not enjoying my eight-brick, 2x replication volume with each brick system also being a client. I tried a rebalance but no measurable effect. Any suggestions for improving the performance? Having each brick be a client of itself seemed the most logical choice to remove interdependencies but now I’m doubting the setup…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">            Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext">            ~Mike C. <u></u><u></u></span></p><p class="MsoNormal"><a name="13cd76a35ba7d12e__MailEndCompose"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:windowtext"><u></u> <u></u></span></a></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> <a href="mailto:gluster-users-bounces@gluster.org" target="_blank">gluster-users-bounces@gluster.org</a> [mailto:<a href="mailto:gluster-users-bounces@gluster.org" target="_blank">gluster-users-bounces@gluster.org</a>] <b>On Behalf Of </b>Joe Julian</span></p>
<div class="im"><br><b>Sent:</b> Sunday, February 03, 2013 11:47 AM<br></div><div><div class="h5"><b>To:</b> <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a><br><b>Subject:</b> Re: [Gluster-users] high CPU load on all bricks<u></u><u></u></div>
</div><p></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">On 02/03/2013 11:22 AM, Michael Colonno wrote:<br><br><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">            Having taken a lot more data it does seem the glusterfsd and glusterd processes (along with several ksoftirqd) spike up to near 100% on both client and brick servers during any file transport across the mount. Thankfully this is short-lived for the most part but I’m wondering if this is expected behavior or what others have experienced(?) I’m a little surprised such a large CPU load would be required to move small files and / or use an application within a Gluster mount point. </span><u></u><u></u></p>
<p class="MsoNormal"><br>If you&#39;re getting ksoftirqd spikes, that sounds like a hardware issue to me. I never see huge spikes like that on my servers nor clients.<br><br><br><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">            I wanted to test this against an NFS mount of the same Gluster volume. I managed to get rstatd installed and running but my attempts to mount the volume via NFS are met with: </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">            </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">mount.nfs: requested NFS version or transport protocol is not supported</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">            Relevant line in /etc/fstab:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">            </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">node1:/volume    /volume    nfs     defaults,_netdev,vers=3,mountproto=tcp        0 0      </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p><p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">It looks like CentOS 6.x has NFS version 4 built into everything. So a few questions:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p><p style="margin-left:.75in"><u></u><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span>-<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span></span><u></u><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Has anyone else noted significant performance differences between a glusterfs mount and NFS mount for volumes of 8+ bricks? </span><u></u><u></u></p>
<p style="margin-left:.75in"><u></u><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span>-<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span></span><u></u><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Is there a straightforward way to make the newer versions of CentOS play nice with NFS version 3 + Gluster? </span><u></u><u></u></p>
<p style="margin-left:.75in"><u></u><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span>-<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span></span><u></u><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Are there any general performance tuning guidelines I can follow to improve CPU performance? I found a few references to the cache settings but nothing solid. </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">If the consensus is that NFS will not gain anything then I won’t waste the time setting it all up. </span><u></u><u></u></p>
<p class="MsoNormal"><br>NFS gains you the use of FSCache to cache directories and file stats making directory listings faster, but it adds overhead decreasing the overall throughput (from all the reports I&#39;ve seen).<br>
<br>I would suspect that you have the kernel nfs server running on your servers. Make sure it&#39;s disabled.<br><br><br><u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Thanks,</span><u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">~Mike C. </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:gluster-users-bounces@gluster.org" target="_blank">gluster-users-bounces@gluster.org</a> [<a href="mailto:gluster-users-bounces@gluster.org" target="_blank">mailto:gluster-users-bounces@gluster.org</a>] <b>On Behalf Of </b>Michael Colonno<br>
<b>Sent:</b> Friday, February 01, 2013 4:46 PM<br><b>To:</b> <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a><br><b>Subject:</b> Re: [Gluster-users] high CPU load on all bricks</span><u></u><u></u></p>
</div></div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">            Update: after a few hours the CPU usage seems to have dropped down to a small value. I did not change anything with respect to the configuration or unmount / stop anything as I wanted to see if this would persist for a long period of time. Both the client and the self-mounted bricks are now showing CPU &lt; 1% (as reported by top). Prior to the larger CPU loads I installed a bunch of software into the volume (~ 5 GB total). Is this kind a transient behavior – by which I mean larger CPU loads after a lot of filesystem activity in short time – typical? This is not a problem in my deployment; I just want to know what to expect in the future and to complete this thread for future users. If this is expected behavior we can wrap up this thread. If not then I’ll do more digging into the logs on the client and brick sides. </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">            Thanks,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">            ~Mike C. </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Joe Julian [<a href="mailto:joe@julianfamily.org" target="_blank">mailto:joe@julianfamily.org</a>] <br>
<b>Sent:</b> Friday, February 01, 2013 2:08 PM<br><b>To:</b> Michael Colonno; <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a><br><b>Subject:</b> Re: [Gluster-users] high CPU load on all bricks</span><u></u><u></u></p>
</div></div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">Check the client log(s). <u></u><u></u></p><div><p class="MsoNormal">Michael Colonno &lt;<a href="mailto:mcolonno@stanford.edu" target="_blank">mcolonno@stanford.edu</a>&gt; wrote:<u></u><u></u></p>
<p class="MsoNormal">            Forgot to mention: on a client system (not a brick) the glusterfs process is consuming ~ 68% CPU continuously. This is a much less powerful desktop system so the CPU load can’t be compared 1:1 with the systems comprising the bricks but still very high. So the issue seems to exist with both glusterfsd and glusterfs processes. <u></u><u></u></p>
<p> <u></u><u></u></p><p class="MsoNormal">            Thanks,<u></u><u></u></p><p class="MsoNormal">            ~Mike C. <u></u><u></u></p><p> <u></u><u></u></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> <a href="mailto:gluster-users-bounces@gluster.org" target="_blank">gluster-users-bounces@gluster.org</a> [<a href="mailto:gluster-users-bounces@gluster.org" target="_blank">mailto:gluster-users-bounces@gluster.org</a>] <b>On Behalf Of </b>Michael Colonno<br>
<b>Sent:</b> Friday, February 01, 2013 12:46 PM<br><b>To:</b> <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a><br><b>Subject:</b> [Gluster-users] high CPU load on all bricks<u></u><u></u></p>
</div></div><p> <u></u><u></u></p><p class="MsoNormal">            Gluster gurus ~<u></u><u></u></p><p> <u></u><u></u></p><p class="MsoNormal">            I’ve deployed and 8-brick (2x replicate) Gluster 3.3.1 volume on CentOS 6.3 with tcp transport. I was able to build, start, mount, and use the volume. On each system contributing a brick, however, my CPU usage (glusterfsd) is hovering around 20% (virtually zero memory usage thankfully). These are brand new, fairly beefy servers so 20% CPU load is quite a bit. The deployment is pretty plain with each brick mounting the volume to itself via a glusterfs mount. I assume this type of CPU usage is atypically high; is there anything I can do to investigate what’s soaking up CPU and minimize it? Total usable volume size is only about 22 TB (about 45 TB total with 2x replicate). <u></u><u></u></p>
<p> <u></u><u></u></p><p class="MsoNormal">            Thanks,<u></u><u></u></p><p class="MsoNormal">            ~Mike C. <u></u><u></u></p><p> <u></u><u></u></p><pre style="text-align:center;white-space:pre-wrap;word-wrap:break-word">
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><hr size="2" width="100%" align="center"></span></pre><pre><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></pre>
<pre><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Gluster-users mailing list<u></u><u></u></span></pre><pre><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><u></u><u></u></span></pre>
<pre><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></span><u></u><u></u></pre>
</div><p class="MsoNormal"><br><br><br><u></u><u></u></p><pre>_______________________________________________<u></u><u></u></pre><pre>Gluster-users mailing list<u></u><u></u></pre><pre><a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><u></u><u></u></pre>
<pre><a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><u></u><u></u></pre><p class="MsoNormal"><u></u> <u></u></p></div>
</div></div></div><br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>