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