CacheFS is the name used for several similar software technologies designed to speed up Network file system file access for networked computers. These technologies all operate in similar ways: they store (cache) copies of files on a local Hard disk so that if a file is accessed again, it can be done locally at much higher speeds than networks typically allow.
CacheFS software is used on several Unix-like operating systems. The original version was developed by Sun Microsystems in 1993. Another version was written for Linux and released in 2003.
Network filesystems are dependent on a network link and a remote server; obtaining a file from such a filesystem can be significantly slower than getting the file locally. For this reason, it can be desirable to cache data from these filesystems on a local disk, thus potentially speeding up future accesses to that data by avoiding the need to go to the network and fetch it again. The software has to check that the remote file has not changed since it was cached, but this is much faster than reading the whole file again.
Contents |
The first CacheFS implementation was developed by Sun Microsystems and released in the Solaris 2.3 operating system release in 1993, as part of an expanded feature set for the NFS or Network File System suite known as Open Network Computing Plus (ONC+).[1] It was subsequently used in other UNIX operating systems such as Irix (starting with the 5.3 release in 1994).[2] [3]
Linux operating systems now commonly use a new version of CacheFS developed by David Howells. Howells appears to have rewritten CacheFS from scratch, not using Sun's original code.
The Linux CacheFS currently is designed to operate on Andrew File System and Network File System filesystems.
Because of its similar naming to FS-Cache, CacheFS' terminology is confusing to outsiders. CacheFS is a backend for FS-Cache and handles the actual data storage and retrieval. FS-Cache passes the requests from netfs to CacheFS.
The cache facility/layer between the cache backends, like CacheFS, and NFS or AFS.
CacheFS is a Filesystem for the FS-Cache facility. A block device can be used as cache by simply mounting it. Needs no special activation and is deactivated by unmounting it.
Daemon using an existing filesystem (Ext3 with user_xattr) as cache. Cache is bound with "cachefilesd -s".
Project status seems to be stalled. Some people are attempting to revive the code and bring it up to date. [4]
The facility can be conceptualised by the following diagram:
The facility (known as FS-Cache) is designed to be as transparent as possible to a user of the system. Applications should just be able to use NFS files as normal, without any knowledge of there being a cache.
Outdated articles?