arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.00585cs.AR
收藏

动态提高上下文间分支预测精度

Dynamically Improving Branch Prediction Accuracy Between Contexts

Adam Auten, Tanishq Dubey, Rohan Mathur

摘要:

分支预测是大多数处理器中的标准特性,通过允许处理器在分支被评估之前预测分支的方向,显著地改善了程序的运行时间。当前的分支预测方法可以通过全局表、各种散列方法、甚至诸如SVM或神经网络的机器学习技术来实现优异的预测精度。然而,当试图预测操作系统中的上下文切换时,这样的设计可能失去有效性。这样的场景可能导致上下文之间的相消干扰,因此降低了整体预测器的准确性。为了解决这个问题,我们提出了一个新的方案,用于决定是否上下文切换产生相消或建设性的干扰。首先,我们提出的证据表明,相消干涉可能会对预测精度产生显着的负面影响。其次,我们提出了一个可扩展的框架,跟踪上下文切换和预测准确性,以提高整体准确性。实验结果表明,该框架有效地降低了相消干扰对分支预测的影响。

英文摘要:

Branch prediction is a standard feature in most processors, significantly improving the run time of programs by allowing a processor to predict the direction of a branch before it has been evaluated. Current branch prediction methods can achieve excellent prediction accuracy through global tables, various hashing methods, and even machine learning techniques such as SVMs or neural networks. Such designs, however, may lose effectiveness when attempting to predict across context switches in the operating system. Such a scenario may lead to destructive interference between contexts, therefore reducing overall predictor accuracy. To solve this problem, we propose a novel scheme for deciding whether a context switch produces destructive or constructive interference. First, we present evidence that shows that destructive interference can have a significant negative impact on prediction accuracy. Second, we present an extensible framework that keeps track of context switches and prediction accuracy to improve overall accuracy. Experimental results show that this framework effectively reduces the effect of destructive interference on branch prediction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