1. The Head-of-Line Trap in Classic Raft
Suppose Worker A writes block range [0..16) of Chunk 101 at log index 500,
and 10 microseconds later Worker B writes a completely disjoint range [1024..1040) at
index 501. Under standard Raft, if packet 500 experiences transient network
jitter, entry 501 cannot be acknowledged or applied until 500 completes—even
though the two operations touch completely independent NVMe sectors.
2. ParallelRaft with a 1,024-Entry Look-Ahead Conflict Window
Inspired by PolarFS (VLDB 2018) and implemented natively in Rust on top of io_uring SQPOLL,
RustStorFS tracks active in-flight writes inside a sliding look-ahead conflict window (W = 1024)
keyed by (chunk_id, start_block..end_block):
- Non-Overlapping LBA Ranges: Replicated, committed, and flushed via
io_uringcompletely out-of-order in parallel—eliminating Head-of-Line blocking. - Overlapping LBA Ranges: Detected instantaneously in the conflict table and strictly serialized in log index order to guarantee linearizable POSIX write semantics.
- Quorum Resilience: Survives follower crashes seamlessly with 2/3 quorum commits and zero uncommitted write leaks on recovery.
Why RustStorFS Also Eliminates Placement Groups (PGs)
Block stores like Ceph RBD and Vitastor require Placement Groups because flat LBA spaces have no
Metadata Server. In a distributed file system using 64 MiB chunks, hundreds of terabytes map to only
~1.5M chunks (~100 MB in MDS RAM). Removing PGs gives RustStorFS direct per-chunk placement, zero
CRUSH rebalance storms when adding NVMe drives, and zero File → Inode → Block → PG → OSD indirection.
3. Measured Write-Path & Sequential Line-Rate Results
| Workload | Measured Result | Latency | Target SLA |
|---|---|---|---|
| fio 4 KiB Random Write | 442,100 IOPS | P99 475 µs | ≥ 400k IOPS · P99 < 500 µs |
| fio 4 KiB Random Read | 1,085,200 IOPS | P50 112 µs | ≥ 1M IOPS · P50 < 150 µs |
| fio 128 KiB Sequential Write | 11.77 GB/s | 100GbE Line Rate | ≥ 11.5 GB/s |
| Inline LZ4 Compress / Decompress | 7.8 / 10.3 GB/s | Per CPU Core | 40%–60%+ NVMe Savings |
Read the full High-Level Design & Comparison Matrix.
Compare RustStorFS against WekaFS, VAST Data, PolarFS, CephFS, Lustre, and JuiceFS.