Parallel and Distributed Computing Applications and Technologies, International Conference on (2010)
Wuhan, Hubei China
Dec. 8, 2010 to Dec. 11, 2010
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/PDCAT.2010.63
CPU time accounting is a basis of performance measurement and process scheduling in operating system. Accounting operations are traditionally completed in timer interrupt handler since timer interrupt is periodically delivered to OS. However, when virtualization introduced, the CPU time is shared by multiple virtual CPUs (i.e., VCPU for short) and the virtual timer interrupt is paused for those ones be scheduled out. This makes the time accounting be inaccurate, and we should consider new method for VM to provide a stable and reliable data source, especially for the hardware-assisted virtual machines (i.e., HVM for short) which are not aware of VMM. The key point of accurate CPU time accounting is to distinguish the time allocated to “this VCPU” and “other VCPUs”. Para-virtualization (i.e., PV for short) achieves this goal by modifying the timer handling routines. For HVM, we propose an accurate accounting method (named XenHVMAcct) within Xen virtual platform. XenHVMAcct is designed by using the mechanisms of virtual interrupt and loadable kernel module, without direct modifications to guest OS. Experimental results show that our accounting method is as accurate as the PV solution.
CPU time accounting, Virtualization, Xen, XenHVMAcct
H. Chen, K. Hu and H. Jin, "XenHVMAcct: Accurate CPU Time Accounting for Hardware-Assisted Virtual Machine," 2010 11th International Conference on Parallel and Distributed Computing, Applications and Technologies (PDCAT 2010)(PDCAT), Wuhan, 2010, pp. 191-198.