From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933792AbcBBTz7 (ORCPT ); Tue, 2 Feb 2016 14:55:59 -0500 Received: from mail-io0-f169.google.com ([209.85.223.169]:32782 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933421AbcBBTz6 (ORCPT ); Tue, 2 Feb 2016 14:55:58 -0500 MIME-Version: 1.0 In-Reply-To: <20160202193037.GQ10166@arm.com> References: <20160201135621.GD6828@arm.com> <20160202035458.GF6719@linux.vnet.ibm.com> <20160202051904.GC1239@fixme-laptop.cn.ibm.com> <20160202064433.GG6719@linux.vnet.ibm.com> <20160202093440.GD1239@fixme-laptop.cn.ibm.com> <20160202175127.GO10166@arm.com> <20160202193037.GQ10166@arm.com> Date: Tue, 2 Feb 2016 11:55:57 -0800 X-Google-Sender-Auth: l7YZHICs-sSCHJyk3NaRMiJPFSI Message-ID: Subject: Re: [RFC][PATCH] mips: Fix arch_spin_unlock() From: Linus Torvalds To: Will Deacon Cc: Boqun Feng , Paul McKenney , Peter Zijlstra , "Maciej W. Rozycki" , David Daney , =?UTF-8?B?TcOlbnMgUnVsbGfDpXJk?= , Ralf Baechle , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 2, 2016 at 11:30 AM, Will Deacon wrote: > > FWIW, and this is by no means conclusive, I hacked that up quickly and > ran hackbench a few times on the nearest idle arm64 system. The results > were consistently ~4% slower using acquire for rcu_dereference. Ok, that's *much* more noticeable than I would have expected. I take it that load-acquire is really really slow on current arm64 implementations. That, btw, is one reason why I despise weak memory ordering. In most cases I've ever seen, the hardware designers have said "barriers don't much matter" and just made them crazy slow. My old alpha was the worst of the worst. It's shades of my least favorite x86 microarchitecture ever: netburst. Make common cases fast, but make exceptional cases _so_ slow that it's actually a noticeable pain. Just out of interest, is store-release slow too? Because that should be easy to make fast. Linus