Available for consulting

Systems engineer & Go developer

I write about Linux internals, distributed systems, network performance, and the occasional Go deep-dive. Based in Berlin.

📍 Berlin, Germany github.com/psmirnov p@smirnov.dev RSS
PS

Pavel Smirnov

Senior systems engineer with 10+ years working on high-throughput networking infrastructure, kernel bypass stacks (DPDK, XDP/eBPF), and distributed storage. Currently OSS contributor to several Go networking libraries.

bbr_probe.go
// measure BBR congestion window via netlink
func getCWND(pid int) (uint32, error) {
    conn, err := netlink.Dial(syscall.NETLINK_INET_DIAG, nil)
    if err != nil {
        return 0, fmt.Errorf("dial: %w", err)
    }
    defer conn.Close()

    req := &InetDiagReq{Family: syscall.AF_INET, States: 0xfff}
    return queryCWND(conn, req, pid)
}

Recent posts

All posts →