From: Keir Fraser Subject: Re: Ticket spinlocks and MP guests Date: Thu, 14 Feb 2008 15:23:55 +0000 Message-ID: References: <18356.17772.519823.271751@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18356.17772.519823.271751@gargle.gargle.HOWL> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Espen Skoglund , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 14/2/08 13:43, "Espen Skoglund" wrote: > Do people feel that the new ticket spinlocks should raise any > concerns, or do typical Xen SMP guest workloads remain largely > unaffected by the new locking scheme? That's a good question which I do not think can be answered without taking some measurements. If it's an issue we might consider pv_ops'ifying spinlocks to turn them into sleeping locks (this would be easy these days, since spin_lock() and spin_unlock() are not inlined). I have some neat ideas about how that might work requiring no extra space for spinlock_t and no modifications at the hypervisor interface. I suppose it depends whether there are any hot spinlocks in the kernel these days. I know things have improved a lot in recent years with things like RCU. Most spinlock regions are now pretty short. -- Keir