RE: VM performance issue in KVM guests.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zhang, Xiantao
Date: Sunday, April 11, 2010 - 7:04 pm

Avi Kivity wrote:

The issue only happens when vcpu number is over-committed(e.g. vcpu/pcpu>2) and physical cpus are saturated. For example,  when run webbench in windows OS in this case, its performance drops by 80%.  In our experiment, we are using image file through virtio, and I think aio should be used by default also. 



We have basic guesses about the reasone, one is wakeup affinity between vcpu threads due to IPI, and the other is wakeup affinity between io theads and vcpu threads. 


Since the hit only happens when physical cpus are saturated, and sheduling non-virtualized multiple threads of one process to same processor can benefit the performance due to cache share or other affinities, but you know it hurts performance a lot once schedule two vcpu theads to a same processor due to mutual spin-lock in guests. 
Xiantao
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: VM performance issue in KVM guests., Avi Kivity, (Sat Apr 10, 12:27 pm)
RE: VM performance issue in KVM guests., Zhang, Xiantao, (Sun Apr 11, 7:04 pm)
Re: VM performance issue in KVM guests., Avi Kivity, (Sun Apr 11, 11:40 pm)
RE: VM performance issue in KVM guests., Zhang, Xiantao, (Mon Apr 12, 5:50 pm)
Re: VM performance issue in KVM guests., Avi Kivity, (Mon Apr 12, 11:46 pm)
RE: VM performance issue in KVM guests., Zhang, Xiantao, (Tue Apr 13, 8:24 pm)
Re: VM performance issue in KVM guests., Avi Kivity, (Wed Apr 14, 1:14 am)
Re: VM performance issue in KVM guests., Avi Kivity, (Thu Apr 15, 1:18 am)
Re: VM performance issue in KVM guests., Peter Zijlstra, (Thu Apr 15, 6:33 am)
Re: VM performance issue in KVM guests., Srivatsa Vaddagiri, (Thu Apr 15, 9:43 am)
RE: VM performance issue in KVM guests., Zhang, Xiantao, (Thu Apr 15, 7:27 pm)
Re: VM performance issue in KVM guests., Peter Zijlstra, (Fri Apr 16, 3:40 am)
Re: VM performance issue in KVM guests., Avi Kivity, (Sat Apr 17, 12:02 pm)
Re: VM performance issue in KVM guests., Avi Kivity, (Sat Apr 17, 12:04 pm)
RE: VM performance issue in KVM guests., Zhang, Xiantao, (Sun Apr 18, 6:32 pm)