From: Jeremy Fitzhardinge Subject: Re: Linux spin lock enhancement on xen Date: Tue, 17 Aug 2010 10:43:04 -0700 Message-ID: <4C6ACA28.7030104@goop.org> References: <20100816183357.08623c4c@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100816183357.08623c4c@mantra.us.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mukesh Rathor Cc: "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 08/16/2010 06:33 PM, Mukesh Rathor wrote: > In my worst case test scenario, I get about 20-36% improvement when the > system is two to three times over provisioned. > > Please provide any feedback. I would like to submit official patch for > SCHEDOP_yield_to in xen. This approach only works for old-style spinlocks. Ticketlocks also have the problem of making sure the next vcpu gets scheduled on unlock. Have you looked at the pv spinlocks I have upstream in the pvops kernels, which use the (existing) poll hypercall to block the waiting vcpu until the lock is free? J