From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: Xen spinlock questions Date: Mon, 11 Aug 2008 11:10:06 -0700 Message-ID: <48A0807E.2030409@goop.org> References: <4896F39A.76E4.0078.0@novell.com> <48A04B0E.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48A04B0E.76E4.0078.0@novell.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: Jan Beulich Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org Jan Beulich wrote: > Running kernel builds on 8 vCPU-s competing for 4 pCPU-s shows a 10% > improvement in performance with the individual wakeup (patch attached > - probably sub-optimal, but I didn't seem to be able to think of a lock-less > mechanism to achieve the desired behavior), using ticket locks in the > kernel. What exactly are you measuring here? Are you testing your 2.6.2x forward-port with an adaptation of pv spinlocks using ticket locks as the underlying locking mechanism? Does the 10% improvement come compared to straightforward use of sched_poll, or compared to doing spurious wakeup detection? J