From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 984BFEB64DD for ; Wed, 12 Jul 2023 16:59:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232663AbjGLQ7p (ORCPT ); Wed, 12 Jul 2023 12:59:45 -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> 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.