Unleashing SmartNIC Packet Processing Performance in P4
Authors:
- Jiarong XingJXJiarong Xing
- Yiming QiuYQYiming Qiu
- Kuo-Feng HsuKHKuo-Feng Hsu
- Songyuan SuiSSSongyuan Sui
- Khalid ManaaKMKhalid Manaa
- Omer ShabtaiOSOmer Shabtai
- Yonatan PiasetzkyYPYonatan Piasetzky
- Matty KadoshMKMatty Kadosh
- Arvind KrishnamurthyAKArvind Krishnamurthy
- T. S. Eugene NgTNT. S. Eugene Ng
- Ang ChenACAng Chen
Open Access
- 10 September 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1028-1042
Abstract
SmartNICs are on the rise as a packet processing platform, with the trend towards a uniform P4 programming model. However, unleashing SmartNIC packet processing performance in P4 is a formidable task. Traditional SmartNIC optimizations rely on low-level program tuning, but P4 abstractions operate at one level above. At the same time, today's P4 optimizations primarily focus on resource packing rather than performance tuning. We develop Pipeleon, an automated performance optimization framework for P4 programmable SmartNICs. We introduce techniques that are tailored to the performance characteristics of SmartNICs, and further leverage dynamic workload patterns for profile-guided optimization. Pipeleon pinpoints program hotspots at the P4 level and computes runtime optimization plans to specialize the program layout based on the latest profile. We have prototyped Pipeleon and applied it to optimize two popular P4 SmartNICs---Nvidia BlueField2 and Netronome Agilio CX---as well as a software SmartNIC emulator extended based on BMv2. Our results show that Pipeleon significantly improves SmartNIC packet processing performance in realistic scenarios.Keywords
Funding Information
- NSF (National Science Foundation) (CNS-1801884, CNS-1942219, CNS-2016727, CNS-2106388, CNS-2106751, CNS-2213387, CNS-2214272)
- VMware (VMware Early Career Faculty Grant)
- Google (Google Ph.D. Fellowship)
This publication has 27 references indexed in Scilit:
- Compiling Packet Programs to Reconfigurable Switches2020
- BOLT: A Practical Binary Optimizer for Data Centers and Beyond2019
- MATReduce: Towards High-Performance P4 Pipeline by Reducing Duplicate Match Operations2018
- T4P4S: A Target-independent Compiler for Protocol-independent Packet Processors2018
- B-Cache: A Behavior-Level Caching Framework for the Programmable Data Plane2018
- P4FPGA2017
- PISCES2016
- Dataplane Specialization for High-performance OpenFlow Software Switching2016
- A region-based compilation technique for dynamic compilersACM Transactions on Programming Languages and Systems, 2006
- Region-based compilation: an introduction and motivation1995