公平性是一个关键的优化问题,当系统缺乏公平时,会出现线程饿死和优先级反转等问题。以公平性优化作为研究目标,分析当前共享Cache划分公平性的评价标准,找出了其评价参数和划分策略的不足,提出了一种新的共享Cache划分方案。通过提出一个新的多线程公平性评价指标并改进了已有的公平划分策略,从而提高多线程运行的公平性。实验结果表明,该共享Cache划分方案显著提高了系统公平性,并且系统吞吐量也有提高。
Fairness is a key optimization problem.If the system is unfair,there are some problems,such as thread starvation,priority inversion,and so on.Therefore,in order to optimize the fairness as the research objective,the evaluation criteria of the fairness is analyzed on the current shared cache,its evaluation metrics and the disadvantages of partitioning policy are identified and a new shared Cache partitioning is proposed.By proposing a new multi-thread fairness metric and improving fair partitioning policy,the fairness between multi-threads is improved.The experimental results show that the new partitioning of the shared Cache significantly improves the system fairness,and the system throughput is also slightly increased.