FileSystemCache
FileSystemCache is a memory-resident caching layer used by operating systems and applications to store recently accessed file data and filesystem metadata in RAM, in order to reduce disk I/O and improve performance. It is not a single universal component but a family of techniques implemented in different systems.
In many systems, the cache is divided into a data cache, which holds the actual contents of
When a file is read, the cache is checked first; on a hit, data is returned quickly.
Eviction and memory management: The cache has finite size; when memory pressure increases, entries are evicted
Consistency: Cache coherence is maintained by invalidating or updating entries when underlying files change on disk
Performance and tuning: The size of the cache, policies, and cache pressure parameters influence I/O performance
Examples: Linux uses a page cache for file data and separate inode and dentry caches in the
Limitations: Stale data risks with certain workloads; cache can become a bottleneck if memory is misallocated;