Message ID | 8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-77570-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp301736dyb; Thu, 22 Feb 2024 16:26:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXvU3BaFkz7RIY10kc+ozeW9S3ddYEqrhO9q/suHrRg7sUZQHBWZWooRhau8mE4B4bbQvH2CCcVqRbhEmYqzs44oZUPTQ== X-Google-Smtp-Source: AGHT+IF/4YKJco4Ez/AS8sWBXcpry+BW5AwFK+QhJFStmGoaQqwslc8mJwlbtr4o+k1P/aC4Hx6k X-Received: by 2002:a17:906:190d:b0:a3f:af82:569f with SMTP id a13-20020a170906190d00b00a3faf82569fmr240957eje.33.1708648001507; Thu, 22 Feb 2024 16:26:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708648001; cv=pass; d=google.com; s=arc-20160816; b=PSnJ3TM8ArSYFNMrpGWnLNvV04TbZvXtnmtAU1lN7qbgUjoAwJPTeuEN46lKD5o9GJ 6BOa1BXznEXoVqEbX44dwNhHOSgBdozLBUDH4Z3IojUt8W/0bKaEeQUEIynZZcETHv/l Rlh0JQJshhbHrzMRnc5dxeqrRSASyan4NGWbBeUwSod9rbQMirnhNGBBdGxl9fW/mCcn kmGCKJqQdh6khVdevW+7wBm9g2VJMGEvL3cVD1srOFZfOHziU0P7pJUhqqL/siWmrIg1 SDKmvvTctM9BKNvCa9BWByXJh+FwBfc2v9wUmjaB5MBvbU61ZZLw5FRK9LApVRHSnGg5 HQMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XJ6KEatbrXYsK6wsv4m596yV8wvqn+lfZr/1ZUFpem4=; fh=xF7AhwBS2hHwVhVTLmRNczZnQ+ha5wmZldU9of8o4AU=; b=pD30ftQaB8gDcR3Vgm2KrInGXHHZ1ZuH7o7uSUJjyb37oMZeCVQUKo7sWRvK0eg5xV s6P5JxUGywysDWFp2FefpQNqHdPPi7WR2dmylI69g+pJSGEp1V9PeJeWV8tRy/A3N/zY IsdyqAnGn1+y6aRjA5cPwMxW2pyOMe324mhocQ5lyyh+LevVd7mqB9Jnt054Vf7sAKyG ubrycIIy7cVqCD4L+BiTNG65vggM2kzOPoAPn0/6RFDOmHVg15qVdOMlCJIvQxgTFEUn E5GMEPjY7aNBAsfMMOsTuiyws9iq6ro7Fq7MHUToCouFGGRfGSKIF3NKXmjhWYw6PwPk QFPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KXy4ozfP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77570-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77570-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bk4-20020a170906b0c400b00a3f4419227dsi1853922ejb.672.2024.02.22.16.26.41 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:26:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77570-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KXy4ozfP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77570-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77570-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id CBC7A1F23234 for <ouuuleilei@gmail.com>; Fri, 23 Feb 2024 00:26:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5659A3D6C; Fri, 23 Feb 2024 00:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KXy4ozfP" 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 C309F7F; Fri, 23 Feb 2024 00:26:18 +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=1708647978; cv=none; b=EThgnE8O2V7kJhHnp+Qxx5rMKPbJenp5jB3tFaio952e49t/QusbP5kB3uszqSAteeRjkzRfJ4ks3+u0VYssOdmFyLvuWPdC9mXhlzS62+0b62HLdijq/3yvHLYGvJEp5/ILQ8NAN0uBm4yOUr+nTn84f82a4K2J8KqnlKUmXsc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708647978; c=relaxed/simple; bh=TGAs5tijV86Bh0/zpNxrYr2pad3N4E7e0hYjM8ykr9k=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ptUesRQCxcZd8m0yFpnwvWMLR7Q0g4+q9mgw9l0QP7O4jZNOlGHtlY1N+6nQfKAVPn9kokkxHd0/0RDBZmXYy4/TlEENRgNUS9N2Cr9oveKpT0GLH0/e1iZIeeNvdNBUrjGasDQcUkyK9ckdh2mVf2TvQonCoH6yEKR69RhYBF0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KXy4ozfP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A085CC43390; Fri, 23 Feb 2024 00:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708647978; bh=TGAs5tijV86Bh0/zpNxrYr2pad3N4E7e0hYjM8ykr9k=; h=Date:From:To:Cc:Subject:Reply-To:From; b=KXy4ozfPpXZ/Eixte90fdN8zPH+Km0ZxvoFm+1Svzhjr17BGIMuGEkmUp8HtnOcAO UVxcDTkPmKvquz4ajimzLD2Yt7Mm1Z1dXobcJh2tdMBJfAfufYh1P2mFL8s9w1vNp/ n8JnASXAwYFqICpCJl9MHns8P8OOzGb8K59/eW1jzL4hZOd+ZKa0eMdMN479OQkWLH t/ou2GVjxFP3A8dwq4USTnREZ8fp5K0zyyknDv8xqYToJm2ZPuYQrxnfx3xA2Or1lc QELPM2C3GrQg0DXGnrLolxQFrnY3Cjf+HUdd/EX/ggHsQYb8PVwWVgHb4zQcngyNWX +db5fVoxJHIbA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 46C75CE0B71; Thu, 22 Feb 2024 16:26:18 -0800 (PST) Date: Thu, 22 Feb 2024 16:26:18 -0800 From: "Paul E. McKenney" <paulmck@kernel.org> To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, ankur.a.arora@oracle.com, tglx@linutronix.de, mark.rutland@arm.com Subject: [PATCH rcu 0/4] Refactor TASKS_RCU for lazy preemption Message-ID: <8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop> Reply-To: paulmck@kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791647286414535413 X-GMAIL-MSGID: 1791647286414535413 |
Series | Refactor TASKS_RCU for lazy preemption | |
Message
Paul E. McKenney
Feb. 23, 2024, 12:26 a.m. UTC
Hello! This series refactors the NEED_TASKS_RCU option so that the conditional processing is in one place in kernel/rcu/Kconfig. This makes it easier to make sure that Tasks RCU is enabled in PREEMPT_AUTO kernels, given that such kernels are preemptible, even if only lazily so. After all, it takes only one lazy preemption from a trampoline to significantly degrade your kernel's actuarial statistics. 1. Create NEED_TASKS_RCU to factor out enablement logic. 2. Select new NEED_TASKS_RCU Kconfig option. 3. Select new NEED_TASKS_RCU Kconfig option. 4. Select new NEED_TASKS_RCU Kconfig option. Thanx, Paul ------------------------------------------------------------------------ arch/Kconfig | 4 ++-- kernel/bpf/Kconfig | 2 +- kernel/rcu/Kconfig | 6 +++++- kernel/trace/Kconfig | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-)
Comments
On Thu, Feb 22, 2024 at 04:26:18PM -0800, Paul E. McKenney wrote: > Hello! Hi! > This series refactors the NEED_TASKS_RCU option so that the conditional > processing is in one place in kernel/rcu/Kconfig. This makes it easier > to make sure that Tasks RCU is enabled in PREEMPT_AUTO kernels, given > that such kernels are preemptible, even if only lazily so. After all, > it takes only one lazy preemption from a trampoline to significantly > degrade your kernel's actuarial statistics. > > 1. Create NEED_TASKS_RCU to factor out enablement logic. > > 2. Select new NEED_TASKS_RCU Kconfig option. > > 3. Select new NEED_TASKS_RCU Kconfig option. > > 4. Select new NEED_TASKS_RCU Kconfig option. For the series: Acked-by: Mark Rutland <mark.rutland@arm.com> Mark.