From: Keir Fraser Subject: Re: Xen spinlock questions Date: Mon, 11 Aug 2008 13:25:48 +0100 Message-ID: References: <48A04B0E.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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: Jeremy Fitzhardinge , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 11/8/08 13:22, "Jan Beulich" wrote: >> Yes, this is true. We could easily do something better for VCPUs polling a >> single event channel though, but there hasn't been a need up to now. I >> suppose it depends how often we have multiple VCPUs stuck waiting for >> spinlocks. I can sort out a Xen-side patch if someone wanted to measure the >> benefits from more selective wakeup from poll. > > 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. Hardly a real-world benchmark. :-) -- Keir