Hi everyone,
I'd like to share Curvine, an open-source distributed file system written in Rust. It is Apache-2.0 licensed and is a CNCF sandbox project.
- GitHub: GitHub - CurvineIO/curvine: AI-native, cloud-native file system in Rust. Full POSIX on object storage with a multi-tier distributed cache, for AI training, inference, and agents. CNCF Sandbox project. · GitHub
- Docs: Curvine Documentation - Curvine
What it does
Object storage such as S3 is cheap and durable, but many workloads (ML training, inference, build tools, AI agents) expect a fast local file system. Curvine sits between the two. Your data stays in S3, GCS, Azure Blob, OSS, MinIO or HDFS. Applications see a POSIX file system backed by a memory → SSD → HDD cache on the worker nodes.
You can access it through:
- a FUSE mount
- an S3-compatible gateway
- the Hadoop FileSystem API
- Rust, Java and Python SDKs
- a Kubernetes CSI driver
Files map 1:1 to object paths, so anything persisted to your bucket stays readable as plain objects without Curvine.
Why we chose Rust
The project is a rewrite of the kind of system usually built on the JVM (Alluxio and HDFS are the closest relatives). Our main reasons for Rust were predictable latency without GC pauses, low memory overhead per node, and direct access to Linux APIs without a JNI layer. In a production big-data shuffle workload, Curvine used over 90% less memory and over 50% less CPU than Alluxio.
The workspace is around 300k lines of Rust across ~50 crates. Some parts that may interest people here:
FUSE without libfuse. curvine-fuse speaks the FUSE kernel protocol directly over /dev/fuse. It does not link libfuse and does not use the fuser crate. Requests are decoded into Rust types, dispatched onto Tokio, and answered with writev for small replies. Large reads and writes go through splice(2) with a pool of pipes, which avoids copying file data through user space. It supports both FUSE 2 and FUSE 3 kernel ABIs via cargo features. The mount passes all 1,129 file system tests in the Linux Test Project, so tools like git, Vite and inotify work on it unchanged.
Custom RPC on Tokio. Master/worker/client traffic uses our own framed RPC crate (curvine-rpc), with protobuf (prost) for headers and raw byte payloads for data, so a block transfer doesn't pay for message encoding. Metadata requests go to the master; data flows directly between clients and workers.
Raft metadata. The master replicates its namespace with raft-rs (the TiKV implementation) and stores it in RocksDB. A single cluster holds up to 5 billion files. We recently replaced bincode with a small hand-written binary codec for persisted metadata records, mainly to get a frozen on-disk format with explicit per-record schema versions.
Pluggable allocators and storage. Allocators (jemalloc, mimalloc, system) are selected by cargo feature. Storage backends sit behind traits, with implementations for local files, SPDK (via FFI) and many object stores through Apache OpenDAL.
Language bindings from one core. The Java SDK uses jni and the Python SDK uses pyo3, both on top of a shared Rust client crate.
A single-node demo cluster in Docker:
curl -fsSL https://curvineio.github.io/install.sh | bash Or build from source (the repo pins its toolchain in rust-toolchain.toml) by following the documents.
Feedback welcome
We'd like to hear from Rust developers on any of this, especially:
- the FUSE layer: anyone else running a pure-Rust FUSE implementation in production, and how you handled the
unsafeboundary around the kernel ABI - async file I/O on Tokio versus io_uring for the worker data path
- crate layout in a large workspace (we split API traits from implementations to keep compile times and dependency graphs manageable)
Issues labeled good first issue are a good place to start if you want to contribute. We're also on Slack.
Thanks for reading.
1 post - 1 participant

