<div dir="ltr">Hello,<div><br></div><div>I found other strange thing.</div><div><br></div><div style>On the dd-test (dd if=/dev/zero of=2testbin bs=1M count=1024 oflag=direct) my volume shows only 18-19MB/s.</div><div style>
Full network speed is 90-110MB/s, storage speed - ~200MB/s.</div><div style><br></div><div style>Volume type - replicated-distributed, 2 replicas, 4 nodes. Volumes mounted via fuse with direct-io=enable option.</div><div style>
<br></div><div style>Its sooo slooow, right?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/5 harry mangalam <span dir="ltr">&lt;<a href="mailto:harry.mangalam@uci.edu" target="_blank">harry.mangalam@uci.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This kind of info is surprisingly hard to obtain.  The gluster docs do contain<br>
some of it, ie:<br>
<br>
&lt;<a href="http://community.gluster.org/a/linux-kernel-tuning-for-glusterfs/" target="_blank">http://community.gluster.org/a/linux-kernel-tuning-for-glusterfs/</a>&gt;<br>
<br>
I also found well-described kernel tuning parameters in the FHGFS wiki (as<br>
another distibuted fs, they share some characteristics)<br>
<br>
<a href="http://www.fhgfs.com/wiki/wikka.php?wakka=StorageServerTuning" target="_blank">http://www.fhgfs.com/wiki/wikka.php?wakka=StorageServerTuning</a><br>
<br>
and more XFS tuning filesystem params here:<br>
<br>
&lt;<a href="http://www.mythtv.org/wiki/Optimizing_Performance#Further_Information" target="_blank">http://www.mythtv.org/wiki/Optimizing_Performance#Further_Information</a>&gt;<br>
<br>
and here:<br>
&lt;<a href="http://www.mysqlperformanceblog.com/2011/12/16/setting-up-xfs-the-simple-" target="_blank">http://www.mysqlperformanceblog.com/2011/12/16/setting-up-xfs-the-simple-</a><br>
edition&gt;<br>
<br>
But of course, YMMV and a number of these parameters conflict and/or have<br>
serious tradeoffs, as you discovered.<br>
<br>
LSI recently loaned me a Nytro SAS controller (on-card SSD-cached) which seems<br>
pretty phenomenal on a single brick (and is predicted to perform well based on<br>
their profiling), but am waiting for another node to arrive before I can test<br>
it under true gluster conditions.  Anyone else tried this hardware?<br>
<br>
hjm<br>
<div><div class="h5"><br>
On Tuesday, March 05, 2013 12:34:41 PM Nikita A Kardashin wrote:<br>
&gt; Hello all!<br>
&gt;<br>
&gt; This problem is solved by me today.<br>
&gt; Root of all in the incompatibility of gluster cache and kvm cache.<br>
&gt;<br>
&gt; Bug reproduces if KVM virtual machine created with cache=writethrough<br>
&gt; (default for OpenStack) option and hosted on GlusterFS volume. If any other<br>
&gt; (cache=writeback or cache=none with direct-io) cacher used, performance of<br>
&gt; writing to existing file inside VM is equal to bare storage (from host<br>
&gt; machine) write performance.<br>
&gt;<br>
&gt; I think, it must be documented in Gluster and maybe filled a bug.<br>
&gt;<br>
&gt; Other question. Where I can read something about gluster tuning (optimal<br>
&gt; cache size, write-behind, flush-behind use cases and other)? I found only<br>
&gt; options list, without any how-to or tested cases.<br>
&gt;<br>
&gt;<br>
&gt; 2013/3/5 Toby Corkindale &lt;<a href="mailto:toby.corkindale@strategicdata.com.au">toby.corkindale@strategicdata.com.au</a>&gt;<br>
&gt;<br>
&gt; &gt; On 01/03/13 21:12, Brian Candler wrote:<br>
&gt; &gt;&gt; On Fri, Mar 01, 2013 at 03:30:07PM +0600, Nikita A Kardashin wrote:<br>
&gt; &gt;&gt;&gt;     If I try to execute above command inside virtual machine (KVM),<br>
&gt; &gt;&gt;&gt;     first<br>
&gt; &gt;&gt;&gt;     time all going right - about 900MB/s (cache effect, I think), but if<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;     run this test again on existing file - task (dd) hungs up and can be<br>
&gt; &gt;&gt;&gt;     stopped only by Ctrl+C.<br>
&gt; &gt;&gt;&gt;     Overall virtual system latency is poor too. For example, apt-get<br>
&gt; &gt;&gt;&gt;     upgrade upgrading system very, very slow, freezing on &quot;Unpacking<br>
&gt; &gt;&gt;&gt;     replacement&quot; and other io-related steps.<br>
&gt; &gt;&gt;&gt;     Does glusterfs have any tuning options, that can help me?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If you are finding that processes hang or freeze indefinitely, this is<br>
&gt; &gt;&gt; not<br>
&gt; &gt;&gt; a question of &quot;tuning&quot;, this is simply &quot;broken&quot;.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Anyway, you&#39;re asking the wrong person - I&#39;m currently in the process of<br>
&gt; &gt;&gt; stripping out glusterfs, although I remain interested in the project.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I did find that KVM performed very poorly, but KVM was not my main<br>
&gt; &gt;&gt; application and that&#39;s not why I&#39;m abandoning it.  I&#39;m stripping out<br>
&gt; &gt;&gt; glusterfs primarily because it&#39;s not supportable in my environment,<br>
&gt; &gt;&gt; because<br>
&gt; &gt;&gt; there is no documentation on how to analyse and recover from failure<br>
&gt; &gt;&gt; scenarios which can and do happen. This point in more detail:<br>
</div></div>&gt; &gt;&gt; <a href="http://www.gluster.org/**pipermail/gluster-users/2013-**" target="_blank">http://www.gluster.org/**pipermail/gluster-users/2013-**</a><br>
&gt; &gt;&gt; January/035118.html&lt;<a href="http://www.gluster.org/pipermail/gluster-users/2013-J" target="_blank">http://www.gluster.org/pipermail/gluster-users/2013-J</a><br>
&gt; &gt;&gt; anuary/035118.html&gt;<br>
<div class="im">&gt; &gt;&gt;<br>
&gt; &gt;&gt; The other downside of gluster was its lack of flexibility, in particular<br>
&gt; &gt;&gt; the<br>
&gt; &gt;&gt; fact that there is no usage scaling factor on bricks, so that even with a<br>
&gt; &gt;&gt; simple distributed setup all your bricks have to be the same size.  Also,<br>
&gt; &gt;&gt; the object store feature which I wanted to use, has clearly had hardly<br>
&gt; &gt;&gt; any<br>
&gt; &gt;&gt; testing (even the RPM packages don&#39;t install properly).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I *really* wanted to deploy gluster, because in principle I like the idea<br>
&gt; &gt;&gt; of<br>
&gt; &gt;&gt; a virtual distribution/replication system which sits on top of existing<br>
&gt; &gt;&gt; local filesystems.  But for storage, I need something where operational<br>
&gt; &gt;&gt; supportability is at the top of the pile.<br>
&gt; &gt;<br>
&gt; &gt; I have to agree; GlusterFS has been in use here in production for a while,<br>
&gt; &gt; and while it mostly works, it&#39;s been fragile and documentation has been<br>
&gt; &gt; disappointing. Despite 3.3 being in beta for a year, it still seems to<br>
&gt; &gt; have<br>
&gt; &gt; been poorly tested. For eg, I can&#39;t believe almost no-one else noticed<br>
&gt; &gt; that<br>
&gt; &gt; the log files were busted.. nor that the bug report has been around for<br>
&gt; &gt; quarter of a year without being responded to or fixed.<br>
&gt; &gt;<br>
&gt; &gt; I have to ask -- what are you moving to now, Brian?<br>
&gt; &gt;<br>
&gt; &gt; -Toby<br>
&gt; &gt;<br>
&gt; &gt;<br>
</div>&gt; &gt; ______________________________**_________________<br>
&gt; &gt; Gluster-users mailing list<br>
&gt; &gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; &gt; <a href="http://supercolony.gluster." target="_blank">http://supercolony.gluster.</a>**org/mailman/listinfo/gluster-**users&lt;<a href="http://s" target="_blank">http://s</a><br>
&gt; &gt; <a href="http://upercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">upercolony.gluster.org/mailman/listinfo/gluster-users</a>&gt;<br>
<br>
---<br>
Harry Mangalam - Research Computing, OIT, Rm 225 MSTB, UC Irvine<br>
[m/c 2225] / 92697 Google Voice Multiplexer: (949) 478-4487<br>
415 South Circle View Dr, Irvine, CA, 92697 [shipping]<br>
MSTB Lat/Long: (33.642025,-117.844414) (paste into Google Maps)<br>
---<br>
&quot;Something must be done. [X] is something. Therefore, we must do it.&quot;<br>
Bruce Schneier, on American response to just about anything.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>With best regards,<br>differentlocal (<a href="http://www.differentlocal.ru">www.differentlocal.ru</a> | <a href="mailto:differentlocal@gmail.com">differentlocal@gmail.com</a>),<br>
System administrator.
</div>