notes.58302741.xyz · systems & networking

Field Notes

Working scratchpad for Linux kernel tuning, transport benchmarks, SQLite operations, and systemd housekeeping.

Linux / TCP

Pairing BBR with FQ qdisc on Debian 13

TCP BBR relies on pacing frames accurately to avoid micro-bursts across high-BDP WAN links. Setting fq as the default queuing discipline ensures per-flow pacing works out of the box without extra tc rules.

net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
QUIC / HTTP/3

Raising UDP socket receive & send ceilings

Default Linux rmem_max and wmem_max sit near 208 KB, which caps user-space QUIC congestion windows under packet reordering. Bumping both to 8 MB eliminates premature receive-buffer drops during throughput bursts.

sysctl -w net.core.rmem_max=8388608 net.core.wmem_max=8388608
SQLite

Pragmas for predictable concurrent reads

Switching single-writer services to WAL mode with NORMAL sync and a short busy timeout prevents transient SQLITE_BUSY errors while keeping crash safety intact.

PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA busy_timeout = 5000;
systemd

Zero-downtime timer and deploy hook checks

Before trusting a background renewal or maintenance timer, inspect both its next scheduled trigger and run a non-destructive dry check against the active service unit.

systemctl list-timers --all --no-pager
journalctl -u certbot.service -n 20 --no-pager