Engineering Notes

Personal notebook on Linux networking, molecular dynamics workflows, and distributed systems.

Linux TCP BBR & Socket Buffer Sizing

On high-BDP WAN links, default 212 KB socket limits cap single-stream throughput well below line rate. Pairing net.core.default_qdisc=fq with bbr and raising rmem_max/wmem_max to 32 MB eliminates unnecessary window clamping while keeping queuing latency bounded.

Policy-Based Routing with nftables Marks

Combining connection marks (ct mark) with dedicated routing tables allows deterministic multi-homing on dual-WAN OpenWrt routers without asymmetric return paths. Always pin established flows in prerouting before matching new connections.

Trajectory Storage Tiering

Keep active simulation directories on local NVMe/SSD storage to avoid FUSE metadata overhead during checkpoint writes, and periodically archive compressed trajectories and analysis notebooks to object storage.