All posts

Topic

Systems & Infra

Systems programming, Linux kernel internals, io_uring, memory management, CPU architecture, SIMD, CXL memory pooling, and datacenter hardware. Performance-critical engineering at the metal.

14 posts · ~95 min of reading

Jul 8, 2026

How the Bw-Tree achieves latch-free concurrent access to B+ tree indexes through delta chains, an indirection mapping table, and epoch-based garbage collection, enabling linear scalability on modern many-core hardware.

data-structures databases concurrency 8 min

Jul 8, 2026

How CXL 3.1 fabric-attached memory eliminates stranded DRAM across server fleets, enabling dynamic memory composition with sub-200ns additional latency through hardware-coherent interconnects.

cxl memory-pooling disaggregated-memory 7 min

Jul 8, 2026

Exploring epoch-based reclamation (EBR), the technique that lets lock-free data structures deallocate memory without garbage collection, from the foundational quiescent-state mechanism through Crossbeam's production implementation to recent advances like PEBR and Hyaline.

concurrency memory-management lock-free 7 min

Jul 8, 2026

How io_uring eliminated the system call overhead that plagued Linux I/O for decades, and why submission queue polling lets the kernel do I/O without ever context-switching.

io_uring linux-kernel systems-programming 6 min

Jul 8, 2026

Linux's legacy page reclaim scanned the entire active list to find cold pages. Multi-Gen LRU replaces that O(n) scan with generation-based aging — cutting memory-pressure stalls by 40% in real workloads.

linux memory-management kernel 7 min

Jul 8, 2026

The Piecewise Geometric Model index uses linear regression segments to predict key positions, achieving O(log log n) point queries with orders-of-magnitude less space than B-trees. Here's the theory, the recursive structure, and why production systems are starting to care.

learned-indexes data-structures databases 8 min

Jul 8, 2026

How SGLang's RadixAttention uses a radix tree to automatically detect and reuse shared prefixes in KV caches, eliminating redundant computation and achieving up to 10x throughput gains for multi-turn LLM workloads.

llm-serving kv-cache radix-tree 6 min

Jul 8, 2026

How Roaring Bitmaps achieve intersection, union, and cardinality on billion-element sets in microseconds by partitioning integers into typed containers, each optimized for its density regime, and accelerated with SIMD vectorization.

data-structures databases indexing 7 min

Jul 8, 2026

Linux 6.12 merged sched_ext, a framework that lets you write CPU scheduler policies as BPF programs, load them at runtime, and swap them without rebooting. Here's how it works, why it matters, and what Meta learned running it in production.

linux-kernel ebpf scheduling 6 min

Jul 8, 2026

Flat hash maps based on Swiss Table design now dominate C++, Rust, Go, and Zig standard libraries. The key insight is not a better hash function or collision strategy, it is using SIMD to probe 16 slots in a single instruction, turning the control byte array into a hardware-accelerated Bloom filter.

data-structures performance simd 7 min

Jul 8, 2026

Push-based pipelines, morsel-driven parallelism, and selection vectors: the three architectural bets that let an in-process database saturate modern hardware without a cluster.

databases query-execution simd 6 min

Jul 6, 2026

EAGLE-3 gets up to 6.5x decoding speedup by abandoning the feature-prediction objective that defined its predecessors. The interesting part is why feature prediction became the bottleneck, and how a trick called training-time test fixes the train/inference mismatch it leaves behind.

llm-inference speculative-decoding performance 6 min

Jul 5, 2026

Prefill and decode have opposite hardware profiles, and serving them on the same GPUs wastes both. A practical tour of DistServe and Mooncake, the two papers behind the biggest architecture shift in LLM inference.

llm-inference kv-cache distributed-systems 7 min

Jul 5, 2026

A 2024 NSDI paper showed that a FIFO queue, one bit per object, and a lazy hand pointer can out-perform LRU, ARC, and friends on web workloads, while removing the lock that makes LRU a scalability bottleneck. Here is how SIEVE works and why its simplicity is the whole point.

caching algorithms systems 7 min