Optimizing eBPF I/O latency accounting when running 37M IOPS on a 384-CPU server

In this post I will introduce a much more efficient method for accounting block I/O latencies with eBPF on Linux. In my stress test, the &ldquo;new biolatency&rdquo; accounting method had 59x lower CPU and probe latency overhead compared to the current biolatency approach. So I couldn&rsquo;t help it and ended up putting 21 NVMe SSDs into one of my homelab servers. 8 of them are PCIe5 and the…