基于QEMU的Tcache管理策略
Tcache management strategy based on QEMU
杨云 1姜佳乐 1王静 1高浏洋 1吴亚男2
作者信息
- 1. 陕西科技大学,陕西 西安 710000
- 2. 西安计量技术研究院
- 折叠
摘要
QEMU是一款广泛使用的虚拟机软件,它通过Tcache对代码进行调整与控制,改善其性能.对Tcache的特性进行了详尽的研究,主要涉及命中时间、缺失率和缺失代价.引入二进制翻译系统中常用的几种替换算法,如全清空和先进先出方法,并研究了各种算法不同的技术特性.最后结合profile技术以及先进先出、全清空算法,提出一种全新的Tcache替换算法.通过修改算法前后测试nbench,迭代次数较修改前提高了很多.
Abstract
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.
关键词
QEMU/Tcache/全清空/先进先出/profile技术Key words
QEMU/Tcache/fully emptying/first in first out(FIFO)/profile technology引用本文复制引用
基金项目
国家自然科学基金资助项目(61971272)
国家自然科学基金资助项目(N.61601271)
国家重点研发重点专项(2019YFC1520204)
出版年
2023