WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Ticket spinlocks and MP guests

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, "Espen Skoglund" <espen.skoglund@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Ticket spinlocks and MP guests
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Fri, 15 Feb 2008 09:03:49 +0800
Delivery-date: Thu, 14 Feb 2008 17:05:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C3DA0D8B.13D2E%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <18356.17772.519823.271751@xxxxxxxxxxxxxxxxxx> <C3DA0D8B.13D2E%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchvHZx52xVv2tsQEdyZRwAWy6hiGQAUAqPw
Thread-topic: [Xen-devel] Ticket spinlocks and MP guests
>From: Keir Fraser
>Sent: 2008年2月14日 23:24
>
>On 14/2/08 13:43, "Espen Skoglund" 
><espen.skoglund@xxxxxxxxxxxxx> 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.
>

The side effect is to enlarge average critical section length, if 
most spinlock regions are pretty short.

Thanks,
Kevin

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel