Skip to main content
QUICK REVIEW

[Paper Review] The nanoPU: Redesigning the CPU-Network Interface to Minimize RPC Tail Latency

Stephen Ibanez, Alex Mallery|arXiv (Cornell University)|Oct 23, 2020
Interconnection Networks and SystemsComputer Science36 references8 citations
TL;DR

The nanoPU is a domain-specific CPU core that bypasses the memory hierarchy and caches, routing RPC packets directly into the CPU register file to achieve wire-to-wire latency as low as 65ns—13× faster than state-of-the-art systems. By offloading core selection, thread scheduling, and reliable transport to hardware, it achieves bounded tail latency under 1μs, enabling high-throughput, sub-microsecond RPCs for microservices and distributed applications.

ABSTRACT

The nanoPU is a new networking-optimized CPU designed to minimize tail latency for RPCs. By bypassing the cache and memory hierarchy, the nanoPU directly places arriving messages into the CPU register file. The wire-to-wire latency through the application is just 65ns, about 13x faster than the current state-of-the-art. The nanoPU moves key functions from software to hardware: reliable network transport, congestion control, core selection, and thread scheduling. It also supports a unique feature to bound the tail latency experienced by high-priority applications. Our prototype nanoPU is based on a modified RISC-V CPU; we evaluate its performance using cycle-accurate simulations of 324 cores on AWS FPGAs, including real applications (MICA and chain replication).

Motivation & Objective

  • Reduce RPC tail latency in cloud-based microservices architectures, which currently limits performance due to high variability in response times.
  • Address the fundamental bottleneck of memory and cache hierarchies in traditional CPU-NIC communication paths that introduce unpredictable latency.
  • Design a hardware-optimized CPU core that directly processes network packets in the register file, eliminating software stack overhead and memory access delays.
  • Achieve bounded tail latency for high-priority RPCs through hardware-based scheduling and congestion control, ensuring deterministic performance.
  • Enable efficient, low-overhead sub-microsecond RPCs by rearchitecting the CPU-network interface to prioritize packet data as first-class citizens, akin to memory data.

Proposed method

  • Bypass the cache and main memory hierarchy by routing incoming RPC packets directly into the CPU’s register file, eliminating memory access delays.
  • Implement hardware-based thread scheduling and core selection using a JBSQ-like load-balancing policy to avoid software-induced scheduling overhead.
  • Integrate a P4-programmable pipeline in the NIC to perform header and transport layer processing in parallel, enabling pipelined packet processing.
  • Implement the NDP congestion control protocol in hardware to reduce network incast and improve end-to-end latency.
  • Use a modified RISC-V core as a prototype, with cycle-accurate simulations on AWS FPGAs to evaluate performance across 324 cores.
  • Replace the traditional software networking stack with a hardware-based reliable transport layer that ensures complete message delivery to the CPU.

Experimental results

Research questions

  • RQ1Can a CPU core be redesigned to minimize wire-to-wire latency for RPCs by eliminating memory and cache hierarchy bottlenecks?
  • RQ2To what extent can hardware offloading of core selection, thread scheduling, and transport protocols reduce tail latency in high-throughput RPC workloads?
  • RQ3Is it feasible to achieve bounded tail latency (e.g., <1μs) for RPCs using a hardware-optimized, register-file-first architecture?
  • RQ4How does direct packet-to-register-file routing compare to traditional memory-based packet processing in terms of median and tail latency?
  • RQ5Can a domain-specific nanoPU core achieve sub-microsecond RPC performance while remaining programmable and scalable in real-world distributed applications?

Key findings

  • The nanoPU achieves a wire-to-wire latency of 65ns, representing a 13× improvement over the state-of-the-art (850ns median).
  • By bypassing the cache and memory hierarchy, the nanoPU eliminates interference from application memory accesses, significantly reducing tail latency.
  • Hardware-based core selection and thread scheduling reduce scheduling overhead, enabling deterministic and low-latency RPC processing.
  • The nanoPU implements NDP congestion control in hardware, improving incast performance and reducing network-induced latency variations.
  • The system achieves bounded tail latency, guaranteeing that any conforming RPC completes within 1μs of arrival at the NIC.
  • Cycle-accurate simulations on 324-core AWS FPGA platforms confirm that the nanoPU enables over 500 million RPCs per second at sustained 10Tb/s throughput.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.