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 Architecture

Investigating Linux io_uring submission and completion ring buffers, kernel-bypass concepts, and zero-copy socket transfers compared to epoll multiplexing in Go.

Focus Objectives:
  • 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 & Databases

Writing an educational persistent key-value engine in Go featuring MemTables, Write-Ahead Logs (WAL), immutable SSTables, and background compaction to analyze write amplification.

Focus Objectives:
  • 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.
References & Readings:

3. Formal Verification of Distributed Protocols with TLA+

Distributed Systems

Specifying consensus algorithms and state machines formally using TLA+ and PlusCal to verify safety invariants (e.g. leader completeness, linearizable log indices) prior to implementation.

Focus Objectives:
  • 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.
References & Readings:

4. PostgreSQL Concurrency, MVCC & Isolation Anomalies

Relational Database Internals

Analyzing PostgreSQL tuple header visibility maps, Serializable Snapshot Isolation (SSI) dependency graphs, predicate locks, and shared buffer pool dynamics under heavy write contention.

Focus Objectives:
  • 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.
References & Readings: