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.
QEMUTcachefully emptyingfirst in first out(FIFO)profile technology