Re: VM performance issue in KVM guests.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Wednesday, April 14, 2010 - 1:14 am

On 04/14/2010 06:24 AM, Zhang, Xiantao wrote:

Ok.  This is probably due to spinlock contention.

When vcpus are pinned to pcpus, there is a 50% chance that a guest's 
vcpus will be co-scheduled and spinlocks will perform will.

When vcpus are not pinned, but affine wakeups are disabled, there is a 
33% chance that vcpus will be co-scheduled.

When vcpus are not pinned and affine wakeups are enabled there is a 0% 
chance that vcpus will be co-scheduled.

Keeping both vcpus on the same core actually makes sense since they can 
communicate through the local cache faster than across cores.  What we 
need is to make sure that they don't spin.

Windows 2008 can report spinlock spinning through a hypercall.  Can you 
hook to that interface and see if it happens regularly?  Altenatively 
use a PLE capable host and trace the kvm_vcpu_on_spin() function.

-- 
error compiling committee.c: too many arguments to function

--
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)