Finding Performance Needles in Haystacks with APerf
summary
APerf is an open-source single-binary tracer that collects hundreds of system metrics for a wide‑then‑deep workflow; used here to compare R7G vs R8G and surface a clear signal: a 13x P99 regression driven by elevated TCP autocork counts and repeated 40 ms packet delays. Wireshark confirmed delayed ACK behavior; a one-line kernel fix (add an SMP memory barrier after setting the TSQ throttle bit) is implemented upstream and restores expected P99 and throughput.
AI-written summary · about
chapters (14)
- 0:00Introduction to APERF
- 2:19The Graviton 4 performance mystery
- 5:27Why systematic debugging matters
- 6:10Introducing APERF tool
- 7:14APERF's wide-first approach
- 9:42CPU utilization analysis
- 10:48Hardware PMU statistics
- 11:51Network statistics reveal issue
- 13:15Deep dive with Wireshark
- 15:42Kernel code investigation
- 18:32ARM memory ordering problem
- 19:58The one-line kernel fix
- 20:42Results and customer impact
- 21:24Q&A and contact information
