User-space simulation of the WSBuffer architecture from the FAST'26 paper "Rearchitecting Buffered I/O in the Era of High-Bandwidth SSDs".
This project reproduces the core mechanisms of WSBuffer in a user-space C program, including:
- Scrap Buffer (§3.2): 128B header + 256KB data-zone pages with merge-friendly data segments
- Buffer-Minimized Data Access (§3.3): Small writes to scrap buffer, large writes split with aligned parts going directly to SSD
- OTflush (§3.4): Two-phase async flush — Stage-1 read-before-write for unfilled pages, Stage-2 batch write for full pages
- Concurrent Page Management (§3.5): Fine-grained per-group locking vs global lock comparison
A traditional 4KB Page Cache implementation serves as the control group for benchmarks.
make # Build everything ./test_main # Run unit tests (10 tests) ./bench_main # Run benchmarks (throughput, latency, partial-page) make clean # Clean build artifacts
include/ # Headers: common.h, scrap_buffer.h, page_cache.h, etc.
src/ # Core implementations
bench/ # Benchmark suite (throughput, latency, partial-page write)
test/ # Unit tests
- Throughput: Sequential 2MB writes with 1–16 threads, Page Cache vs WSBuffer
- Latency: Write latency across 4KB–4MB sizes
- Partial-page: Full vs partial page/scrap-page write latency comparison