Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp129184iob; Wed, 11 May 2022 10:55:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnwvN53DBDlJBdfU2msa07GVRTJlBrXghgcfxrx49WkBb6BNo5nr98abgCQHVQ2H+wV8XQ X-Received: by 2002:a17:902:ecc2:b0:15e:9add:104c with SMTP id a2-20020a170902ecc200b0015e9add104cmr26538758plh.140.1652291726825; Wed, 11 May 2022 10:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652291726; cv=none; d=google.com; s=arc-20160816; b=Eyy82MJw8qcB0OheIDPjgsF507nDHyV98zfh2bXUTQOzYUGlWQXlT/sfhlKrqbIuvQ glabVkqLS70PKCfY/RxriJdhG6Q+AwHgJSfKULDx4RmM8WZDsrSeJPCH9JLq6eqFI11d hpJBM7RabJXSTTmI4ubixZ/2M2UGEC6Y6552+/oQwiEaM6UbdD9Y6wwnHo3uEHlyRjpg EZCdntHLOIuhhm5tgxaiiF00vCtXI+PQ9aJbw9KoCC+Us1s9EQOnrpimqIFq76PmObOo yt/4Dm2M7gMFfUAdWOm/G6+54+KUL+mg0byLHMs9+Ld1MwMDWNgwT/NWOwIWdZ4A8G7y lkqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=bY0pn9fs33BkonFgmSObKWOR1knznwG56lxc1O6dk4g=; b=Jw5jm9ouaSADSxgNvlgAIMAj+jZzRg4V1IIpbl1kbhBhgIOv2d7+c/EOeBYtls1q1N Pqf+LreFUdFZKLmo3f1TmcYZZ7k49Vh9UY/S/1FGxX3v5AHc0SDAxyeinzcZlQuFxoJu 534/IWOg+p/5NIq7teuOPGaYmPNW+FGaJr8Iirgd7wgsMrye0BuXvKDsTUMt5gcU2fo2 l9RyRkHtnx0WyrU4N5lbDgrO6QCN1bEi3IMpqQQ/JOTyHBTU/Zxphop63r3xpwAi1ybv q7j7XYT33seBaf9SNuvjeAlSZaNTp6EGhKQRQW+YRjZqSGkXfYUNzAsEVHc/cHCKzFs2 1hBw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3-20020a17090a850300b001d03c08b551si372628pjn.190.2022.05.11.10.55.12; Wed, 11 May 2022 10:55:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244681AbiEKOaF (ORCPT + 99 others); Wed, 11 May 2022 10:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237191AbiEKOaC (ORCPT ); Wed, 11 May 2022 10:30:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF2D8106A69; Wed, 11 May 2022 07:30:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 92E166101F; Wed, 11 May 2022 14:30:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E59E8C34113; Wed, 11 May 2022 14:29:58 +0000 (UTC) Date: Wed, 11 May 2022 10:29:57 -0400 From: Steven Rostedt To: Uladzislau Rezki Cc: "Paul E. McKenney" , Joel Fernandes , Alison Chaiken , Sebastian Andrzej Siewior , LKML , RCU , Frederic Weisbecker , Neeraj Upadhyay , Oleksiy Avramchenko Subject: Re: [PATCH] rcu/nocb: Add an option to ON/OFF an offloading from RT context Message-ID: <20220511102957.56bd582b@gandalf.local.home> In-Reply-To: References: <20220507223247.GK1790663@paulmck-ThinkPad-P17-Gen-1> <20220508213222.GL1790663@paulmck-ThinkPad-P17-Gen-1> <20220509033740.GM1790663@paulmck-ThinkPad-P17-Gen-1> <20220509181417.GO1790663@paulmck-ThinkPad-P17-Gen-1> <20220510100135.62a4f7df@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 Wed, 11 May 2022 15:39:56 +0200 Uladzislau Rezki wrote: > > rcuop/6-54 [000] .N.. 183.753018: rcu_invoke_callback: rcu_preempt rhp=0xffffff88ffd440b0 func=__d_free.cfi_jt > rcuop/6-54 [000] .N.. 183.753020: rcu_invoke_callback: rcu_preempt rhp=0xffffff892ffd8400 func=inode_free_by_rcu.cfi_jt > rcuop/6-54 [000] .N.. 183.753021: rcu_invoke_callback: rcu_preempt rhp=0xffffff89327cd708 func=i_callback.cfi_jt > ... > rcuop/6-54 [000] .N.. 183.755941: rcu_invoke_callback: rcu_preempt rhp=0xffffff8993c5a968 func=i_callback.cfi_jt > rcuop/6-54 [000] .N.. 183.755942: rcu_invoke_callback: rcu_preempt rhp=0xffffff8993c4bd20 func=__d_free.cfi_jt > rcuop/6-54 [000] dN.. 183.755944: rcu_batch_end: rcu_preempt CBs-invoked=2112 idle=>c<>c<>c<>c< > rcuop/6-54 [000] dN.. 183.755946: rcu_utilization: Start context switch > rcuop/6-54 [000] dN.. 183.755946: rcu_utilization: End context switch > > > i spent some time in order to understand why the context was not switched, > even though the "rcuop" kthread was marked as TIF_NEED_RESCHED and an IPI > was sent to the CPU_0 to reschedule. The last "." in latency field shows > that a context has not disabled any preemption. So everything should be fine. > > An explanation is that a local_bh_disable() modifies the current_thread_info()->preempt.count > so a task becomes non preemtable but the ftrace does not provide any signal about > it. So i was fooled for some time by my tracer logs. > > Do you have any thoughts about it? Should it be solved or signaled > somehow that a task in fact is not preemtable if a counter > 0? Hmm, it should show it in the first part (where the 'd' is). Is this a snapshot from the kernel or from trace-cmd? -- Steve