Major Rewrite Of Linux's FS-Cache / CacheFiles So It's Smaller & Simpler
Written by Michael Larabel in Linux Storage on 29 November 2021 at 02:24 PM EST. 42 Comments
LINUX STORAGE --
As part of David Howells of Red Hat long-term work on improving the caching code used by network file-systems, he today posted a big patch series rewriting the fscache and cachefiles code as the latest significant step on that adventure.

Howells posted a set of 64 patches for rewriting the kernel's fscache and cachefiles code. Linux's fsache is a general purpose cache used by network file-systems while cachefiles is for providing a caching back-end for mounted local file-systems. The Red Hat engineer has been working on this rewrite for more than the past year.

As for the motivation of this major rewrite to FS-Cache and CacheFiles, Howells explained, "significantly simplifying the code compared to what's upstream, removing the complex operation scheduling and object state machine in favour of something much smaller and simpler."

The fscache and cachefiles driver code is almost entirely new as well as being designed to be more future-proof on top of the immediate efficiency and simplicity gains. But there are some issues still to work through as mentioned in the patch email.

See this patch series if the topic interests you or are a big user of Linux network file-systems.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week