Current Learning
An ongoing log of systems software topics, research papers, distributed protocols, and reference materials I am currently studying.
1. Linux io_uring & High-Throughput Asynchronous I/O
Kernel & Systems ArchitectureInvestigating Linux io_uring submission and completion ring buffers, kernel-bypass concepts, and zero-copy socket transfers compared to epoll multiplexing in Go.
- Understand SQ/CQ ring memory sharing between user-space and kernel memory.
- Measure context-switch reduction under 100k+ concurrent TCP streams.
- Benchmark registered file descriptors and fixed buffers against Go netpoller.
2. Log-Structured Merge-Trees (LSM) & Compaction Mechanics
Storage Engines & DatabasesWriting an educational persistent key-value engine in Go featuring MemTables, Write-Ahead Logs (WAL), immutable SSTables, and background compaction to analyze write amplification.
- Implement concurrent skip-list MemTable with lock-free reads.
- Construct block-indexed SSTables with CRC32 checksums and bloom filters.
- Analyze trade-offs between leveled compaction and tiered size-ratio compaction.
- [paper]The Log-Structured Merge-Tree (P. O’Neil, E. O’Neil, G. Weikum)
- [book]Designing Data-Intensive Applications (Martin Kleppmann, Ch. 3)
- [guide]RocksDB Architecture Guide & Write Amplification Analysis ↗
3. Formal Verification of Distributed Protocols with TLA+
Distributed SystemsSpecifying consensus algorithms and state machines formally using TLA+ and PlusCal to verify safety invariants (e.g. leader completeness, linearizable log indices) prior to implementation.
- Model network partitions and asynchronous message reordering in TLC model checker.
- Draft formal safety and liveness invariants for Raft cluster membership changes.
- Prevent edge-case split-brain anomalies in custom replication topologies.
- [book]Specifying Systems: The TLA+ Language (Leslie Lamport) ↗
- [book]Practical TLA+: Planning Driven Development (Hillel Wayne)
- [spec]Official Raft Consensus TLA+ Specification (Ongaro & Ousterhout) ↗
4. PostgreSQL Concurrency, MVCC & Isolation Anomalies
Relational Database InternalsAnalyzing PostgreSQL tuple header visibility maps, Serializable Snapshot Isolation (SSI) dependency graphs, predicate locks, and shared buffer pool dynamics under heavy write contention.
- Reproduce and prevent write skew, read-only transaction anomalies, and lost updates.
- Profile tuple bloat, vacuum freeze horizons, and multixact tracking.
- Optimize complex analytical queries using EXPLAIN (ANALYZE, BUFFERS) breakdowns.
- [paper]A Critique of ANSI SQL Isolation Levels (Berenson et al.)
- [spec]PostgreSQL Internal Architecture & Concurrency Control Manual ↗
- [guide]The Internals of PostgreSQL (Hironobu Suzuki) ↗