Linux MSG_ZEROCOPY: Completion Ranges, Buffer Ownership, and Honest Benchmarks
Implement Linux MSG_ZEROCOPY as an asynchronous buffer-lifetime contract with error-queue completions, fallback handling, and workload benchmarks.
tag
12 posts
Implement Linux MSG_ZEROCOPY as an asynchronous buffer-lifetime contract with error-queue completions, fallback handling, and workload benchmarks.
Diagnose Linux TCP listener overload by separating incomplete SYN requests from established connections awaiting accept, then tune the measured bottleneck.
Use Linux AF_VSOCK with explicit CIDs, ports, transport checks, reconnect behavior, and application-level validation across guests and hosts.
Build and diagnose systemd socket-activated services by tracing listener ownership, descriptor handoff, Accept modes, restart behavior, and readiness boundaries.
Learn how FreeBSD accept filters hold incoming sockets until useful data arrives, where accf_http helps, and why it is not an HTTP security layer.
Use FreeBSD sendfile(2) to stream files from a connected socket while understanding offsets, partial progress, headers, and failure handling.
Use FreeBSD sockstat to identify socket owners, separate listeners from sessions, inspect jail scope, and verify network changes without guessing.
Resolve Haiku host and service names with BNetworkAddressResolver, iterate address candidates safely, and keep DNS failure separate from connection failure.
Build correct Linux epoll loops by handling readiness, edge-triggered drains, duplicated descriptors, one-shot rearming, and backpressure explicitly.
Scale Linux TCP or UDP listeners with SO_REUSEPORT while validating bind order, effective-UID rules, flow distribution, and optional BPF selectors.
Set Linux TCP_USER_TIMEOUT deliberately: understand milliseconds, zero-window stalls, keepalive interaction, state scope, and application deadlines.
Configure launchd-managed sockets and retrieve their descriptors with launch_activate_socket instead of racing to bind a port in every daemon.