I believe FSCache must first be implemented in FUSE before any userspace filesystem (like GlusterFS) can make use of it?<div><br></div><div>Avati<br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 1:29 AM, ÎâΡ <span dir="ltr">&lt;<a href="mailto:wuwei.tsh@gmail.com" target="_blank">wuwei.tsh@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





<div style="MARGIN:10px;FONT-SIZE:12pt">
<div style="FONT-SIZE:12pt">Now I&#39;m sure that Gluster FS native client don&#39;t 
support FSCache. There are no codes about FSCache in the source code of Gluster 
FS.</div>
<div style="FONT-SIZE:12pt">the command &nbsp;&quot;mount -t glusterfs 
server1:/test-volume /mnt/glusterfs -o fsc&quot;&nbsp; will be executed by 
/sbin/mount.glusterfs,&nbsp;and the &quot;-o fsc&quot; option will be&nbsp;ignored 
silently.&nbsp;&nbsp;</div>
<div style="FONT-SIZE:12pt">&nbsp;</div>
<div style="FONT-SIZE:12pt">Thanks for everybody.</div>
<div style="FONT-SIZE:12pt">&nbsp;</div>
<hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1">

<div style="FONT-SIZE:12pt"><span></span></div>
<div>Wei Wu</div>
<div>&nbsp;</div>
<div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<div style="padding-right:8px;padding-left:8px;padding-top:8px;font-size:12px;background:#efefef;padding-bottom:8px">
<div><b>From:</b>&nbsp;<a href="mailto:sjayaraman@suse.com" target="_blank">Suresh 
Jayaraman</a></div>
<div><b>Date:</b>&nbsp;<a href="tel:2012-12-05%C2%A015" value="+12012120515" target="_blank">2012-12-05&nbsp;15</a>:06</div>
<div><b>To:</b>&nbsp;<a href="mailto:wuwei.tsh@gmail.com" target="_blank">ÎâΡ</a></div>
<div><b>CC:</b>&nbsp;<a href="mailto:ricwheeler@gmail.com" target="_blank">Ric Wheeler</a>; <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users</a>; <a href="mailto:linux-cachefs@redhat.com" target="_blank">linux-cachefs</a>; <a href="mailto:gluster-devel@nongnu.org" target="_blank">gluster-devel</a></div>

