Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp495837lqr; Wed, 5 Jun 2024 11:53:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvB5MaBge2HUPmpSO1vui2yjT+roeADs4KP855VeaDEYFuJaWQ1hQ95OO4aL8k2x4u3kJvEwLAugm2k26qxGPXez07kIqp+Or9E2Pocg== X-Google-Smtp-Source: AGHT+IF83rcfIBnhBqqvzt4fOw7VVKbvi+qY4BOKk+oG9cpjAx2TzXPen0JOMIVsF4TIX2AYdanB X-Received: by 2002:a17:902:f689:b0:1f6:6151:7bba with SMTP id d9443c01a7336-1f6b8c4d922mr8680215ad.2.1717613607998; Wed, 05 Jun 2024 11:53:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717613607; cv=pass; d=google.com; s=arc-20160816; b=QBfTIFvkIFGJU4BFnZSX3PU+MvUfm8ZXp6+XiC00Sr/6rOy+08zzb3AvcxfuqCQRZd TZBsCBQRIvu6CAo7BR+46ciS/St5mGTLhepSYvuh/QKZjf5mrEu007X0RDoQeKwpmPOl B7z2Rk2K9TKGpgGIE6/oQ2krsxisATxUU7Qg4Lj/2vhi4PR+zJDvbfWBG/YQeriSL4W3 y6SsJ9/a1aA6KOgGX7+1Izbo9IeXuJl4MH/4RdnDRMmk+2WFw/XTgrUixzor7etnd+t4 BHMsrYv1CCFk6TjkdqzReJyx6FS0LzNKGBmAsajyfS7UKAX755m7Al85kZfTjfssMVf+ fQSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=UMvau7rBBpMvLZzYgksznUG39cRDvGKcT0fVRnDpNqk=; fh=edU7Fi3Lj9kiJi/MZTGHoP0g520Rznr/vAjFQq/uD30=; b=Cc+VywQ7IWCpBT6C1gkrgeyOfphvwToFnlHaJ5BxIFok/h8H0eu258lVRmnFFlelOR df/dy4UTDAoA5LNC+qIgs4UST+YrHWFsRQQQ7sczTTeL1W/CUE/F4AeraF9f5+wh2fHM OeNOKe4Zv5WrkpbEbUnVbvSUY2qaZ90nnxmqg36gGmZBWQgdBxFs5mchEQ3zrGVsRYbn Ow68way7Avt4s9VIN65TBzfUZ/1FmQSbiSWsNVSbwL8UWrUiHEeAzh1dLdXAwKOvG7nG 2FZTLS/FasLMqJdmAOAkgmbGW6yNieuAVisWsEWOLWMzqJwhToezBBKtx0y6bVkRiuxJ /2mA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lTn9fSEh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35c73c49esi10399181a12.755.2024.06.05.11.53.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:53:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lTn9fSEh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6E6D3B23C78 for ; Wed, 5 Jun 2024 18:38:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E00213A87E; Wed, 5 Jun 2024 18:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lTn9fSEh" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BBF87345D; Wed, 5 Jun 2024 18:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717612731; cv=none; b=Np9Uw+Pr30mwz9S5F7oGZESiy7S+881S9EkEPskszHj2UJdTvFc0YnY0eFDs2NrVJiWsEj4vWE5Xv2vIGOQOuK5gcbLh7e/Q3i9lCHFryIEF31DsCjPQfL6EO6xVARri7pIBuOMxcDvmdKsOj3B4zLz462i0+tg8DEKOQBcMoGY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717612731; c=relaxed/simple; bh=rJZv5S1T81gAQR2GyAwP+apEECmT/s44XmdQwBJ6HAQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=n/UWCZKW2c6IMOCXW9yE57T0QnmXaVx5mzjX2/OKuLA+Hzw7qKFPs0rgJHjk88D0+TsBGbBM3wCep68Nc8DXa7pvDRkdoOQLoFPO2s1b9AQfGXhou0hMh5O5Yiu10PVyQkJRNGppcBLMXERE03WI7THh3r64eXdi9aH9NpAt3ow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lTn9fSEh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0B60C2BD11; Wed, 5 Jun 2024 18:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717612730; bh=rJZv5S1T81gAQR2GyAwP+apEECmT/s44XmdQwBJ6HAQ=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=lTn9fSEhDboHizyyo0aTNVR+Rw1sp0gFplDnsg5DX6zWCEhPwaoctK0t1sMgCvtR/ Dh8SCFvDkKmzrCIoX7qqnj15SOsZ3zLWALjT2sc8nV5ug7uTSgxnx9S6z4yvtFUxKL I6utdc5An8Kj847U0mOgCzDiyT4vS8GZz+eJfemqFcZbvJSHto8gDv6c32yuCaKM+8 9BRs03mlRFjk/JZCSYdvAfTbwKqrhA0OY81s2G0Ix3/786mpFD/utBlCWciBUuoG0h C1688xCDXPnFloKQjy3s+H5Bjb1BgQDg/VL6IAwWQeWG9U7NJ8jhQhr43QHY3nTeiR gtL4JSL5dixog== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 88A1BCE0A73; Wed, 5 Jun 2024 11:38:50 -0700 (PDT) Date: Wed, 5 Jun 2024 11:38:50 -0700 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, Neeraj Upadhyay Subject: Re: [PATCH rcu 2/9] rcu: Reduce synchronize_rcu() delays when all wait heads are in use Message-ID: Reply-To: paulmck@kernel.org References: <657595c8-e86c-4594-a5b1-3c64a8275607@paulmck-laptop> <20240604222355.2370768-2-paulmck@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Jun 05, 2024 at 02:09:34PM +0200, Frederic Weisbecker wrote: > Le Tue, Jun 04, 2024 at 03:23:48PM -0700, Paul E. McKenney a ?crit : > > From: Neeraj Upadhyay > > > > When all wait heads are in use, which can happen when > > rcu_sr_normal_gp_cleanup_work()'s callback processing > > is slow, any new synchronize_rcu() user's rcu_synchronize > > node's processing is deferred to future GP periods. This > > can result in long list of synchronize_rcu() invocations > > waiting for full grace period processing, which can delay > > freeing of memory. Mitigate this problem by using first > > node in the list as wait tail when all wait heads are in use. > > While methods to speed up callback processing would be needed > > to recover from this situation, allowing new nodes to complete > > their grace period can help prevent delays due to a fixed > > number of wait head nodes. > > > > Signed-off-by: Neeraj Upadhyay > > Signed-off-by: Paul E. McKenney > > IIRC we agreed that this patch could be a step too far that > made an already not so simple state machine even less simple, > breaking the wait_head based flow. True, which is why we agreed not to submit it into the v6.10 merge window. And I don't recall us saying what merge window to send it to. > Should we postpone this change until it is observed that a workqueue > not being scheduled for 5 grace periods is a real issue? Neeraj, thoughts? Or, better yet, test results? ;-) Thanx, Paul