FS-Cache questions: Delayed writing / aliasing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi David, hi everyone,

I am currently preparing some slides about FS-Cache regarding our Linux 
Performance Analysis & Tuning training.

I do have some questions:


1) What kind of caching does FS-Cache do?

I understand that FS-Cache does read caching.

I understand that FS-Cache can do write-through caching and should do so via 
NFS and CIFS. Thus when I write something into the NetFS it will be in the 
cache (unless purged in the meanwhile). Does the AFS support support write-
through caching?

Does it also do delayed writing? I.e. writes go to the cache at cache writing 
speed and are then synchronized with the NetFS in the background?

I didn't found a definite answer in [1] or [2].


2) Your paper about FS-Cache [2] mentions cache aliasing issues when accessing 
the same cache through different NetFS like NFS / CIFS or withing NFS as well.

What is the current status about this?

I understand that it should be safe when I obey the following rules:

- NFS: Each directory tree on the server is only mounted once on the client
- NFS: Sub directories of an already mounted directory on the server are not 
mounted on the client - i.e. no overlapping of server directory trees by the 
client
- Each directory tree is only mounted via one NetFS on the client

Are all these still valid?

Are there any other issues to consider?


3) What is the current state of NFS, CIFS and AFS integration? Are these 
suitable for production use in your oppinion? I have NFS FS-Cache via 
Cachefiles in testing on my workstation since a week and it seems to work.


4) What has happened to CacheFS? Is it still stalled? It does not seem to be 
integrated in mainline kernel.


I am willing to provide a patch for fscache.txt with includes some information 
about these topics.

[1] Documentation/filesystems/caching/fscache.txt
[2] http://people.redhat.com/.../fscache/FS-Cache.pdf

Thanks,
-- 
Martin Steigerwald - teamix GmbH - http://www.teamix.de
gpg: 19E3 8D42 896F D004 08AC A0CA 1E10 C593 0399 AE90

--
Linux-cachefs mailing list
Linux-cachefs@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cachefs


[Linux Resources]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

Powered by Linux