World Library  
Flag as Inappropriate
Email this Article

CacheFS

Article Id: WHEBN0008272160
Reproduction Date:

Title: CacheFS  
Author: World Heritage Encyclopedia
Language: English
Subject: Clustered file system, Solaris (operating system), Network File System
Collection: Network File Systems
Publisher: World Heritage Encyclopedia
Publication
Date:
 

CacheFS

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 secondary memory, typically 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 Unix 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

  • Prior Art 1
  • Grossmont version 2
  • Sun version 3
  • Linux version 4
    • Terminology 4.1
    • FS-Cache 4.2
    • Cache Backends 4.3
      • CacheFS 4.3.1
      • Cachefiles(daemon) 4.3.2
  • Project status 5
  • Features 6
  • References 7
  • External links 8

Prior Art

Sprite (operating system) used large disk block caches. These were located in main-memory to achieve high performance in its file system. The term CacheFS has found little or no use to describe caches in main memory.

Grossmont version

The first CacheFS implementation, in 6502 assembler, was a write through cache developed by Mathew R Mathews at Grossmont College. It was used from Fall 1986 to Spring 1990 on three diskless 64 kB main memory Apple IIe computers to cache files from a Nestar file server onto Big Board, a 1 MB DRAM secondary memory device partitioned into CacheFS and TmpFS. The computers ran Pineapple DOS, an Apple DOS 3.3 derivative developed in the course of a follow on to WR Bornhorst's NSF funded Instructional Computing System. Pineapple DOS features, including caching, were unnamed; the name CacheFS was introduced seven years later by Sun Microsystems.

Sun version

The first Unix 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 version

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.

Terminology

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.

FS-Cache

The cache facility/layer between the cache backends just like CacheFS and NFS or AFS.

Cache Backends

CacheFS

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.

Cachefiles(daemon)

Daemon using an existing filesystem (ext3 with user_xattr) as cache. Cache is bound with "cachefilesd -s".

Project status

Project status seems to be stalled, and some people are attempting to revive the code and bring it up to date.[4]

Features

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.

References

  1. ^ New Features in Solaris 2.4 in the Solaris 2.4 AnswerBook documentation, Sun Microsystems, 1994. Accessed Sept 10, 2007
  2. ^ IRIX 6.5 ONC3/NFS Administrators Guide, Silicon Graphics, 2005. Accessed Sept 10, 2007
  3. ^ History of IRIX, Ryan Thoryk, revision of January 18, 2007. Accessed Sept 10, 2007
  4. ^ Gilliam, Paul [1], "linux-cachefs mailing list", September 29, 2010

External links

  • Fscache-ols2006 Presentation
  • D.Howells@Red Hat
  • Steve D.@Red Hat
  • Red Hat CacheFS mailinglist

Outdated articles?

  • LWN.NET A general caching filesystem
  • LWN.NET Initial mail introducing cacheFS for Linux
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.