<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: 宋 COLOR: #000000; FONT-SIZE: 10.5pt; 20307:
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16455"></HEAD>
<BODY 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; 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-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:sjayaraman@suse.com">Suresh
Jayaraman</A></DIV>
<DIV><B>Date:</B> 2012-12-05 15:06</DIV>
<DIV><B>To:</B> <A href="mailto:wuwei.tsh@gmail.com">吴巍</A></DIV>
<DIV><B>CC:</B> <A href="mailto:ricwheeler@gmail.com">Ric Wheeler</A>; <A
href="mailto:gluster-users@gluster.org">gluster-users</A>; <A
href="mailto:linux-cachefs@redhat.com">linux-cachefs</A>; <A
href="mailto:gluster-devel@nongnu.org">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>> 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>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> </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>> Adding in the fscache list to see if anyone there has experimented with</DIV>
<DIV>> this,</DIV>
<DIV>> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Suresh Jayaraman</DIV></DIV></BODY></HTML>