Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp113934imj; Fri, 8 Feb 2019 16:09:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IbvHDwwpH74cCtHB1mxzN6CnP2G2669d9Yz7/k0o7OTukmlS4JxfR/diKWX+dnjMhmPpfYq X-Received: by 2002:a63:e74e:: with SMTP id j14mr23185475pgk.449.1549670993986; Fri, 08 Feb 2019 16:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549670993; cv=none; d=google.com; s=arc-20160816; b=pqPX3OJIrHQ16S9OIPcy9MxGcnAmAg3EwtjJKuZ7lCTDrxDxwoyv8ArN+lzehvM5j4 yk3m/oo6cBBiHMrMqUuuJvHq7X724Mdjvyc0TY0UeEqSj3cKATCw8PdRXxIKjl1iwLgX yJJhKk9JyyXR0+5FW4F+Zrej2ZhwObizDjoBpsWuJ5CZfe6bIW/LaR7ohtiE3rAySsAR JpE89MJGCq2HqGsHCP5PnfWfA9uinEGaX2YqE9j8s8G4kLaAdckq/6zkfb6Kg8sU3KoC Bif52c8DfH9KYAcIOlorHU9yb7fzZt4/RkT9j1e8u78uRUNP4Mv43i6U1ydefL0CO9uf W+SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=esUN0eAUy4YWkP+bozuSr/XyV8kG31d8rYJRedvgykU=; b=ETzTgX1ikbe37+dNPjDs3I6ScP2WiijzSQDEzG5numvCgSdQnHoiXxVBD83VtoPm9v DS27+xrYO50qEoTU0oqJn7cEnZUhWBNTh+KWIB2fG8QHLvyzpkIMU4oYK9NH6v7N4HWy fuPaxfsQ4DUZDVagafxuK3LyOok1QXQ7GuitNCaj4iB+/fphh+/BfSyj440I6vh6dG5y 4cQ6rCpgR//Ag9aFOHE2l7GPwlMg5/ATnnzy5cYFdeR1fU+0bFnHYSwU1CclovhA/sv5 nfIlIohrjI8ugz3u/IXhF+elNmB4CZdhd5KSjmGOMIWgxicdEKF52chvEDjM4eEOsUpH Msuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LbLALWqm; 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 az11si3586619plb.386.2019.02.08.16.09.24; Fri, 08 Feb 2019 16:09:53 -0800 (PST) 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=pass header.i=@linux-foundation.org header.s=google header.b=LbLALWqm; 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 S1726979AbfBIAJP (ORCPT + 99 others); Fri, 8 Feb 2019 19:09:15 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43716 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfBIAJM (ORCPT ); Fri, 8 Feb 2019 19:09:12 -0500 Received: by mail-lj1-f196.google.com with SMTP id q2-v6so4417215lji.10 for ; Fri, 08 Feb 2019 16:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=esUN0eAUy4YWkP+bozuSr/XyV8kG31d8rYJRedvgykU=; b=LbLALWqmuur3vFRa25JFyrgBoAdC34KiufM5BZY6FVjl/WYfmGblutfsjwJLgcnL2s 7WfLx0BMAxPDJUxhk3YWwQvooGaab1y8eWCVbR4BtrKqYJ8QmykyrhzkiPDRsWkCWKX2 tpgX9WKhMrvACLp3JH8Bq642be3K34aaxe+NA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=esUN0eAUy4YWkP+bozuSr/XyV8kG31d8rYJRedvgykU=; b=GJbZgKEwAxqWvgUxSWUCuhmw13btSfmtG8LBxFEphg9x6TRz+gQufP7G0Lb7DOqJQE IPpLjufts6+0vMbvpO++jAT7LeNtR65z//BYfhMipc+yj2KCK8cBNfPPC5Gs2aXec59S zNFBJX8zhS3qXuMMrGpvwaaJxJYkJwKvZ4gSo9HCIgXMWtGzAMmqQeTJ7ErlnH9sb84n SVmvmo6Ypo1VB6+lU8weQ3Qiqkko3hMxzj4s0fOJLXSjUHxOEu3H4dCycd2KN5bydG3F EkvGTzu+E6lubEeoCv+HZ7HrA3bVP05VVD6MeS7kWSZliuP2WGPSdgay+q8XstpGZZvt WmNw== X-Gm-Message-State: AHQUAubuprEpCVcEZHnmHNTaVVe/ghGxd+WPGX4S+KWDimOXNgGpSfvA 2435LNP5JdIMX9X6erROPteSQOEbIUA= X-Received: by 2002:a2e:908b:: with SMTP id l11-v6mr15029345ljg.150.1549670949366; Fri, 08 Feb 2019 16:09:09 -0800 (PST) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id y14-v6sm709757ljj.55.2019.02.08.16.09.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 16:09:09 -0800 (PST) Received: by mail-lf1-f51.google.com with SMTP id z13so3801023lfe.11 for ; Fri, 08 Feb 2019 16:09:08 -0800 (PST) X-Received: by 2002:ac2:4191:: with SMTP id z17mr14867539lfh.117.1549670639775; Fri, 08 Feb 2019 16:03:59 -0800 (PST) MIME-Version: 1.0 References: <1549566446-27967-1-git-send-email-longman@redhat.com> In-Reply-To: From: Linus Torvalds Date: Fri, 8 Feb 2019 16:03:43 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH-tip 00/22] locking/rwsem: Rework rwsem-xadd & enable new rwsem features To: Waiman Long Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Thomas Gleixner , Linux List Kernel Mailing , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Linux-sh list , sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arch , "the arch/x86 maintainers" , Arnd Bergmann , Borislav Petkov , "H. Peter Anvin" , Davidlohr Bueso , Andrew Morton , Tim Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 8, 2019 at 12:31 PM Waiman Long wrote: > > > (b) what's the new fastpath case > > The only change in the fastpath is the use of cmpxchg for writer lock. .. since a big deal here was about using the generic atomic accessor functions, I really was looking forward to seeing the *actual* fast path code generation. In other words, right now I have very little visibility in how it actually affects the code. Looking at the patches themselves doesn't make it obvious. I was hoping for the overview to really explain the whole "before and after" situation, and it didn't. Not at the high level, and not at a low level. And no performance numbers in the overview either. And yes, I see the numbers in the patches, but what I really hoped for was some real load numbers. In particular, I would have loved to see numbers from th ekernel test robot "will-it-scale.per_thread_ops" case, which is the one that had a 65% regression due to the lack of reader spinning. So I was kind of hoping to hear whether that regression is basically entirely gone with this patch series, or if we still have a regression due to the extra downgrade, or what? Linus