vScale: Automatic and Efficient Processor Scaling for SMP Virtual Machines

被引:22
作者
Cheng, Luwei [1 ]
Rao, Jia [2 ]
Lau, Francis C. M. [3 ]
机构
[1] Facebook, Menlo Pk, CA 94025 USA
[2] Univ Colorado Colorado Springs, Colorado Springs, CO 80907 USA
[3] Univ Hong Kong, Hong Kong, Hong Kong, Peoples R China
来源
PROCEEDINGS OF THE ELEVENTH EUROPEAN CONFERENCE ON COMPUTER SYSTEMS, (EUROSYS 2016) | 2016年
关键词
D O I
10.1145/2901318.2901321
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
SMP virtual machines (VMs) have been deployed extensively in clouds to host multithreaded applications. A widely known problem is that when CPUs are oversubscribed, the scheduling delays due to VM preemption give rise to many performance problems because of the impact of these delays on thread synchronization and I/O efficiency. Dynamically changing the number of virtual CPUs (vCPUs) by considering the available physical CPU (pCPU) cycles has been shown to be a promising approach. Unfortunately, there are currently no efficient mechanisms to support such vCPU-level elasticity. We present vScale, a cross-layer design to enable SMP-VMs to adaptively scale their vCPUs, at the cost of only microseconds. vScale consists of two extremely light-weight mechanisms: i) a generic algorithm in the hypervisor scheduler to compute VMs' CPU extendability, based on their proportional shares and CPU consumptions, and ii) an efficient method in the guest OS to quickly reconfigure the vCPUs. vScale can be tightly integrated with existing OS/hypervisor primitives and has very little management complexity. With our prototype in Xen/Linux, we evaluate vScale's performance with several representative multithreaded applications, including NPB suite, PARSEC suite and Apache web server. The results show that vScale can significantly reduce the VM's waiting time, and thus can accelerate many applications, especially synchronization-intensive ones and I/O-intensive ones.
引用
收藏
页数:14
相关论文
共 44 条
[1]  
[Anonymous], 2013, CPU SCHEDULER VMWARE
[2]  
[Anonymous], 2014, VMWARE HORIZON VIEW
[3]  
Barham P., 2003, Operating Systems Review, V37, P164, DOI 10.1145/1165389.945462
[4]  
Bhat S. S., CPU HOTPLUG STOP MAC, P44
[5]  
Bhat S. S., PERCPU RWLOCK IMPLEM
[6]  
Caprita B., 2005, P USENIX ATC
[7]  
Cheng L., 2012, P ACM SOCC
[8]  
Cheng L., 2013, P IEEE ICNP
[9]  
Corbet J., 2007, CFS GROUP SCHEDULING
[10]  
Ding X., 2014, P USENIX ATC