Kairo v0.1.0
Kairo v0.1.0
Kairo v0.1.0 marks the first public snapshot of the project as a full internal RFC/POC for AI KV-cache-aware Linux block I/O on generic NVMe SSDs.
This release moves the repo beyond a single scheduler idea and into a broader multi-patch kernel architecture backed by a measurable benchmark and validation harness. The focus remains local, benchmark-driven validation of whether Linux block-layer changes can reduce decode-read tail latency under mixed AI inference-like storage pressure.
Positioning
- internal RFC/POC
- experimental kernel patch series
- benchmark-driven prototype
- generic NVMe SSD focus
- AI inference-like KV-cache workload modeling
- not intended for LKML submission at this stage
Highlights
Full Kairo patch series scaffold
The kernel/patches/ directory now carries a nine-patch Kairo RFC/POC series:
0001-rfc-kairo-mq-deadline-decode-priority.patch0002-rfc-kairo-request-classification.patch0003-rfc-kairo-io-uring-hint-plumbing.patch0004-rfc-kairo-large-block-coalescing.patch0005-rfc-kairo-prefetch-deadline-hints.patch0006-rfc-kairo-ephemeral-cache-semantics.patch0007-rfc-kairo-placement-lifetime-hints.patch0008-rfc-kairo-nvme-zns-fdp-mapping.patch0009-rfc-kairo-sysfs-debug-counters.patch
The series now spans:
mq-deadlinedecode-read prioritization- shared request classification helpers
- experimental
io_uring/RWF_KAIRO_*hint plumbing - large-block merge bias for KV-style reads
- prefetch-specific urgency modeling
- ephemeral and recomputable cache semantics
- model/session/lifetime placement hints
- generic NVMe Streams/FDP/ZNS mapping hooks
- sysfs and debug observability counters
Measurable validation path
Kairo now includes a stronger local validation harness for Linux 6.8.x:
kernel/integration/linux-6.8/patch apply and block-build helpersscripts/validate_kairo_runtime.shfor runtime counter validationscripts/run_ab_experiment.shfor baseline vs Kairo comparisonscripts/run_multisession_experiment.shfor session/model fan-out pressurescripts/collect_kairo_counters.shand expanded block-stat collection
The main proof points remain:
decode_avg_usdecode_p50_usdecode_p95_usdecode_p99_uswrite_MBps- Kairo dispatch-counter deltas showing whether the Kairo path was actually hit
Benchmark upgrade
bench/kairo_bench.c now behaves more like an AI KV-cache storage harness than a generic mixed-I/O toy.
New benchmark modes:
decode-onlymixedprefetch-pressureeviction-pressuremultisession
New workload controls include:
--sessions--models--evict-threads--prefill-region-pct--decode-region-pct
The benchmark summary now reports workload shape and ioprio setup status, including:
modesessionsmodelsevict_threadsioprio_decode_okioprio_decode_failioprio_prefetch_okioprio_prefetch_failioprio_write_okioprio_write_fail
Documentation added
This release adds architecture-facing project docs that explain the broader Kairo direction:
docs/patch_series.mddocs/full_architecture_status.mddocs/roadmap.mddocs/tested_kernel_matrix.md
These documents map the Kairo vision to concrete patch areas and separate the implemented proof point from the more aggressive RFC/POC scaffolds.
Current state
What is relatively strong today:
- repo structure and architecture direction
- benchmark and experiment harness
0001decode-priority path as the current kernel proof point- validation and observability workflow
What is still intentionally RFC/POC-level:
- deeper request metadata plumbing across the stack
- prefetch deadline policy tuning
- ephemeral semantics behavior in real kernels
- generic NVMe backend mapping hooks
- full runtime validation of later patches beyond
0001
Suggested next steps
- validate
0002to0005against a concrete Linux 6.8.x source tree - boot a patched kernel and confirm expanded Kairo sysfs counters are visible
- run
scripts/run_ab_experiment.shandscripts/run_multisession_experiment.shon a generic NVMe SSD - populate
docs/tested_kernel_matrix.mdwith boot/runtime results - use the new counters to confirm whether decode, prefetch, merge, and hinted-request paths are actually active
Key commits in this release
bffefe3poc: validate Kairo mq-deadline patch against Linux 6.8cf011absupernova: add Kairo validation and A/B experiment harnessc2e14cdsupernova: expand Kairo into full KV-cache-aware kernel patch series