From: "Jan Beulich" Subject: Re: Xen spinlock questions Date: Wed, 13 Aug 2008 08:17:03 +0100 Message-ID: <48A2A68F.76E4.0078.0@novell.com> References: <4896F39A.76E4.0078.0@novell.com> <48A04B0E.76E4.0078.0@novell.com> <48A0807E.2030409@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <48A0807E.2030409@goop.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> Jeremy Fitzhardinge 11.08.08 20:10 >>> >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=20 >forward-port with an adaptation of pv spinlocks using ticket locks as=20 >the underlying locking mechanism? Does the 10% improvement come=20 Yes. >compared to straightforward use of sched_poll, or compared to doing=20 >spurious wakeup detection? Compared to spurious wakeup detection done in the kernel, similar to how you had done it in the latest version of your respective patch that I have seen. Jan