Skip to main content
QUICK REVIEW

[Paper Review] Hadoop Performance Models

Herodotos Herodotou|arXiv (Cornell University)|Jun 6, 2011
Cloud Computing and Resource ManagementComputer Science112 citations
TL;DR

This paper presents a comprehensive set of mathematical performance models for Hadoop MapReduce jobs, decomposing execution into fine-grained phases (e.g., Read, Map, Spill, Shuffle, Reduce, Write). It enables accurate estimation of I/O, CPU, and network costs using configurable parameters, Hadoop settings, and profile statistics, allowing optimization of job configurations for improved performance.

ABSTRACT

Hadoop MapReduce is now a popular choice for performing large-scale data analytics. This technical report describes a detailed set of mathematical performance models for describing the execution of a MapReduce job on Hadoop. The models describe dataflow and cost information at the fine granularity of phases within the map and reduce tasks of a job execution. The models can be used to estimate the performance of MapReduce jobs as well as to find the optimal configuration settings to use when running the jobs.

Motivation & Objective

  • To develop accurate, phase-level performance models for Hadoop MapReduce jobs to support performance prediction and configuration tuning.
  • To identify and quantify the impact of key Hadoop configuration parameters on job execution costs.
  • To model the end-to-end cost of MapReduce jobs, including I/O, CPU, and network overheads, across map and reduce phases.
  • To enable analytical estimation of job performance without full execution, supporting efficient job configuration recommendation.
  • To provide a framework for optimizing MapReduce job performance through cost-aware configuration selection using mathematical modeling.

Proposed method

  • The model decomposes MapReduce job execution into five map phases: Read, Map, Collect, Spill, and Merge, and four reduce phases: Shuffle, Merge, Reduce, and Write.
  • Each phase is assigned a cost function based on input parameters, including Hadoop configuration settings (e.g., io.sort.mb, mapred.reduce.tasks), profile statistics (e.g., input pair width, function selectivity), and cost factors (e.g., I/O, CPU, network per byte or per pair).
  • Cost functions use time-based metrics: I/O and network costs are per-byte, while CPU costs are per key-value pair or per byte for compression/decompression.
  • The identity function I(x) is used to conditionally activate components (e.g., combine function, compression) based on configuration flags.
  • The overall job cost is computed analytically using aggregated costs across all map and reduce tasks, scaled by node and task limits (pMaxMapsPerNode, pMaxRedPerNode).
  • Network cost is modeled as the total data transferred during shuffle, accounting for non-local data movement: netTransferSize = finalOutMapSize × pNumMappers × (pNumNodes−1)/pNumNodes.

Experimental results

Research questions

  • RQ1How can the performance of a Hadoop MapReduce job be accurately predicted using mathematical models at the phase level?
  • RQ2What is the relative contribution of I/O, CPU, and network costs across different phases of map and reduce tasks?
  • RQ3How do Hadoop configuration parameters (e.g., buffer size, spill threshold, compression settings) affect the overall job cost?
  • RQ4To what extent can analytical cost models replace full job execution for performance prediction and configuration tuning?
  • RQ5How do data characteristics (e.g., input size, compression ratio, selectivity of map/reduce functions) influence the performance model outcomes?

Key findings

  • The model accurately estimates job cost by aggregating phase-level I/O, CPU, and network costs using a combination of Hadoop parameters, profile statistics, and system cost factors.
  • The inclusion of compression and combine functions in the model significantly affects CPU and I/O costs, with compression reducing I/O but increasing CPU overhead.
  • The network cost is proportional to the total data transferred during shuffle, which depends on the number of mappers and the fraction of non-local data, modeled as netTransferSize = finalOutMapSize × pNumMappers × (pNumNodes−1)/pNumNodes.
  • The analytical cost model (Equation 98) provides a scalable way to compute total job cost as the sum of IOCost_Job, CPUCost_Job, and NETCost_Job, enabling configuration optimization.
  • The model supports configuration tuning by isolating the impact of parameters such as io.sort.mb, mapred.reduce.tasks, and compression settings on overall performance.
  • The model’s modular structure allows for conditional activation of components (e.g., combine, compression) via the identity function I(x), enabling flexible and correct cost computation.

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.