Simple profile rectifications go a long way

  • Authors:
  • Bo Wu;Mingzhou Zhou;Xipeng Shen;Yaoqing Gao;Raul Silvera;Graham Yiu

  • Affiliations:
  • Computer Science Department, The College of William and Mary, VA;Computer Science Department, The College of William and Mary, VA;Computer Science Department, The College of William and Mary, VA;IBM Toronto Lab., Toronto, Canada;IBM Toronto Lab., Toronto, Canada;IBM Toronto Lab., Toronto, Canada

  • Venue:
  • ECOOP'13 Proceedings of the 27th European conference on Object-Oriented Programming
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

Feedback-driven program optimization (FDO) is common in modern compilers, including Just-In-Time compilers increasingly adopted for object-oriented or scripting languages. This paper describes a systematic study in understanding and alleviating the effects of sampling errors on the usefulness of the obtained profiles for FDO. Taking a statistical approach, it offers a series of counter-intuitive findings, and identifies two kinds of profile errors that affect FDO critically, namely zero-count errors and inconsistency errors. It further proposes statistical profile rectification, a simple approach to correcting profiling errors by leveraging statistical patterns in a profile. Experiments show that the simple approach enhances the effectiveness of sampled profile-based FDO dramatically, increasing the average FDO speedup from 1.16X to 1.3X, around 92% of what full profiles can yield.