[Linux-cachefs] question about write-back / write-behind

Дмитрий Ильин idv1985 at gmail.com
Wed Aug 31 08:03:04 UTC 2011


30.08.2011, в 17:19, Christian написал(а):

> Hello to all,
> 
> I am looking for a possibility to cache reads and writes from and to a nfs mount. Read requests will be cached, that works fine, but I also want to cache writes.
> The situation is the following:
> 
> I've got some people working in office A and some in office B. The offices are combined by glusterfs. Write-back or write-behind caching doesn't work in glusterfs, so I am looking for a workaround. The method of storing cached files locally on hard disk is what I'm looking for. So the client applications gets an "finished" and the cachefs / glusterfs is syncing the content in background.
> Is there a way to use cachefs as a write-back / write-behind cache?
> 
> thanks a lot,
> 
> Christian
> 
> --
> Linux-cachefs mailing list
> Linux-cachefs at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cachefs

Yes cachefs does work for RW mounts, caching read files and bypassing to server written files.
But fscache is not very stable under heavy load and sometimes causes kernel panic, so use with caution.

If you are using glusterfs why cannot you mount glusterfs on all clients and use gluster's data replication to make full copy of all data on all clients. It will have outstanding performance and reliability. Or your data is too large?




More information about the Linux-cachefs mailing list