From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2] arm: reduce power use by contented spin locks with WFE/SEV Date: Tue, 15 Sep 2015 12:17:07 +0100 Message-ID: <1442315827.3549.380.camel@citrix.com> References: <1438601359-2576-1-git-send-email-ian.campbell@citrix.com> <55CA2BDE0200007800099AE6@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55CA2BDE0200007800099AE6@prv-mh.provo.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: julien.grall@citrix.com, andrew.cooper3@citrix.com, stefano.stabellini@eu.citrix.com, wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2015-08-11 at 09:07 -0600, Jan Beulich wrote: > > > > On 03.08.15 at 13:29, wrote: > > From: David Vrabel > > > > Instead of cpu_relax() while spinning and observing the ticket head, > > introduce arch_lock_relax() which executes a WFE instruction. After > > the ticket head is changed call arch_lock_signal() to execute an SEV > > instruction (with the required DSB first) to wake any spinners. > > > > This should improve power consumption when locks are contented and > > spinning. > > So why not use MONITOR/MWAIT on x86 for the same purpose? I'll leave this for an x86 person to decide/implement. Ian.