Skip to contentSkip to conversation

BPF related blogpost on network troubleshooting at Facebook

DISCUSSION Jesper Dangaard Brouer 1 participant 1 message Apr 29, 2022

lore
Share & tools
lore
#0 lore raw

Hi BPF-fans,

Super awesome BPF related blogpost[0] by Jakub "Kuba" Kicinski (one of the netdev kernel maintainers).

- [0]
https://developers.facebook.com/blog/post/2022/04/25/investigating-tcp-self-throttling-triggered-overload/

On how Facebook used BPF to troubleshoot a productions issue with TCP bufferbloat at high data-center rates, that caused CPUs to spin 100% in netstack NAPI processing stage.

I also loved their approach to implement CoDel in XDP for throttling the RX-queue (that were overflowing) at an earlier stage that netstack as the CPU was in a 100% overload state. They didn't share their CoDel BPF implementation, but I've added a link here[3] to my own code.

--Jesper

Social media links:
[1] https://twitter.com/JesperBrouer/status/1520051491733712896
[2]
https://www.linkedin.com/feed/update/urn:li:activity:6925818081055289344/
[3]
https://github.com/xdp-project/bpf-examples/blob/master/traffic-pacing-edt/codel_impl.h