Abstract
As datacenter applications face an increasing "memory capacity wall," far-memory systems—which utilize remote server memory via high-speed interconnects—have emerged as a critical solution. However, existing systems typically force a choice between kernel-level paging, which suffers from high I/O amplification, and user-space object fetching, which imposes a heavy CPU management tax. This paper introduces Atlas, a hybrid data plane that dynamically switches between these two paths based on real-time data locality. By employing a runtime-kernel co-design, Atlas achieves up to 3.2× throughput improvements and significantly lower tail latency compared to state-of-the-art baselines.
1. Introduction: The Far-Memory Dilemma
The rapid growth of large-scale analytics, machine learning, and web services has outpaced the growth of local DRAM capacity. Far-memory systems address this by allowing applications to access remote memory over high-speed networks like InfiniBand. Despite their promise, the efficiency of these systems is often bottlenecked by the data plane's granularity.
Existing solutions generally fall into two categories:
- Paging (Kernel-level): Systems like Fastswap operate at a 4KB page granularity. While transparent and low-overhead for sequential access, they suffer from "I/O amplification" when applications access small, scattered objects, as the system must fetch an entire page for a single byte of data.
- Object Fetching (User-space): Systems like AIFM fetch data at the object level, eliminating I/O amplification. However, managing millions of objects requires complex metadata and Least Recently Used (LRU) eviction logic, creating a "management tax" that consumes significant CPU cycles.
2. The Atlas Hybrid Data Plane
Atlas resolves this granularity-performance tradeoff by introducing a hybrid data plane that adapts to application behavior. The core insight of Atlas is that neither paging nor object fetching is universally superior; rather, the optimal path depends on the spatial locality of the data at any given moment.
2.1 Dynamic Path Switching
Atlas monitors data access patterns using an always-on profiling mechanism. It divides memory pages into 16-byte "cards" and tracks usage via a Card Access Table (CAT). Each page is assigned a Path Selector Flag (PSF):
- The Paging Path: If a page exhibits high locality (a high Card Access Rate), Atlas utilizes the kernel's paging path to fetch the entire 4KB block efficiently.
- The Object Path: If locality is poor, Atlas switches to the runtime's object-fetching path, retrieving only the specific objects requested to minimize network traffic.
2.2 Asymmetric Granularity and Egress
A key innovation in Atlas is its asymmetric approach to data movement. While it can fetch data as either objects or pages (ingress), it only evicts data at the page granularity (egress). This design choice is critical: it allows Atlas to avoid the expensive CPU overhead of object-level LRU tracking—the primary bottleneck in pure object-based systems—while still benefiting from fine-grained data retrieval.
2.3 Locality-Aware Evacuation
To further optimize performance, Atlas includes a background "evacuator." This component identifies "hot" objects scattered across fragmented pages and moves them into contiguous local memory. This process effectively "repairs" the data's spatial locality, eventually allowing the system to transition those pages from the object path to the more efficient paging path.
3. Implementation and Hardware Acceleration
Atlas is implemented as a runtime-kernel co-design. To minimize the overhead of checking whether data is local or remote (the "read barrier"), Atlas leverages Intel Transactional Synchronization Extensions (TSX). TSX allows the system to speculatively access memory; if the data is remote, the transaction aborts, and the system triggers the appropriate fetching path. This hardware-assisted check is significantly faster than traditional software-based system calls.
4. Evaluation
The authors evaluated Atlas against eight diverse applications, including Memcached, graph engines (GraphOne, Aspen), and data analytics frameworks (Metis).
4.1 Throughput and Latency
Atlas demonstrated substantial performance gains across the board:
- Throughput: Atlas outperformed the paging-only Fastswap by up to 3.2× and the object-only AIFM by up to 1.5×.
- Tail Latency: In latency-critical workloads like Memcached and synthetic WebServices, Atlas reduced 90th-percentile tail latency by one to two orders of magnitude compared to baselines.
4.2 Adaptability
The system's ability to adapt was particularly evident in GraphOne (PageRank), where Atlas successfully transitioned up to 82% of pages from the object-fetching path to the paging path as the application's locality improved during execution.
5. Discussion and Limitations
While Atlas provides significant efficiency gains, it has certain requirements:
- Hardware Dependency: The highest performance gains rely on Intel TSX. While a software fallback exists, it is less efficient.
- Developer Effort: Like other user-space far-memory systems, Atlas requires developers to use specific smart pointers (
AtlasUniquePtr) and define dereference scopes, necessitating manual porting of legacy code. - Parameter Tuning: The system's sensitivity to the Card Access Rate (CAR) threshold suggests that future changes in network bandwidth may require re-tuning the 80% threshold used in this study.
6. Conclusion
Atlas demonstrates that the conflict between paging and object fetching is a false dichotomy. By combining the two into a hybrid data plane with asymmetric granularity, Atlas provides a path forward for far-memory applications to achieve high throughput and low latency without the prohibitive CPU overhead of traditional object management. As emerging technologies like CXL continue to evolve, the principles of hybrid data management introduced by Atlas will likely become even more central to datacenter architecture.
Summary updated