Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2631604rdb; Wed, 4 Oct 2023 07:07:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwwHdTZAYPeRx0/otg0cYGMW98oxr4XRxrtUjA9klviA68BV7yGPYjn1Em3+FdIOB0ckYo X-Received: by 2002:a05:6358:9192:b0:150:70a:417 with SMTP id j18-20020a056358919200b00150070a0417mr2716875rwa.22.1696428460007; Wed, 04 Oct 2023 07:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696428459; cv=none; d=google.com; s=arc-20160816; b=O/ZLdytdKDakHC3Q/5DCOTf0Y0WtRpiC8939zP5Faqla29FxGCP/evJrBERzaZuEg3 s+TFr+S2yXkxCTkmSuG2PNPNBtGStOXxicDpehUQEwHVcRRfJDmIVizgDP2WyKLp8mmZ rNxhWyZEi4BR9LUEbJfrmHWlIC3LlPnA6gd8UCEXhBJ5tnbbWcCb4ognMXZnyZLhraRg wlV4uSiXOHWSLYHZ7ZESFLr3wRk7QQtLixg6gNK+bDYRxJNpKOBMM2hxOhF1qulrMG43 3oAf4t2oKyPRKzVLovkE/SxXT4ZiiI2s3HNFyQHkel2sW+WURISmbix6uwmp5nv59/aM 51wQ== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=C/5W2xsPUx0iro3+SWMF2IGLt9kk3KDT9QtKohQ81wI=; fh=vVvfSO0KEX51P4ngSmQtx47/YEH4KLf0O/e45cMM1Xs=; b=bQVwvOgAyMdp1/MsVH5oxmhSDMaEJ52kUC1rflgo4b+Gh9/vaUdDExyv/qJasw9B1G 6gvav69st1HZ/GpycxauC48YDZGQHOL6UMNIA2u6qY0ihCN8PRj55VSkTkpt2mFXoYzK gF0HMK4piYwqTHhGPrxZ/01aqlASi8b9RtKgZ46NmpqVxmy+LkOZ0MT3LFQMgb5WUP4T PcCi5nJEJ4Ir9BZPsE5OGAzlkgzwn1jt9f3oqt4q6RHnS6+LMuU55vXa/Zp4hwtHogs7 GaBc8h9AzCnqM2aaFLolAHpJwOqiMs+Yb3a5hHn/JqpfUa64CBOxrPHBGQ6DUDFZknhq Wa4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Obf55Ll+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g190-20020a636bc7000000b00573fc592e9dsi3493362pgc.848.2023.10.04.07.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 07:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Obf55Ll+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9507081ADD66; Wed, 4 Oct 2023 07:07:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242789AbjJDOHE (ORCPT + 99 others); Wed, 4 Oct 2023 10:07:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242733AbjJDOHD (ORCPT ); Wed, 4 Oct 2023 10:07:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88CFAAB; Wed, 4 Oct 2023 07:06:59 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A708C433C8; Wed, 4 Oct 2023 14:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696428419; bh=0aMNmntwZCcrSGUrwkiAjMgLAOJXkQKHi1pPoXwQ0VY=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Obf55Ll+HfLmdSGMfH8g548AIhnPoFDKzbLgvQFM3NaehFhsh+Zuo61L3iEaPCY9w ATyBnVTw6RVYNam1c0MeZCPxq/56JjGiJsDLU23z1ISsrfe9lGHTPPyjVUa/EzaSQB dMITksDhBlCtE9tbpJBr+lD4eu4qHsEOhB7teQfTvAZwnzaWIl7V3JlfxziFCf/UBE RS6rbyv63nfEh2L1fUOwH31sQJO9sO1sbftFBbb/2pUggp/BlvfpRipIH4TrXWufDV dxHXrX2qjH4CPFln6KR1oQtzbYawrgotQhip39M/PpB+E8ErPGs0BIQSAb2hgqCFhD CKNTbESN8TSoA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id B485FCE0223; Wed, 4 Oct 2023 07:06:58 -0700 (PDT) Date: Wed, 4 Oct 2023 07:06:58 -0700 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: LKML , Yong He , Neeraj upadhyay , Joel Fernandes , Boqun Feng , Uladzislau Rezki , RCU Subject: Re: [PATCH 0/5] srcu fixes Message-ID: <77322b72-1d95-46c6-9837-1d811b36336c@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20231003232903.7109-1-frederic@kernel.org> <1d21ceee-56d3-4784-9e6f-0a766c773833@paulmck-laptop> <811d08e3-efb8-4398-8fbc-6b5d030afb15@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 07:07:36 -0700 (PDT) On Wed, Oct 04, 2023 at 11:36:49AM +0200, Frederic Weisbecker wrote: > On Tue, Oct 03, 2023 at 08:30:45PM -0700, Paul E. McKenney wrote: > > On Tue, Oct 03, 2023 at 08:21:42PM -0700, Paul E. McKenney wrote: > > > On Tue, Oct 03, 2023 at 05:35:31PM -0700, Paul E. McKenney wrote: > > > > On Wed, Oct 04, 2023 at 01:28:58AM +0200, Frederic Weisbecker wrote: > > > > > Hi, > > > > > > > > > > This contains a fix for "SRCU: kworker hung in synchronize_srcu": > > > > > > > > > > http://lore.kernel.org/CANZk6aR+CqZaqmMWrC2eRRPY12qAZnDZLwLnHZbNi=xXMB401g@mail.gmail.com > > > > > > > > > > And a few cleanups. > > > > > > > > > > Passed 50 hours of SRCU-P and SRCU-N. > > > > > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > > > > > srcu/fixes > > > > > > > > > > HEAD: 7ea5adc5673b42ef06e811dca75e43d558cc87e0 > > > > > > > > > > Thanks, > > > > > Frederic > > > > > > > > Very good, and a big "Thank You!!!" to all of you! > > > > > > > > I queued this series for testing purposes, and have started a bunch of > > > > SRCU-P and SRCU-N tests on one set of systems, and a single SRCU-P and > > > > SRCU-N on another system, but with both scenarios resized to 40 CPU each. > > > > The 200*1h of SRCU-N and the 100*1h of SRCU-p passed other than the usual > > tick-stop errors. (Is there a patch for that one?) The 40-CPU SRCU-N > > run was fine, but the 40-CPU SRCU-P run failed due to the fanouts setting > > a maximum of 16 CPUs. So I started a 10-hour 40-CPU SRCU-P and a pair > > of 10-hour 16-CPU SRCU-N runs on one system, and 200*10h of SRCU-N and > > 100*10h of SRCU-P. > > > > I will let you know how it goes. > > Very nice! It might be worth testing the first patch alone as > well if we backport only this one. The 10-hour 40-CPU SRCU-P run and pair of 10-hour 16-CPU SRCU-N runs completed without failure. The others had some failures, but I need to look and see if any were unexpected. In the meantime, I started a two-hour 40-CPU SRCU-P run and a pair of one-hour 16-CPU SRCU-N runs on just that first commit. Also servicing SIGSHOWER and SIGFOOD. ;-) Thanx, Paul > Thanks! > > > > Thanx, Paul > > > > > > While that is in flight, a few questions: > > > > > > > > o Please check the Co-developed-by rules. Last I knew, it was > > > > necessary to have a Signed-off-by after each Co-developed-by. > > > > > > > > o Is it possible to get a Tested-by from the original reporter? > > > > Or is this not reproducible? > > > > > > > > o Is it possible to convince rcutorture to find this sort of > > > > bug? Seems like it should be, but easy to say... > > > > > > And one other thing... > > > > > > o What other bugs like this one are hiding elsewhere > > > in RCU? > > > > > > > o Frederic, would you like to include this in your upcoming > > > > pull request? Or does it need more time? > > > > > > Thanx, Paul > > > > > > > > --- > > > > > > > > > > Frederic Weisbecker (5): > > > > > srcu: Fix callbacks acceleration mishandling > > > > > srcu: Only accelerate on enqueue time > > > > > srcu: Remove superfluous callbacks advancing from srcu_start_gp() > > > > > srcu: No need to advance/accelerate if no callback enqueued > > > > > srcu: Explain why callbacks invocations can't run concurrently > > > > > > > > > > > > > > > kernel/rcu/srcutree.c | 55 ++++++++++++++++++++++++++++++++++++--------------- > > > > > 1 file changed, 39 insertions(+), 16 deletions(-)