Trace-based Optimizations for System-mode Dynamic Binary Translation
Date Issued
2014
Date
2014
Author(s)
Chou, Cheng-Yi
Abstract
System mode dynamic binary translation (DBT) is an important technology to many applications. For example, system-mode dynamic binary translator can help OS and computer architecture developers to trace, debug and replay their program. QEMU is a famous opren source dynamic binary translator. However, system mode QEMU is much slower. So improving performance of system mode QEMU is an important issue. Trace based optimization is one of the core technologies to improve the performance of system mode DBT. And HQEMU is a multi-threaded DBT prototype with trace based optimization. User mode HQEMU can achieve 2.4X speedup over user mode QEMU for SPEC CPU 2006 integer benchmarks. But in system-mode, HQEMU achieves small speedup over QEMU. In this thesis, we found that directly applying user mode trace based optimization to system mode HQEMU will get poor performance improvement. And we identify the problems of original system mode HQEMU by our experiment and profile results. We provide two optimizations for system mode HQEMU to solving the problems of original system mode HQEMU : 1. Per-process trace request queue 2. Sinking slow path code of softMMU. After integrating our optimizations into system mode HQEMU, system mode HQEMU achieves 1. 16X speedup over system mode QEMU on SPEC CPU 2006 integer benchmark , and achieves 1.62X speedup over system mode QEMU on nBench benchmark.
Subjects
動態二進制碼轉譯
追蹤式優化
程式碼下沉
Type
thesis
File(s)![Thumbnail Image]()
Loading...
Name
ntu-103-R01944028-1.pdf
Size
23.32 KB
Format
Adobe PDF
Checksum
(MD5):cc55b516d7425463d5eb379d0ff3e9c1
