多线程处理器的分支预测相关优化
Branch prediction related Optimizations for Multithreaded Processors
摘要:
主要的芯片制造商都推出了多线程处理器。这些处理器用于运行各种工作负载。在这种处理器中,有效的资源利用是一个重要的设计方面。根据工作负载,错误推测的执行可能会严重影响资源利用率和功率利用率。通常,与单处理器相比,多线程处理器可以对误推测具有更好的容忍度。然而,仍然可能存在甚至多线程处理器性能也可能受到分支引起的误推测影响的阶段。在本文中,我建议监测分支预测行为的各种硬件线程上运行的多线程处理器,并使用该信息作为反馈的线程仲裁器/挑选器,调度下一个线程来获取指令。如果我发现一个特定的线程正在经历一个阶段,在这个阶段中,它一直错误预测它的分支,并且它的平均分支错误预测停顿超过了一个特定的阈值,那么我暂时降低了挑选这个线程的优先级。我做了定性比较的各种解决方案的资源效率低下的问题,由于在多线程处理器中的错误推测分支。这项工作可以通过定量评估来扩展。
英文摘要:
Major chip manufacturers have all introduced Multithreaded processors. These processors are used for running a variety of workloads. Efficient resource utilization is an important design aspect in such processors. Depending on the workload, mis-speculated execution can severely impact resource utilization and power utilization. In general, compared to a uniprocessor, a multithreaded processor may have better tolerance towards mis-speculation. However there can still be phases where even a multi-threaded processor performance may get impacted by branch induced mis-speculation. In this paper I propose monitoring the branch predictor behavior of various hardware threads running on the multi-threaded processor and use that information as a feedback to the thread arbiter/picker which schedules the next thread to fetch instructions from. If I find that a particular thread is going through a phase where it is consistently mis-predicting its branches and its average branch misprediction stall is above a specific threshold then I temporarily reduce the priority for picking that thread. I do a qualitative comparison of various solutions to the problem of resource inefficiency caused due to mis-speculated branches in multithreaded processors. This work can be extended by doing a quantitative evaluation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。