You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #1632 deliberately cuts growing prefixes on cache geometry so later turns reuse prior state. A realistic 19K-token prefix can therefore contain roughly 9,500 segment references. Today each content-addressed segment is a separate file, eviction scans/parses manifests to reconstruct reference counts, and reads pay filesystem metadata and locality costs.
SGLANG-LSM identifies file-per-object metadata and locality as disk-KV bottlenecks and reports up to 143% more cache hits and 24% lower TTFT in its evaluated workloads.
Coordinated in Buzz channel #skippy-kv and tracked as an expanded optimization candidate for #1632.
Proposed direction
Retain the existing logical format and exactness contract while replacing file-per-segment physical storage with append-only packfiles or an LSM-style substrate:
digest to pack/offset/length/checksum index;
batched sequential writes and reads;
tombstones for logical deletion;
background compaction with bounded foreground impact;
atomic manifest publication only after all referenced segments are durable;
Promote only if a release-build A/B on the same hardware and workload improves end-to-end cache-hit TTFT and/or sustained cache throughput, does not regress p99 decode latency beyond the existing 5% limit, preserves exact output, and keeps write amplification within an explicitly reported bound.
Context
PR #1632 deliberately cuts growing prefixes on cache geometry so later turns reuse prior state. A realistic 19K-token prefix can therefore contain roughly 9,500 segment references. Today each content-addressed segment is a separate file, eviction scans/parses manifests to reconstruct reference counts, and reads pay filesystem metadata and locality costs.
SGLANG-LSM identifies file-per-object metadata and locality as disk-KV bottlenecks and reports up to 143% more cache hits and 24% lower TTFT in its evaluated workloads.
Coordinated in Buzz channel
#skippy-kvand tracked as an expanded optimization candidate for #1632.Proposed direction
Retain the existing logical format and exactness contract while replacing file-per-segment physical storage with append-only packfiles or an LSM-style substrate:
Checklist
Acceptance gate
Promote only if a release-build A/B on the same hardware and workload improves end-to-end cache-hit TTFT and/or sustained cache throughput, does not regress p99 decode latency beyond the existing 5% limit, preserves exact output, and keeps write amplification within an explicitly reported bound.