From: Keir Fraser Subject: Re: Xen spinlock questions Date: Mon, 04 Aug 2008 11:24:19 +0100 Message-ID: References: <4896F39A.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: <4896F39A.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 , Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 4/8/08 11:18, "Jan Beulich" wrote: > 1) While the goal of the per-CPU kicker irq appears to be to avoid all CPUs > waiting for a particular lock to get kicked simultaneously, I think this > doesn't have the desired effect. This is because Xen doesn't track what > event channel you poll for (through SCHEDOP_poll), and rather kicks all CPUs > polling for any event channel. 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. -- Keir