[Paper Review] $\lambda$-NIC: Interactive Serverless Compute on Programmable SmartNICs
This paper presents $\lambda$-NIC, a serverless computing framework that executes interactive workloads directly on programmable SmartNICs using a novel Match+Lambda abstraction and a specialized machine model. By leveraging the SmartNIC's high-core-count NPU architecture, $\lambda$-NIC achieves up to 880x lower latency and 736x higher throughput than CPU-based serverless systems, while drastically reducing host CPU and memory usage.
There is a growing interest in serverless compute, a cloud computing model that automates infrastructure resource-allocation and management while billing customers only for the resources they use. Workloads like stream processing benefit from high elasticity and fine-grain pricing of these serverless frameworks. However, so far, limited concurrency and high latency of server CPUs prohibit many interactive workloads (e.g., web servers and database clients) from taking advantage of serverless compute to achieve high performance. In this paper, we argue that server CPUs are ill-suited to run serverless workloads (i.e., lambdas) and present $\\lambda$-NIC, an open-source framework, that runs interactive workloads directly on a SmartNIC; more specifically an ASIC-based NIC that consists of a dense grid of Network Processing Unit (NPU) cores. $\\lambda$-NIC leverages SmartNIC's proximity to the network and a vast array of NPU cores to simultaneously run thousands of lambdas on a single NIC with strict tail-latency guarantees. To ease development and deployment of lambdas, $\\lambda$-NIC exposes an event-based programming abstraction, Match+Lambda, and a machine model that allows developers to compose and execute lambdas on SmartNICs easily. Our evaluation shows that $\\lambda$-NIC achieves up to 880x and 736x improvements in workloads' response latency and throughput, respectively, while significantly reducing host CPU and memory usage.
Motivation & Objective
- To address the limitations of CPU-based serverless computing, such as high context-switching overhead and poor concurrency, especially for low-latency, interactive workloads.
- To explore the feasibility and performance benefits of running serverless functions directly on SmartNICs using their high-core, low-latency architecture.
- To simplify SmartNIC programming by abstracting low-level hardware complexity through a high-level event-driven programming model.
- To achieve strict tail-latency guarantees and high throughput by exploiting the massive parallelism of NPU cores on ASIC-based SmartNICs.
- To reduce host CPU and memory overhead by offloading entire serverless workloads from the host to the SmartNIC.
Proposed method
- Introduces the Match+Lambda abstraction, a high-level programming model that allows developers to define event-driven lambdas triggered by network packet matches.
- Employs a machine model extending P4’s match-action paradigm with richer actions to support complex, stateful serverless function execution on SmartNICs.
- Uses RDMA for reliable, low-latency transport of multi-packet messages between client and SmartNIC-hosted lambdas.
- Compiles and optimizes Match+Lambda functions into efficient NPU code, managing resource allocation, scheduling, and memory access across the NPU grid.
- Enables full serverless function execution on the SmartNIC, eliminating the need for host CPU intervention and virtualization layers.
- Supports both packet-level and message-level processing by integrating with modern NICs that can terminate TCP and handle complete messages.
Experimental results
Research questions
- RQ1Can SmartNICs with hundreds of NPU cores effectively replace host CPUs for running thousands of concurrent, low-latency serverless functions?
- RQ2How can a high-level, developer-friendly abstraction be designed to hide the complexity of SmartNIC hardware while enabling efficient execution of serverless workloads?
- RQ3To what extent can offloading serverless functions to SmartNICs reduce host CPU and memory usage while improving latency and throughput?
- RQ4What performance gains are achievable in real-world interactive workloads when running serverless functions directly on a SmartNIC instead of a CPU?
- RQ5Can strict tail-latency guarantees be achieved in a highly parallel, distributed SmartNIC environment for interactive workloads?
Key findings
- The $\lambda$-NIC framework achieves up to 880x improvement in response latency compared to traditional CPU-based serverless execution.
- Throughput is improved by up to 736x, demonstrating the effectiveness of massive parallelism on the SmartNIC’s NPU cores.
- Host CPU utilization is significantly reduced, as the entire workload is offloaded to the SmartNIC, eliminating virtualization and context-switching overhead.
- Memory usage on the host is drastically reduced, as serverless functions run in isolated, local memory on the SmartNIC with no need for container or VM overhead.
- The Match+Lambda abstraction enables efficient compilation and deployment of lambdas on SmartNICs, abstracting low-level hardware complexity without sacrificing performance.
- The framework supports both packet-level and message-level processing, enabling integration with modern transport protocols like TCP that are now being terminated on the NIC.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.