Skip to main content
QUICK REVIEW

[Paper Review] Telepathic Datacenters: Fast RPCs using Shared CXL Memory

Suyash Mahar, Ehsan Hajyjasini|arXiv (Cornell University)|Aug 21, 2024
Distributed and Parallel Computing SystemsComputer Science3 citations
TL;DR

RPCool is a novel RPC framework that enables fast, secure, and scalable remote procedure calls by leveraging shared CXL memory to eliminate serialization overhead. It achieves 1.93× lower round-trip latency than state-of-the-art RDMA and 7.2× lower than CXL-based RPCs by using pointer passing, memory permission sealing, sandboxed validation, and automatic RDMA fallback for scalability.

ABSTRACT

Datacenter applications often rely on remote procedure calls (RPCs) for fast, efficient, and secure communication. However, RPCs are slow, inefficient, and hard to use as they require expensive serialization and compression to communicate over a packetized serial network link. Compute Express Link 3.0 (CXL) offers an alternative solution, allowing applications to share data using a cache-coherent, shared-memory interface across clusters of machines. RPCool is a new framework that exploits CXL's shared memory capabilities. RPCool avoids serialization by passing pointers to data structures in shared memory. While avoiding serialization is useful, directly sharing pointer-rich data eliminates the isolation that copying data over traditional networks provides, leaving the receiver vulnerable to invalid pointers and concurrent updates to shared data by the sender. RPCool restores this safety with careful and efficient management of memory permissions. Another significant challenge with CXL shared memory capabilities is that they are unlikely to scale to an entire datacenter. RPCool addresses this by falling back to RDMA-based communication. Overall, RPCool reduces the round-trip latency by 1.93$ imes$ and 7.2$ imes$ compared to state-of-the-art RDMA and CXL-based RPC mechanisms, respectively. Moreover, RPCool performs either comparably or better than other RPC mechanisms across a range of workloads.

Motivation & Objective

  • Address the high latency and CPU overhead of traditional RPCs caused by serialization and compression of pointer-rich data structures.
  • Enable low-latency, high-throughput communication in datacenters by exploiting CXL’s cache-coherent shared memory across rack-scale clusters.
  • Restore security and isolation in shared-memory RPC by preventing concurrent modifications and detecting invalid or wild pointers.
  • Ensure scalability beyond rack-scale CXL limitations by seamlessly falling back to RDMA communication.
  • Provide unified, application-transparent memory management with failure detection and leak prevention for shared memory regions.

Proposed method

  • Pass native pointer-rich data structures directly between clients and servers via CXL-shared memory, eliminating serialization and deserialization overhead.
  • Use memory sealing mechanisms to prevent the sender from modifying data during RPC processing, ensuring data consistency.
  • Implement a lightweight sandboxed validation layer to detect invalid or wild pointers before dereferencing shared memory data.
  • Integrate a global orchestrator to manage shared memory regions, track connections, and coordinate between CXL and RDMA communication paths.
  • Automatically fall back to RDMA when CXL is unavailable or when scaling beyond a single rack, maintaining a consistent RPC interface.
  • Support memory management features including failure notification and consumption limits to prevent memory leaks and data loss.
Figure 1 . RTT comparison of several communication protocols.
Figure 1 . RTT comparison of several communication protocols.

Experimental results

Research questions

  • RQ1Can shared memory RPCs using CXL eliminate serialization overhead and achieve sub-microsecond latency in datacenter workloads?
  • RQ2How can security and data consistency be ensured when sharing pointer-rich data structures across untrusted applications via shared memory?
  • RQ3What mechanisms can prevent concurrent modifications by the sender during RPC processing while maintaining low performance overhead?
  • RQ4How can invalid or wild pointers in shared memory be detected efficiently without sacrificing performance?
  • RQ5Can a hybrid CXL/RDMA communication model provide both low latency at rack scale and seamless scalability across entire datacenters?

Key findings

  • RPCool reduces round-trip latency by 1.93× compared to state-of-the-art RDMA-based RPCs and by 7.2× compared to CXL-based RPCs.
  • In a JSON-like document store workload, RPCool achieves a 4.7× speedup in database construction and a 1.3× speedup in search operations over the fastest competing frameworks.
  • RPCool outperforms TCP-based RPCs across all workloads in modified MongoDB and Memcached benchmarks, demonstrating superior throughput and latency.
  • In the DeathStarBench social network microservices suite, RPCool performs comparably to Thrift RPC, with performance limited by database update bottlenecks on the critical path.
  • The framework’s sandboxed pointer validation adds minimal overhead while effectively detecting invalid or wild pointers during RPC processing.
  • The automatic RDMA fallback mechanism enables seamless operation beyond rack-scale CXL deployments, ensuring end-to-end scalability without application changes.
Figure 2 . Expected CXL v3+ in the datacenter alongside RDMA.
Figure 2 . Expected CXL v3+ in the datacenter alongside RDMA.

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.