[Paper Review] Architectural Impact on Performance of In-memory Data Analytics: Apache Spark Case Study
This paper investigates the micro-architectural performance of Apache Spark workloads—batch, streaming, and machine learning—on modern scale-up servers using hardware performance counters. It identifies that DRAM latency is the primary bottleneck, and recommends configurations such as disabling L1-D next-line prefetchers, using multiple small executors, and enabling Hyper-Threading to achieve up to 36% performance improvement.
While cluster computing frameworks are continuously evolving to provide real-time data analysis capabilities, Apache Spark has managed to be at the forefront of big data analytics for being a unified framework for both, batch and stream data processing. However, recent studies on micro-architectural characterization of in-memory data analytics are limited to only batch processing workloads. We compare micro-architectural performance of batch processing and stream processing workloads in Apache Spark using hardware performance counters on a dual socket server. In our evaluation experiments, we have found that batch processing are stream processing workloads have similar micro-architectural characteristics and are bounded by the latency of frequent data access to DRAM. For data accesses we have found that simultaneous multi-threading is effective in hiding the data latencies. We have also observed that (i) data locality on NUMA nodes can improve the performance by 10% on average and(ii) disabling next-line L1-D prefetchers can reduce the execution time by up-to 14\% and (iii) multiple small executors can provide up-to 36\% speedup over single large executor.
Motivation & Objective
- To understand the micro-architectural performance characteristics of in-memory data analytics workloads in Apache Spark on modern scale-up servers.
- To quantify the impact of NUMA memory access, Hyper-Threading, and hardware prefetchers on Spark performance.
- To evaluate the influence of data velocity on Spark Streaming workloads and identify performance bottlenecks.
- To assess the potential of high-bandwidth memory technologies like Hybrid Memory Cubes for Spark workloads.
- To provide actionable recommendations for configuring Spark and underlying hardware to maximize performance on scale-up systems.
Proposed method
- Conducted micro-architectural analysis using hardware performance counters on a dual-socket Ivy Bridge server.
- Measured key performance metrics including DRAM-bound stalls, L1/L2 cache miss impacts, and instruction retirement rates.
- Used formulas to compute LocalDRAMBound and RemoteDRAMBound to quantify memory access latency effects.
- Evaluated HT effectiveness using a derived scaling formula based on observed and theoretical single-threaded performance.
- Benchmarked Spark workloads across Spark Core, MLlib, SQL, GraphX, and Streaming with varying configurations.
- Systematically varied executor size, memory locality, DDR3 speed, and prefetcher settings to isolate performance impacts.
Experimental results
Research questions
- RQ1How do batch and stream processing workloads in Apache Spark differ in their micro-architectural characteristics?
- RQ2To what extent does data locality on NUMA nodes improve Spark performance on scale-up servers?
- RQ3How effective is Hyper-Threading in hiding DRAM access latencies in Spark workloads?
- RQ4What is the performance impact of disabling L1-D and L2 hardware prefetchers on Spark workloads?
- RQ5Can high-bandwidth memory technologies like Hybrid Memory Cubes significantly improve Spark performance?
Key findings
- Batch and stream processing workloads in Apache Spark are similarly bounded by DRAM access latency, with no significant architectural divergence in performance bottlenecks.
- Data locality on NUMA nodes improves performance by an average of 10%, reducing back-end bound stalls by 19% and increasing instruction retirement by 9%.
- Disabling next-line L1-D prefetchers reduces execution time by up to 14%, while disabling adjacent cache line L2 prefetchers reduces it by up to 4%.
- Using multiple small executors (≤32GB per executor) can deliver up to 36% speedup compared to a single large executor.
- Hyper-Threading effectively reduces DRAM-bound stalls by 50%, with an HT effectiveness of 1.0, indicating near-perfect scaling in this context.
- Lowering DDR3 speed from 1866 MT/s to 1333 MT/s improves performance, suggesting that memory bandwidth is not the limiting factor and that lower frequency reduces power and latency overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.