Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2673039imm; Mon, 16 Jul 2018 12:03:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcjI/5lSfK/pzYSda/0JczEhlsilxRcFR+nxghijlaLkJW+ekuorbVfjmmb7X6BjSpdZV5f X-Received: by 2002:a62:d646:: with SMTP id r67-v6mr19387143pfg.130.1531767805101; Mon, 16 Jul 2018 12:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531767805; cv=none; d=google.com; s=arc-20160816; b=GHrhAd71nkSXLVa9Y7sWkQRaPito98nq7LnXqxRP34LF1CpMm9JLzVDKJDvvJ8oK3/ avDEP0BaK0Ikm3zi/asT9NbbTppcHKkHk7MKvbDPKFZaXNdLzrjBJZ2ohOmdbDJT6PGz ANjLCL7kZLH/sEw+uoA2Y82xLAtpSLxgAAeQ+aJye7ichkSHtJaz16ymOcdOrtz5rCCJ qq/khAAEUG9Z6dlF6CihIBm6HLBj3nwXpfxQihN8WeKQi97p43h3MXYOHqljpXCcEHec 8AJO5xC16yWwH3fk6BtJUVe5ihC8jYrsXFHXKgioLypQgetr7VFCe/8RAWBbfjZzB7yF u+CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=czifFcJx/CQBYKZTBidg5tH9DBcaKhBxu6yQ6nWtT88=; b=PtWoJGBTq4/MU3iK7Wi74Qw/D7BW89+EnxWpd3W972ogqjQcSUQaZSYnuCGPQ/IGvd Tl+Y79DAkzSUbWwQSww5vHqli0X2hRJJpDBKDTqwjdwkI4rUy3vVjrr0b8sSUxwK9RTi Ac3usBeQLnzXvvAVnotFHU3h0FG01SaJ79YIUHiu4MKtq8QGbxXXD8qvDgQaQfIQ7z9O fKkmuBN4CYh2QkJpdx11vc68HZkBQsG0/7osDPjXI//3xBdpb9NIgejrWoWO5tE7jfn0 hY0oIeqwKINvT9ucQuY8wPfRlD+N74HYPXZIKyEZiRjO/jMaUo6t0RT3zSQuZzGMlZc0 Gqbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="uA/z4DbK"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9-v6si30155614pgu.130.2018.07.16.12.03.10; Mon, 16 Jul 2018 12:03:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="uA/z4DbK"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729834AbeGPTa5 (ORCPT + 99 others); Mon, 16 Jul 2018 15:30:57 -0400 Received: from merlin.infradead.org ([205.233.59.134]:56648 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728787AbeGPTa5 (ORCPT ); Mon, 16 Jul 2018 15:30:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=czifFcJx/CQBYKZTBidg5tH9DBcaKhBxu6yQ6nWtT88=; b=uA/z4DbKEHQbd0pbkGS15Nadi dTp/sfq2dREuRFKz9Je5/uc/QGkwAhHwpKdp2A/KwvKf24QVlJXHUcrPcrJb93UeRT9ucpAwIxf/C RykpdO77+FAl9swhWUSMK0lEgDET5RI7nnuNS/BcTIU64IUA7YsiYzfIBrJxqb9SaCJTeK/Zwx/Lu xDrzkphPP4ciA6u+fTvmh9BuE9Urldx69nj9Gy8PAlVqzFgbM0LmOsmRa4HGKSfOCLNFhNTo4fBhu mmnWfrxILfG2xF4bwixHVEruQIsFdA8sK7ELr+VJtGXSqU/tYYptuBel62Mg1FxmmVK58JzXIvaCh GfJ6vmwDw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ff8ki-00048C-8R; Mon, 16 Jul 2018 19:01:44 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9091920289330; Mon, 16 Jul 2018 21:01:39 +0200 (CEST) Date: Mon, 16 Jul 2018 21:01:39 +0200 From: Peter Zijlstra To: Michael Ellerman Cc: Linus Torvalds , Paul McKenney , Alan Stern , andrea.parri@amarulasolutions.com, Will Deacon , Akira Yokosawa , Boqun Feng , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nick Piggin , Linux Kernel Mailing List Subject: Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire Message-ID: <20180716190139.GR2476@hirez.programming.kicks-ass.net> References: <20180712134821.GT2494@hirez.programming.kicks-ass.net> <20180712172838.GU3593@linux.vnet.ibm.com> <20180712180511.GP2476@hirez.programming.kicks-ass.net> <20180713110851.GY2494@hirez.programming.kicks-ass.net> <87tvp3xonl.fsf@concordia.ellerman.id.au> <20180713164239.GZ2494@hirez.programming.kicks-ass.net> <87601fz1kc.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87601fz1kc.fsf@concordia.ellerman.id.au> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 17, 2018 at 12:40:19AM +1000, Michael Ellerman wrote: > > I guess arguably it's not a very macro benchmark, but we have a > context_switch benchmark in the tree[1] which we often use to tune > things, and it degrades badly. It just spins up two threads and has them > ping-pong using yield. The one advantage you'd get from putting it in lock() is that you could do away with smp_mb__after_spinlock(). But yes, I completely forgot about your IO thingy.. those bench results make me sad :/ a well.