Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2652323rwp; Fri, 14 Jul 2023 09:11:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQ/0FNHPJpcwkvKEItPyB3TIkXmUgtW/8f/u8cCOGdwHino86nfzpbVDQXo4FDro/9U51H X-Received: by 2002:a05:6a00:ac7:b0:674:6dd4:8337 with SMTP id c7-20020a056a000ac700b006746dd48337mr6767961pfl.12.1689351067789; Fri, 14 Jul 2023 09:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689351067; cv=none; d=google.com; s=arc-20160816; b=gT/6sddYfdlEAwLzjDjMf3jlQNdEC8tuo5twgTS1xsOdu6fvxXIDY8zfDJmf9MZRnE dIDdlryE/Q3PmitZPXWvt3w+ZTYn4ZBz+pAMW+N77uudbvVOzkziqQftlmE+d8bQKwo/ nEj6Q+zOvWAQpmVN1RvmlFqcXNy3NQfJwrhdrRqXTrYH1UpHIDQt6SP0b1L7LCGBeFD8 9eaDzYSbuZWZu9vMUYcDJQ3rr64MMN3/9JCNKh3Fh2SX0rAvICMrKsXsnbnEoz6BkMfu 3C2/I66R/t5NPwrV8lfwRn84VLegIlsgkaYGqHvw/aEvNyc7tiQxbuQmdHt8UbquyX2f Vo9w== 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=F6oupQSV0zkTmjGx2upmtzQXF2qyzYgw3skjhCayYt0=; fh=yTar5NmNgbolwWhlWOG45wBRdNKxFK8iS7FUyVzKCC8=; b=GAPCHbIIOyX/MR9D7hv9Km50rXKPvVlte3jF8oIlducbsu1BNKYP6ra6CianzgT+HQ 9TZALY6aJq4YnVf05OVH/L9r5gmfLiAGFjImx22Ql0rwkc/ex/6pI/EwkcoUQ2NGnfFX 8tHc+5pGknrHG9uY9Ok70tdHpmfJpxR1mlD5NXa9vqlBJeXFlefIdQVC5OLBng25Ggv3 0lUe1M9DlO3ytkloaTHVzMSa2wrLqAuUoVGv9vm0xFd2KMTCCbLWiAtphw5oCRIIb3zY 8UdmUcUe73Yr2M6IYO3WxZCvALy0PxqU7x1ggHmzO4o86OvKRp7XptewuMMDFjOee686 /Atw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9mTxiqT; 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 cv11-20020a056a0044cb00b0063b8a054e06si540574pfb.259.2023.07.14.09.10.54; Fri, 14 Jul 2023 09:11:07 -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=e9mTxiqT; 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 S235928AbjGNPN3 (ORCPT + 99 others); Fri, 14 Jul 2023 11:13:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235268AbjGNPN2 (ORCPT ); Fri, 14 Jul 2023 11:13:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A4162D4B; Fri, 14 Jul 2023 08:13:26 -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 2270361D43; Fri, 14 Jul 2023 15:13:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80E96C433C7; Fri, 14 Jul 2023 15:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689347605; bh=/ms++gXmzcCxNeQJmcaIIDi2dWJOZMkl3ilZS245fbU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=e9mTxiqT5SFcazYh/KzxJ9wXw+vBIuFDC8WF4/Okvoij7KXNzYOfm/RvZSWaTD8bk nUptLTKsO/05/Wh8tKRGkHihY0wSXI4vimazLsZU168iyWjdxaJCgDVoVz7LoYIY3L 7q6/PMuoR0I5oCKZ6WQd4yNHt2rZptHITESUDPUYoc4wPjfNgejAa2ut6QoK115L8e 5NyTlO5PXgsHtrE4ApKb00z4ugJQWbtVIM8acy9YeG4fuZVv0XV4v5ectSv7UzbUV3 ahQMO2L7JTXmc9ldAL0BnrnNqXo9kYd/JsM8tAjwIE92XDtrbRzldP2YbHZt7qvSQn mXYFq2F+eWAMQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 194ABCE0093; Fri, 14 Jul 2023 08:13:25 -0700 (PDT) Date: Fri, 14 Jul 2023 08:13:25 -0700 From: "Paul E. McKenney" To: Steven Rostedt Cc: Gao Xiang , Joel Fernandes , Sandeep Dhavale , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Boqun Feng , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Matthias Brugger , AngeloGioacchino Del Regno , linux-erofs@lists.ozlabs.org, xiang@kernel.org, Will Shiu , kernel-team@android.com, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v1] rcu: Fix and improve RCU read lock checks when !CONFIG_DEBUG_LOCK_ALLOC Message-ID: <41a364d7-9dfa-4cd6-95f0-63f09c3a84b6@paulmck-laptop> Reply-To: paulmck@kernel.org References: <894a3b64-a369-7bc6-c8a8-0910843cc587@linux.alibaba.com> <58b661d0-0ebb-4b45-a10d-c5927fb791cd@paulmck-laptop> <7d433fac-a62d-4e81-b8e5-57cf5f2d1d55@paulmck-laptop> <058e7ee9-0380-eb1b-d9a8-b184cba6ed53@linux.alibaba.com> <20230714105615.1ff9b8d2@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230714105615.1ff9b8d2@gandalf.local.home> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Fri, Jul 14, 2023 at 10:56:15AM -0400, Steven Rostedt wrote: > On Fri, 14 Jul 2023 21:51:16 +0800 > Gao Xiang wrote: > > > >> we need to work on > > >> CONFIG_PREEMPT_COUNT=n (why not?), we could just always trigger a > > >> workqueue for this. > > >> > > > > > > So CONFIG_PREEMPT_COUNT=n users don't deserve good performance? ;-) > > > > I'm not sure if non-preemptible kernel users really care about > > such sensitive latencies, I don't know, my 2 cents. > > CONFIG_PREEMPT_COUNT=n is for *performance* but not for *latency*. That is, > they care about the overall performance (batch processing) but not > interactive performance. Users of CONFIG_PREEMPT_COUNT=n do care about latency, but normally not in the sub-millisecond range. If the February posting is representative (no idea, myself), these latencies are in the tens of milliseconds. So one question is "why not both?" One way would be for the call chain to indicate when in atomic context, and another would be use of SRCU, to Joel's earlier point. Thanx, Paul