Hi Francis,<br><br>what is the version of glusterfs you are using?<br><br><div class="gmail_quote">On Thu, Dec 11, 2008 at 5:38 PM, Francis GASCHET <span dir="ltr">&lt;<a href="mailto:fg@numlog.fr">fg@numlog.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
I installed glusterFS on 2 computers under Mandriva 2008.<br>
Connection type : Ethernet 100 mbits/S (mii-tool result: negotiated
100baseTx-FD flow-control)<br>
<br>
Hereafter is my configuration (same on both PCs):<br>
<br>
<b><big>glusterfs-server.vol:<br>
<br>
</big></b><tt>volume dir_main<br>
&nbsp; type storage/posix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # POSIX FS
translator<br>
&nbsp; option directory /main&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Export
this directory<br>
end-volume<br>
<br>
volume locks_main<br>
&nbsp;&nbsp;&nbsp; type features/posix-locks<br>
&nbsp;&nbsp;&nbsp; subvolumes dir_main<br>
end-volume<br>
<br>
volume main<br>
&nbsp;&nbsp;&nbsp; type protocol/server<br>
&nbsp;&nbsp;&nbsp; option transport-type tcp/server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # For
TCP/IP transport<br>
&nbsp;&nbsp; subvolumes locks_main<br>
&nbsp;&nbsp;&nbsp; option auth.ip.main.allow <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>,<a href="http://172.16.1." target="_blank">172.16.1.</a>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Allow
access to &quot;brick&quot; volume<br>
end-volume</tt><br>
<br>
<br>
<b><big>client.vol:<br>
<br>
</big></b><tt>volume main_loc<br>
&nbsp;&nbsp;&nbsp; type protocol/client<br>
&nbsp;&nbsp;&nbsp; option transport-type tcp/client<br>
&nbsp;&nbsp;&nbsp; option remote-host localhost<br>
&nbsp;&nbsp;&nbsp; option remote-subvolume main<br>
end-volume<br>
<br>
volume main_dist<br>
&nbsp;&nbsp;&nbsp; type protocol/client<br>
&nbsp;&nbsp;&nbsp; option transport-type tcp/client<br>
&nbsp;&nbsp;&nbsp; option remote-host other<br>
&nbsp;&nbsp;&nbsp; option remote-subvolume main<br>
end-volume<br>
<br>
volume raid_main_afr<br>
&nbsp;&nbsp;&nbsp; type cluster/afr<br>
&nbsp;&nbsp;&nbsp; subvolumes main_loc main_dist<br>
&nbsp;&nbsp;&nbsp; option read-subvolume main_loc<br>
end-volume<br>
<br>
volume raid_main_ra<br>
&nbsp;&nbsp;&nbsp; type performance/read-ahead<br>
&nbsp;&nbsp;&nbsp; option page-size 128kB<br>
&nbsp;&nbsp;&nbsp; option page-count 4<br>
&nbsp;&nbsp;&nbsp; option force-atime-update off<br>
&nbsp;&nbsp;&nbsp; subvolumes raid_main_afr<br>
end-volume<br>
<br>
volume raid_main_wb<br>
&nbsp;&nbsp;&nbsp; type performance/write-behind<br>
&nbsp;&nbsp;&nbsp; option aggregate-size 1MB<br>
&nbsp;&nbsp;&nbsp; option flush-behind on<br>
&nbsp;&nbsp;&nbsp; subvolumes raid_main_ra<br>
end-volume<br>
<br>
volume raid_main<br>
&nbsp;&nbsp;&nbsp; type performance/io-cache<br>
&nbsp;&nbsp;&nbsp; option cache-size 512MB<br>
&nbsp;&nbsp;&nbsp; option page-size 1MB<br>
&nbsp;&nbsp;&nbsp; option priority *:0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # *.html:2,*:1<br>
&nbsp;&nbsp;&nbsp; option force-revalidate-timeout 2&nbsp;&nbsp; # default is 1<br>
&nbsp;&nbsp;&nbsp; subvolumes raid_main_wb<br>
end-volume<br>
</tt><br>
<br>
It works fine, but slowly !<br>
I&#39;m a newbie in glusterFS, so may be some option isn&#39;t adequate. Please
advise.<br>
<br>
Due to the option &quot;<tt>read-subvolume main_loc&quot; I didn&#39;t expect network
traffic when I just list files or read them, but actually, even with a
simple ls, I see a lot of network traffic.<br>
A &quot;ls -R&quot; takes 7 to 8 seconds for less than 8000 files. If I do it
locally, I get the result instantly.<br>
</tt>Question 1 : Is this traffic normal on read only operation ?<br>
<br>
Question 2 : in the documentation, I read that there is 2 protocols :
ASCII protocol and binary protocol. Currently, according to what I see
with tcpdump, my glusterFS uses the ASCII protocol. I guess it&#39;s not
the best for performance ! What is the way to enforce it using the
binary protocol ?<br>
<br>
Thank&#39;s for any help.<br>
<br>
Best regards,<br>
<pre cols="72">-- 
Francis GASCHET / NUMLOG
<a href="http://www.numlog.fr" target="_blank">http://www.numlog.fr</a>
Tel.: +33 (0) 130 791 616
Fax.: +33 (0) 130 819 286

NUMLOG recrute sur LOLIX :
<a href="http://fr.lolix.org/" target="_blank">http://fr.lolix.org/</a>

</pre>
</div>


<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Raghavendra G<br><br>