CephFS as a KV Cache Tier: When Restoring Beats Recomputation
A tiered KV cache flow that moves blocks from GPU HBM to DRAM, local NVMe, and CephFS—and shows how to decide when restoring a block beats recomputing it.
Loading…
Topic
2 posts about Filesystems. Every summary links to the original.
See the idea
A tiered KV cache flow that moves blocks from GPU HBM to DRAM, local NVMe, and CephFS—and shows how to decide when restoring a block beats recomputing it.
A block device exposes storage as fixed-size addressable chunks and leaves filesystem logic to the kernel. Here is how that split decides latency, correctness, and who interprets each request.
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Android’s source code is massive, with the Android 17 release containing 1,084 Git repositories and 1.62 million files, making traditional checkouts and builds slow. Google built Another Build File Service (ABFS) to address these bottlenecks using a content-addressable filesystem and two-phase build caching. ABFS reduced checkout times from roughly 36 minutes to under 8 seconds and full build times from about 80 minutes to just over 2 minutes for the Cuttlefish emulator target, which executes 192,249 Ninja actions. The system lazy-loads source code and build files on demand, and its shared cache can reuse up to 100% of build actions across CI and developer workspaces, even when typical changes touch only 1-10 Git projects. ABFS is open source and designed to scale to other massive Git-based projects beyond Android.
Modal’s VM Sandboxes originally used virtio-fs on top of ImageFS, a lazy-loading FUSE filesystem. This stack caused severe performance degradation: recursive chown took over a minute instead of seconds, and tools like bun install and ripgrep ran three times slower. Analysis revealed that every metadata operation like chown required three round trips from the guest VM to the host, each incurring approximately 99 µs overhead. Modal replaced virtio-fs with ImageFS-blk, a block-level solution that presents a virtual block device to the guest, letting the kernel manage its own filesystem. The new approach delivers dramatic speedups: chown dropped from 9.87 to 0.21 seconds, and bun install fell from 12.5 to 1.07 seconds, often exceeding even direct ImageFS performance.
The best engineering reads, once a week.