Large-scale data analysis increasingly relies on relationships between entities, not just records considered individually. In industrial settings, those relationships may be represented in data used to analyze connected assets, events, or processes. But graph workloads create many fine-grained, irregular accesses, and a graph can be too large to fit in a single machine’s DRAM. External graph processing addresses this capacity challenge by keeping graph data on storage and moving working portions into memory as needed. The storage device’s access characteristics, however, can determine whether the processing strategy is efficient.
A study presented at FAST ’19 examines how external graph processing can be adapted to SSDs. Its central observation is that techniques designed to avoid random access on hard drives can impose unnecessary computation when used with NVMe SSDs, where random and sequential page-level access performance can be comparable. The proposed alternative partitions vertex data so that updates are localized to a manageable in-memory subset, reducing the need to sort large volumes of intermediate updates.
Why external graph processing creates an I/O challenge
In a vertex-centric programming model, each vertex runs a program that reads its attributes and neighboring vertices, then generates updates to itself or to other vertices. Algorithms such as Breadth First Search (BFS) and PageRank follow this iterative pattern. Because edges connect vertices across the graph, processing can involve irregular reads and updates rather than a simple sequential pass through a compact dataset.
Some single-machine systems keep vertex data in DRAM and store edge data on secondary storage. This can make fine-grained vertex operations fast, but the memory requirement grows with the graph. Fully external approaches put both vertex and edge data on storage, helping accommodate larger datasets, but small vertex updates do not naturally align with SSD page sizes. An update may involve only a few bytes, while storage reads and writes operate on pages measured in kilobytes. Directly issuing many small updates can therefore be inefficient.
One response is to combine updates before writing them. The system described as GraFBoost uses a sort-reduce process: it collects intermediate key-value updates, sorts them, combines updates with matching destination vertices, and writes larger, more sequential batches. This reduces fine-grained storage operations, but sorting itself consumes computation and memory bandwidth. In the paper’s evaluation, sorting accounted for nearly 61% of execution time for PageRank on one tested graph. The authors also explain that the sorting burden can rise as graph size and the number of generated updates increase.
SSD-aware partitioning for external graph processing
The proposed approach changes the order in which destination vertices are processed. It divides destination vertex data into partitions sized so that a partition’s vertex data can fit in available DRAM. Each destination vertex belongs to one partition only. Source vertices, by contrast, may appear in multiple partitions as mirrors, allowing their edges to be organized according to the destination partition they update.
During processing, the system loads one partition’s destination vertex data into memory. It then streams the corresponding source vertex information and required edge data from the SSD. Updates generated from those edges are directed to destination vertices already present in memory. This localizes the fine-grained updates without first sorting every intermediate update across the entire graph.
The key distinction is between requiring global sequentiality and achieving useful local organization. The approach does not try to make every update across the whole graph perfectly sequential. Instead, it arranges work so that each processing step updates a limited in-memory set of destinations. That is relevant to SSD-based design because, according to the paper, NVMe SSDs offer comparatively similar performance for random and sequential page-level accesses. The design can therefore avoid some of the sorting overhead that was introduced to enforce sequential writes.
Managing mirrors and partition overhead
Allowing source vertices to appear in more than one partition creates mirror copies that must stay consistent. After processing a partition, the system uses metadata to identify where its vertices have mirrors and generates the corresponding updates. The authors report that mirror-update work remained below 15% of execution time across the graphs they evaluated, and below 10% in some cases. Partitioning also introduces storage overhead: in the reported eight-partition examples, space overhead varied by graph, with figures around 10% to 12% for several datasets.
These costs matter when assessing an implementation. A partitioning strategy should be judged not only by the amount of sorting it eliminates, but also by the memory available for each partition, the number of mirrors created, and the work required to keep those copies current. In the described method, partitioning is performed offline as preprocessing, so its latency is not included in the reported graph-algorithm execution time.
What the evaluation shows—and what it does not
The researchers evaluated the method on a machine with DRAM and two NVMe SSDs, using BFS and PageRank on several graph datasets. Compared with the software version of GraFBoost, the proposed method improved performance by an average of 1.8 times for PageRank and 1.6 times for BFS. The largest reported improvement was about 2.2 times for PageRank on the kron32 graph. These results support the paper’s argument that removing expensive sorting can benefit SSD-based external graph workloads.
The findings should be understood in context. They come from specific algorithms, graph datasets, and a particular experimental platform; they do not establish the same gains for every graph workload or storage configuration. The paper also notes that memory access time can be a significant part of execution, sometimes exceeding the contribution from I/O. Reducing storage traffic alone may therefore not address every bottleneck.
Practical considerations for data-intensive systems
For engineers and technical decision-makers evaluating graph analytics, the work highlights several design questions:
- Match the I/O strategy to the device. Techniques optimized for hard-drive seek costs may add avoidable computation when deployed on SSDs.
- Size partitions around memory capacity. The approach depends on loading destination vertex data for a partition into DRAM while streaming related source and edge data.
- Account for update consistency. Mirrored source vertices reduce the need for globally sorted updates but introduce metadata and synchronization work.
- Measure the whole execution path. Storage access, sorting, in-memory processing, and mirror updates can all contribute to total runtime.
These considerations are useful when planning out-of-core analytics for large, connected datasets, including workloads associated with industrial operations. They do not imply that every automation data problem is best represented as a graph; rather, they help teams reason about storage and memory when graph-based analysis is appropriate.
Conclusion
External graph processing must balance storage capacity against the cost of irregular access and fine-grained updates. The SSD-aware method described in the FAST ’19 paper uses destination-based partitions to keep active vertex data in DRAM, stream associated graph information from SSD, and avoid a costly global sort-reduce step. Its measured gains demonstrate the potential of aligning graph-processing architecture with SSD behavior, while its mirror-management and memory requirements remain important implementation tradeoffs. For teams handling large graph workloads, the practical lesson is to optimize for the storage device and measure computation, memory, and I/O together.