Abstract
Distributed graph computing at industrial scales faces significant challenges in resource management and reliability. Traditional "one-shot" systems struggle with long-running tasks that block resources and lack efficient recovery mechanisms. This paper presents ByteGAP, a system that leverages Persistent Memory (PMEM) to enable a "non-continuous" execution model. By utilizing PMEM for ultra-fast, lightweight checkpointing, ByteGAP allows tasks to be paused, resumed, or recovered with minimal performance overhead. Evaluation on real-world graphs shows that ByteGAP significantly reduces recovery time compared to state-of-the-art systems like Apache Spark's GraphX while maintaining high scalability.
Industrial Workload Analysis
In large-scale industrial environments like ByteDance, graph computing workloads exhibit a striking imbalance. Analysis of internal workloads reveals that while 90% of tasks are small (completing in under 1000 seconds), the remaining 10% of "large-scale" tasks consume over 90% of the total computing resources.
Standard continuous execution systems struggle with these massive tasks for two primary reasons:
- Resource Blocking: A task running for hours cannot be easily paused to allow high-priority, time-sensitive small tasks to pass through.
- Fragility: If a multi-hour task fails near completion due to a cluster glitch, restarting from scratch is incredibly wasteful.
ByteGAP addresses these issues by moving away from continuous execution toward a "non-continuous" model supported by high-performance hardware.
ByteGAP System Design
The core innovation of ByteGAP is its integration of Persistent Memory (PMEM)—a hardware tier offering near-DRAM speeds with the durability of an SSD. This allows for a "non-continuous" strategy where the system uses a checkpointing mechanism to save graph topology and vertex states during iterative computation.
Key technical components include:
- Dual-Mode PMEM Management: To handle different data patterns, ByteGAP uses two allocators: a pool-based allocator for fixed-size data like the Edge Table to ensure high locality, and a log-based allocator for variable-sized data like checkpoints to prevent memory fragmentation.
- Lightweight Distributed Checkpointing: Instead of dumping state files to slow disks, ByteGAP serializes data directly to PMEM. It employs a "Leader-Follower" protocol to ensure all cluster nodes stay synchronized on the Last Checkpoint ID (LCI).
- Data Lifetime Categorization: To optimize PMEM usage, ByteGAP classifies data into three types: Keep (topology), Delete (temporary messages), and Exclusively Keep (checkpoints). This allows the system to aggressively clean up PMEM without losing critical recovery data.
Evaluation and Performance
The researchers evaluated ByteGAP using massive real-world graph datasets, including Twitter (1.4B edges) and UK-union (5.4B edges), testing standard algorithms like PageRank, Connected Components (CC), and BFS.
ByteGAP demonstrated significant improvements in both raw performance and recovery speed:
- Rapid Recovery: In a 10-machine setup, ByteGAP’s recovery time was only 2.7 seconds, compared to 23.5 seconds for Apache Spark’s GraphX.
- Low Overhead: The additional cost of saving a checkpoint in ByteGAP is roughly one-third of the time of a single normal execution iteration, making frequent saves viable.
- Scalability: The system showed strong scaling. For example, running PageRank on the Twitter dataset dropped from ~204s on 2 machines to ~40s on 8 machines using PMEM's App Direct mode.
Discussion and Future Work
ByteGAP positions PMEM as the "sweet spot" for graph computing—traditional SSDs are too slow for frequent checkpointing, while DRAM is too volatile. However, the authors identified areas for further optimization. In some high-scale tests (10+ machines), the "App Direct" mode faced I/O overhead and consistency management challenges. Additionally, maintaining data consistency on PMEM requires expensive CPU instructions like CLFLUSHOPT. Future work will focus on optimizing these low-level operations and improving partitioning strategies to reduce communication spikes as clusters grow.
Summary updated