摘要
QEMU是一款广泛使用的虚拟机软件,它通过Tcache对代码进行调整与控制,改善其性能。对Tcache的特性进行了详尽的研究,主要涉及命中时间、缺失率和缺失代价。引入二进制翻译系统中常用的几种替换算法,如全清空和先进先出方法,并研究了各种算法不同的技术特性。最后结合profile技术以及先进先出、全清空算法,提出一种全新的Tcache替换算法。通过修改算法前后测试nbench,迭代次数较修改前提高了很多。
QEMU is a widely used virtual machine software that adjusts and controls code through Tcache to improve its performance.In this paper,the characteristics of Tcache such as hit time,missing rate and missing cost are studied in detail.Several substitution algorithms commonly used in the binary translation system such as full emptying and FIFO methods are introduced,and the different technical characteristics of various algorithms are investigated.A new Tcache substitution algorithm is proposed by combining profile technology,FIFO and full emptying algorithms.By testing nbench before and after modifying the algorithm,the number of iterations has increased significantly compared to before the modification.
作者
杨云
姜佳乐
王静
高浏洋
吴亚男
Yang Yun;Jiang Jiale;Wang Jing;Gao Liuyang;Wu Yanan(Shaanxi University of Science&Technology,Xi'an,Shannxi 710000,China;Xi'an Research Institute of Metrology and Technology)
出处
《计算机时代》
2023年第12期153-157,共5页
Computer Era
基金
国家自然科学基金资助项目(No61971272,N.61601271)
国家重点研发重点专项(No 2019YFC1520204)。