Re: [Gluster-devel] Caching support in glusterfs

2015-11-27 Thread Niels de Vos
On Tue, Nov 24, 2015 at 10:35:20AM -0500, Jeff Darcy wrote:
> 
> 
> 
> On November 24, 2015 at 6:47:59 AM, Avik Sil (avik@hgst.com) wrote:
> > While searching for caching support in glusterfs I stumbled upon this
> > link:
> > http://www.gluster.org/community/documentation/index.php/Features/caching  
> >  
> > But I didn't get much info from it. What is plan ahead?
> 
> There is some ongoing work on creating and improving the support
> necessary to support caching/delegations in Ganesha (NFS) and Samba
> (SMB).  Perhaps members of those teams could elaborate.  Unfortunately,
> there’s no current work on using those same features to create a
> generalized caching layer within “core” (native protocol) GlusterFS
> itself.  While there’s broad agreement that it would be useful, such an
> effort requires someone to lead/drive it and nobody has stepped up to do
> so.

Both the Linux NFS client (nfs kernel module) and the Linux SMB client
(cifs kernel module) support client-side read-caching through FS-Cache.
To use this, you basically do the following:

  # yum install cachefilesd
  # systemctl enable cachefilesd
  # systemctl start cachefilesd

  # mount -t nfs -o fsc storage.example.com:/volume /mnt

The above is from memory, and may not be completely correct. You can
find more details here:

  
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/caching/fscache.txt
  
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/caching/cachefiles.txt

There was a start to add support for FS-Cache to the FUSE kernel module,
but progress on that has stalled for a while. Assistance with that is
welcome, and I can find the work-in-progress patches if someone is
interested in helping out.

HTH,
Niels


signature.asc
Description: PGP signature
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel

Re: [Gluster-devel] Caching support in glusterfs

2015-11-26 Thread Soumya Koduri



On 11/26/2015 03:35 PM, Avik Sil wrote:



On Tuesday 24 November 2015 09:58 PM, Vijay Bellur wrote:



- Original Message -

From: "Avik Sil" 
To: gluster-devel@gluster.org
Sent: Tuesday, November 24, 2015 6:47:44 AM
Subject: [Gluster-devel] Caching support in glusterfs

While searching for caching support in glusterfs I stumbled upon this
link:
http://www.gluster.org/community/documentation/index.php/Features/caching


But I didn't get much info from it. What is plan ahead?



What aspects of caching support would you be interested in?


We'll be interested in client-side caching support. As Jeff mentioned,
can you please elaborate more on supporting caching in Ganesha and Samba?


As you may be aware of latest versions of NFS/SMB protocol have added 
the support for Delegation/Leases which shall guarantee certain 
semantics to their clients with respect to file sharing. Protocol 
clients thus are guaranteed cache consistency and can do aggressive data 
caching.


There is on-going effort to support such Leases on Gluster.

Apart from that, NFS-Ganesha server currently does attribute caching of 
the files and directories being accessed. I am not sure if there is any 
caching being done by SMB server. Request others to comment.


Thanks,
Soumya



Regards,
Avik
HGST E-mail Confidentiality Notice & Disclaimer:
This e-mail and any files transmitted with it may contain confidential
or legally privileged information of HGST and are intended solely for
the use of the individual or entity to which they are addressed. If you
are not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete the e-mail in its entirety from your
system.
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel

___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel


Re: [Gluster-devel] Caching support in glusterfs

2015-11-26 Thread Avik Sil



On Tuesday 24 November 2015 09:58 PM, Vijay Bellur wrote:



- Original Message -

From: "Avik Sil" 
To: gluster-devel@gluster.org
Sent: Tuesday, November 24, 2015 6:47:44 AM
Subject: [Gluster-devel] Caching support in glusterfs

While searching for caching support in glusterfs I stumbled upon this
link:
http://www.gluster.org/community/documentation/index.php/Features/caching

But I didn't get much info from it. What is plan ahead?



What aspects of caching support would you be interested in?


We'll be interested in client-side caching support. As Jeff mentioned, 
can you please elaborate more on supporting caching in Ganesha and Samba?


Regards,
Avik
HGST E-mail Confidentiality Notice & Disclaimer:
This e-mail and any files transmitted with it may contain confidential or 
legally privileged information of HGST and are intended solely for the use of 
the individual or entity to which they are addressed. If you are not the 
intended recipient, any disclosure, copying, distribution or any action taken 
or omitted to be taken in reliance on it, is prohibited.  If you have received 
this e-mail in error, please notify the sender immediately and delete the 
e-mail in its entirety from your system.
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel


Re: [Gluster-devel] Caching support in glusterfs

2015-11-24 Thread Vijay Bellur


- Original Message -
> From: "Avik Sil" 
> To: gluster-devel@gluster.org
> Sent: Tuesday, November 24, 2015 6:47:44 AM
> Subject: [Gluster-devel] Caching support in glusterfs
> 
> While searching for caching support in glusterfs I stumbled upon this
> link:
> http://www.gluster.org/community/documentation/index.php/Features/caching
> 
> But I didn't get much info from it. What is plan ahead?
> 

What aspects of caching support would you be interested in?

Thanks,
Vijay
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel


Re: [Gluster-devel] Caching support in glusterfs

2015-11-24 Thread Jeff Darcy



On November 24, 2015 at 6:47:59 AM, Avik Sil (avik@hgst.com) wrote:
> While searching for caching support in glusterfs I stumbled upon this
> link:
> http://www.gluster.org/community/documentation/index.php/Features/caching  
>  
> But I didn't get much info from it. What is plan ahead?

There is some ongoing work on creating and improving the support
necessary to support caching/delegations in Ganesha (NFS) and Samba
(SMB).  Perhaps members of those teams could elaborate.  Unfortunately,
there’s no current work on using those same features to create a
generalized caching layer within “core” (native protocol) GlusterFS
itself.  While there’s broad agreement that it would be useful, such an
effort requires someone to lead/drive it and nobody has stepped up to do
so.
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel

[Gluster-devel] Caching support in glusterfs

2015-11-24 Thread Avik Sil
While searching for caching support in glusterfs I stumbled upon this 
link: 
http://www.gluster.org/community/documentation/index.php/Features/caching


But I didn't get much info from it. What is plan ahead?

Thanks,
Avik
HGST E-mail Confidentiality Notice & Disclaimer:
This e-mail and any files transmitted with it may contain confidential or 
legally privileged information of HGST and are intended solely for the use of 
the individual or entity to which they are addressed. If you are not the 
intended recipient, any disclosure, copying, distribution or any action taken 
or omitted to be taken in reliance on it, is prohibited.  If you have received 
this e-mail in error, please notify the sender immediately and delete the 
e-mail in its entirety from your system.
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel