<!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: &#23435; 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 &nbsp;"mount -t glusterfs 
server1:/test-volume /mnt/glusterfs -o fsc"&nbsp; will be executed by 
/sbin/mount.glusterfs,&nbsp;and the "-o fsc" 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; 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-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B>&nbsp;<A href="mailto:sjayaraman@suse.com">Suresh 
Jayaraman</A></DIV>
<DIV><B>Date:</B>&nbsp;2012-12-05&nbsp;15:06</DIV>
<DIV><B>To:</B>&nbsp;<A href="mailto:wuwei.tsh@gmail.com">吴巍</A></DIV>
<DIV><B>CC:</B>&nbsp;<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>&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>&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>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;'fsc'&nbsp;is&nbsp;being&nbsp;silently&nbsp;ignored?&nbsp;Try</DIV>
<DIV>mounting&nbsp;with&nbsp;'-vvv'&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;"local&nbsp;cache&nbsp;function&nbsp;of&nbsp;FSCache&nbsp;is&nbsp;not&nbsp;active"?&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>&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>&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>--&nbsp;</DIV>
<DIV>Suresh&nbsp;Jayaraman</DIV></DIV></BODY></HTML>