Notes from 14 years of debugging Linux, PostgreSQL & Python in production.
I build and troubleshoot large-scale distributed storage and backend infrastructure. PureKit is where I document real-world root causes—from glibc malloc arenas and systemd namespaces to logrotate deadlocks and split-brain networks.
Areas of Focus
What I spend most of my engineering time onProduction Incident Forensics
Tracing hard-to-reproduce failures across Linux filesystems, systemd/udev sandboxes, VRRP networks, and silent upgrade scripts using core dumps, stat, lsof, and nsenter.
Runtime & Memory Performance
Dissecting high RSS growth, glibc malloc arena retention, Python GIL contention, and concurrency races with py-spy, pmap, and controlled experiments.
Observability & Security Engineering
Designing low-overhead Prometheus telemetry with hot-reload and TLS/mTLS, and building automated scanners to catch RBAC authorization gaps systematically.
Engineering Notes & Postmortems
Sanitized, real-world production write-upsHow logrotate copytruncate Deadlocked a 349 GB PostgreSQL Log for 386 Days
Forensic root-cause analysis using stat timestamps and zero-downtime disk recovery on a production PostgreSQL host.
Read note →
Why a 64-Core Linux Box Made Our Python Service Eat 7.6 GB RAM Every 2 Hours
Profiling 370 live thread stacks with py-spy and pmap to uncover three compounding causes behind OOM restarts and API timeout storms.
Read note →
Building a Production Prometheus Monitoring Framework for Database & Linux Clusters
Designing custom PostgreSQL/cache collectors, config hot-reload, high-cardinality guardrails, and TLS/mTLS encryption from scratch.
Read note →
Why systemd ProtectHostname=yes Broke udev Scripts After Host Rename
Tracing an isolated UTS namespace with nsenter to uncover why disk auto-replacement scripts kept seeing 'localhost' on renamed Linux nodes.
Read note →
Multithreaded fork() & os.popen() Corrupting glibc into Python SIGSEGV
Disassembling production core dumps to pinpoint a concurrency race inside glibc's internal open-stream list.
Read note →
Turning 3 Pen-Test Findings into a 66-Endpoint Authorization Overhaul
Writing an automated full-stack permission scanner that uncovered 66 read-only write bypasses and guarded 421 frontend routes.
Read note →
Why an Aborted Offline Upgrade Still Printed 'Upgrade Successful'
How Python's os.path.exists() dangling-symlink trap, swallowed exit codes, and uncaptured stderr masked a broken upgrade.
Read note →
VRRP Multicast Blackhole: 3-Master Split-Brain & 658 Service Restarts
Tracing duplicate virtual IPs and split task queues across a 3-node Linux HA cluster caused by dropped VRRP multicast packets.
Read note →
Say Hello
Always happy to trade war stories, discuss weird Linux/PostgreSQL bugs, or chat about interesting systems engineering problems.