Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp135767rwp; Wed, 12 Jul 2023 10:48:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEoiI1LcvYLAAtfnRjH9ABR/Ufys2hVk+AxeJaqImvwgIaaKG/6CtcMZAojcAlbqhLYvA8z X-Received: by 2002:a17:906:1c9:b0:98f:8481:24b3 with SMTP id 9-20020a17090601c900b0098f848124b3mr3705765ejj.37.1689184115282; Wed, 12 Jul 2023 10:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689184115; cv=none; d=google.com; s=arc-20160816; b=evuYDf1Wl9GMRTKHk8gILjC00meBCirZf3sE9tdAj4oU0Q9aUX6ka8gtAF+kX1BZZq GD4wPYvgNltEhaAOtC6jw0+8yhjf+tJJ5T7tq96lasSCQDvY8NAWYXs+HQhjefO/Tc+T UF1ws0UUvwgpLH/DfTuHn3bLKujiM4BX0ZFi8j8EKBzR8sTNXMnihR825JmWoJd0kQYs u9uZmCSsOYcywAN/9lA259MLlCp4pkKiOMKpv22fbHKGlUi8sAR1MbO26q7Nr2RDdVPA 7ko7n5AdKvcfDtcXgD6e7j2oUZ63u+cv3kcht5kzYmpKI3jim7hR9ulOFO1qivANZiG2 mVfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HHfNaJZJuLqKfgvlf5j66YNryB0U0lRwSxWvd1YPfdI=; fh=6BVG09tYFsLxJk0Ew6gqM9/+TjbjKkpReCNtkdlyrd4=; b=o3VXaFGu2mkrug8IJKAJHHssbFaEcoxLtVFMKCU5n1A1hPl/AO3/tCdY/dHGVMThLe /mCyc/3x6OJn7UEPiUJ0Abn0BaY9TD9hvZfESVT0x7L6DyxLLv2pRVG8YjvEYU9GPAJ4 d4TDS/z81qHNy4UKqDlBbM9YxQAV9sHLwGlSfCPNPpVjF5Ni/cLoe3YNewbZDNr9cA/j wshU7LwZzk3jBQX+/ck7lc5CmrTszqgC4nm21J7qIC9me4QFSazvXwJkha4k++TVLyAx j0SP/dUz+wWffspXxpiQacAw6Jzbw94iSMBYR86FS03h+L0nsMWG2mWUQKP1nLrO14yu uWmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TbFnCeQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a170906384400b0097391f75082si4862088ejc.838.2023.07.12.10.48.11; Wed, 12 Jul 2023 10:48:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TbFnCeQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232424AbjGLQ7o (ORCPT + 99 others); Wed, 12 Jul 2023 12:59:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjGLQ7n (ORCPT ); Wed, 12 Jul 2023 12:59:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A3481BFA; Wed, 12 Jul 2023 09:59:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B2C7761879; Wed, 12 Jul 2023 16:59:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C69A6C433C8; Wed, 12 Jul 2023 16:59:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689181181; bh=HQtXkMg12Bx/r1+2FzstJ+bpGVWpL35U0D2HToug0qI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TbFnCeQ0k4sYSwBow+wy/0KN6BCCfYiinHy1ICWWBFz4isQyRq/qWecNr861xSpdH FCnO+FW37zj66bmQni5dmPYpoCchqBMJQwde5Co3EYHS9AWTWIFpgvNaP/gzFmfcLw E59Wp7SItpJ0QExhK3b6kh30OgjJ1cq1h316Jd4D7qPtzOso2nJAsmZM+IL1fTCW8p rjEGTxddmM/qTfTX2Q4jQ1w9aZUzSeEEK4YEA/NJ8Nv5IU7DCUchrtvo1QeVJtu8I9 DFV4vDFpyJZDGjX/65ZCv/iFdlJhWhN7FByCOcnBt+2gBJIGFE7fRsQFiBqmVaw6Ow J/2Mkpzn9jsRQ== Date: Wed, 12 Jul 2023 18:59:38 +0200 From: Frederic Weisbecker To: "Paul E. McKenney" Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, rcu@vger.kernel.org Subject: Re: [linus:master] [rcu/nocb] 7625926086: WARNING:at_kernel/rcu/tree_nocb.h:#rcu_nocb_try_bypass Message-ID: References: <202307111535.4823c255-oliver.sang@intel.com> <842683bc-5859-48be-8ca5-17a1e4bf3f39@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <842683bc-5859-48be-8ca5-17a1e4bf3f39@paulmck-laptop> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 11, 2023 at 09:41:58AM -0700, Paul E. McKenney wrote: > On Tue, Jul 11, 2023 at 06:06:11PM +0200, Frederic Weisbecker wrote: > Heh! > > The purpose was to see if this lock was ever contended. I guess we now > have an answer, which is "Yes, but rarely." > > It looks like the victim commit increased the size of the ->nocb_lock > critical section, just enough to make this happen sometimes. > > Removing the WARN_ON_ONCE() seems appropriate, especially given that > this only happens when shrinking. Ok, I'll check that. > Should we add something that monitors that lock's contention? It is > often the case that lock contention rises over time as new features and > optimizations are added. I'm not sure. Should we keep the current ->nocb_lock_contended based engine to report contention somehow somewhere? Also does it behave better than our current spinlock slow path implementations? Thanks.