<div><b>Subject:</b>&nbsp;Re: [Linux-cachefs] [Gluster-devel] Can I use 
FSCache/Cachefiles with Gluster Native Client mode?</div></div></div>
<div>
<div>On&nbsp;12/03/2012&nbsp;05:59&nbsp;PM,&nbsp;Ric&nbsp;Wheeler&nbsp;wrote:</div><div class="im">
<div>&gt;&nbsp;On&nbsp;12/02/2012&nbsp;10:29&nbsp;PM,&nbsp;ÎâΡ&nbsp;wrote:</div>
<div>&gt;&gt;&nbsp;Hey,</div>
<div>&gt;&gt;</div>
<div>&gt;&gt;&nbsp;I&nbsp;Download&nbsp;the&nbsp;GlusterFS&nbsp;3.2.7&nbsp;Release&nbsp;and&nbsp;it&nbsp;works&nbsp;well.&nbsp;And&nbsp;I&nbsp;want</div>
<div>&gt;&gt;&nbsp;to&nbsp;improve&nbsp;the&nbsp;reading&nbsp;performance&nbsp;with&nbsp;FSCache/Cachefiles&nbsp;model.</div>
<div>&gt;&gt;&nbsp;I&nbsp;use&nbsp;the&nbsp;command&nbsp;line:</div>
<div>&gt;&gt;&nbsp;mount&nbsp;-t&nbsp;glusterfs&nbsp;server1:/test-volume&nbsp;/mnt/glusterfs&nbsp;-o&nbsp;fsc</div>
<div>&gt;&gt;&nbsp;and&nbsp;no&nbsp;error&nbsp;reported.&nbsp;But&nbsp;the&nbsp;local&nbsp;cache&nbsp;function&nbsp;of&nbsp;FSCache&nbsp;is&nbsp;not</div>
<div>&nbsp;</div>
</div><div>Does&nbsp;Glusterfs&nbsp;support&nbsp;fscache?&nbsp;File&nbsp;systems&nbsp;typically&nbsp;have&nbsp;to&nbsp;be</div>
<div>modified&nbsp;to&nbsp;include&nbsp;support&nbsp;for&nbsp;fscache&nbsp;(see&nbsp;fs/cifs/fscache*.[c,h]&nbsp;or</div>
<div>fs/nfs/fscache*.[c,h]&nbsp;in&nbsp;the&nbsp;kernel&nbsp;source&nbsp;for&nbsp;example).&nbsp;IOW,&nbsp;they&nbsp;have</div>
<div>to&nbsp;be&nbsp;fscache&nbsp;aware&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;use&nbsp;the&nbsp;persistent&nbsp;disk&nbsp;caching.</div>
<div>&nbsp;</div>
<div>Have&nbsp;you&nbsp;checked&nbsp;if&nbsp;the&nbsp;option&nbsp;&#39;fsc&#39;&nbsp;is&nbsp;being&nbsp;silently&nbsp;ignored?&nbsp;Try</div>
<div>mounting&nbsp;with&nbsp;&#39;-vvv&#39;&nbsp;to&nbsp;see&nbsp;whether&nbsp;it&nbsp;reveals&nbsp;more.</div>
<div>&nbsp;</div>
<div>What&nbsp;do&nbsp;you&nbsp;mean&nbsp;by&nbsp;&quot;local&nbsp;cache&nbsp;function&nbsp;of&nbsp;FSCache&nbsp;is&nbsp;not&nbsp;active&quot;?&nbsp;Did</div>
<div>you&nbsp;mean&nbsp;that&nbsp;the&nbsp;files&nbsp;are&nbsp;not&nbsp;getting&nbsp;cached?&nbsp;or&nbsp;File&nbsp;are&nbsp;not&nbsp;being</div>
<div>fetched&nbsp;from&nbsp;the&nbsp;cache&nbsp;when&nbsp;re-read?</div>
<div>&nbsp;</div>
<div>If&nbsp;it&nbsp;is&nbsp;already&nbsp;supported,&nbsp;are&nbsp;you&nbsp;running&nbsp;the&nbsp;cachefilesd&nbsp;user-space</div>
<div>daemon?</div>
<div>&nbsp;</div>
<div>FS-Cache&nbsp;by&nbsp;default&nbsp;uses&nbsp;/var/cache/fscache&nbsp;dir&nbsp;for&nbsp;caching.&nbsp;You&nbsp;could</div>
<div>check&nbsp;whether&nbsp;the&nbsp;cached&nbsp;files&nbsp;are&nbsp;being&nbsp;seen&nbsp;there.</div>
<div>&nbsp;</div>
<div>Also,&nbsp;/proc/fs/fscache/stats&nbsp;might&nbsp;reveal&nbsp;more&nbsp;details&nbsp;about&nbsp;pages</div>
<div>marked&nbsp;for&nbsp;caching,&nbsp;retrieved&nbsp;successfully&nbsp;from&nbsp;cache&nbsp;or&nbsp;cache&nbsp;returned</div>
<div>&nbsp;-ENODATA&nbsp;etc.</div><div class="im">
<div>&nbsp;</div>
<div>&gt;&gt;&nbsp;active.&nbsp;How&nbsp;can&nbsp;I&nbsp;use&nbsp;the&nbsp;local&nbsp;cache&nbsp;function&nbsp;of&nbsp;FSCache&nbsp;with&nbsp;Gluster</div>
<div>&gt;&gt;&nbsp;Native&nbsp;Client&nbsp;&nbsp;mount&nbsp;mode?</div>
<div>&gt;&gt;</div>
</div><div class="im"><div>&gt;&nbsp;Adding&nbsp;in&nbsp;the&nbsp;fscache&nbsp;list&nbsp;to&nbsp;see&nbsp;if&nbsp;anyone&nbsp;there&nbsp;has&nbsp;experimented&nbsp;with</div>
<div>&gt;&nbsp;this,</div>
<div>&gt;&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</div><span class="HOEnZb"><font color="#888888"><div>--&nbsp;</div>
<div>Suresh&nbsp;Jayaraman</div></font></span></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>