Analysis of the Execution Time Unpredictability caused by Dynamic Branch Prediction

  • Authors:
  • Jakob Engblom

  • Affiliations:
  • -

  • Venue:
  • RTAS '03 Proceedings of the The 9th IEEE Real-Time and Embedded Technology and Applications Symposium
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper investigates how dynamic branch prediction in a microprocessor affects the predictability of execution time for software running on that processor.By means of experiments on a number f real processors employing various forms of branch prediction, we evaluate the impact of branch predictors on executiontime predictability.The results indicate that dynamic branch predictorsgive a high and hard-to-predict variation in the execution time of even very simple loops, and that the execution time effects of branch mispredictions can be verylarge relative to the execution time of regular instructions. We have observed some cases where executing more iterations of a loop actually take less time thanexecuting fewer iterations, due to the effect of dynamicbranch predictors.We conclude that current dynamic branch predictions schemes are not suitable for use in real-time systems where execution time predictability is desired.