From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCHv3 3/4] xen: use ticket locks for spin locks Date: Tue, 28 Apr 2015 16:56:20 +0100 Message-ID: <553FADA4.9080605@citrix.com> References: <1429611088-23950-1-git-send-email-david.vrabel@citrix.com> <1429611088-23950-4-git-send-email-david.vrabel@citrix.com> <5538FA930200007800075199@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yn8B2-0005N3-GU for xen-devel@lists.xenproject.org; Tue, 28 Apr 2015 16:16:04 +0000 In-Reply-To: <5538FA930200007800075199@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , David Vrabel Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , Andrew Cooper , Tim Deegan , Jennifer Herbert , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On 23/04/15 12:58, Jan Beulich wrote: > >> +typedef union { >> + u32 head_tail; >> + struct { >> + u16 head; >> + u16 tail; >> + }; >> +} spinlock_tickets_t; >> + >> typedef struct spinlock { >> - raw_spinlock_t raw; >> + spinlock_tickets_t tickets; > > At least for x86 this means a growth of this and hence various > other structures - did you examine the effects thereof? Of > course otoh getting the lock size uniform across architectures > is a good thing. I've not looked. Are there any structures whose size you're particularly concerned about? David