Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2668270rwb; Thu, 29 Sep 2022 13:20:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6sBPNFfGu4DB4P4R4pnjxG9mCg7u734K0O/krWo5DY2MnPZiROeYDA/Rf0/rQobXL6gvx9 X-Received: by 2002:a63:1e21:0:b0:43a:b17f:cd13 with SMTP id e33-20020a631e21000000b0043ab17fcd13mr4388007pge.553.1664482822611; Thu, 29 Sep 2022 13:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664482822; cv=none; d=google.com; s=arc-20160816; b=YDYFEYgE+X0q/ohjregmBmPdSWQdthSzBfHTouwtaQ/lOGhq1TqZyvJH75qyHIhUWP XHlJEPou6tbW3GggFlc/oGfQTLvi2MzdQMohY0jfBmKAFPZ5Kpa6DoKU93FgWZ3jLNIn ZOx53NrkamuDcq3Vc+GZI65lvqI9B9mNF8Hv2L6f5pqB8o1KEK3lXBw2RAG3sRwhbgYg f2F3aKp8BaHLH0EH88Jh/a4dLdSRiFzP7V5b6QYJgX6knd8j8VOibusU961AwFDaYJvW bHVB1JXKiS8zwPzuENG47HBC7l70YcVCAQM3c8teIrs6UUfD+XwEgnUrdRzGr9Pz/RaX gIlQ== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=/m7cJEPQCo3MdhSQwqZsgFMDCRxk7SKXfVV6nCzeN/A=; b=X2QjZF5Nmil6wNKuR0GHyNsEzPtuWmrg5CgMCEJfuCL0+IhngVCmQVZrc2sAgv7+Je +dWpjfqp2Z0ZlQG43Ipe+yiFbcfwuLgJL5uyUKt7AnlUvEfF/6lz3J1WtZRT3so2A6G5 WeK0Q0NWNlcXPSIBqd6l3WJwnpAucusMawiTbocHF09txQp8tF0VYycZlzg7RNw940uw liABBHq/qzwqYJJ1bD7rRRsJotF76zpSFkoI1BAAJEHo1NnzmlXUML7mM3J40qFZhe6N jXe/02TRS+HCRBMq57XZ/AtRg1mtlr1mFyKTOLYwqwLRZIvOqrufVqYNq7js4XclINIP kN4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=aeCAcBdB; 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 cp14-20020a170902e78e00b0016d2a83e761si679211plb.243.2022.09.29.13.20.10; Thu, 29 Sep 2022 13:20:22 -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=@infradead.org header.s=casper.20170209 header.b=aeCAcBdB; 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 S230134AbiI2TIv (ORCPT + 99 others); Thu, 29 Sep 2022 15:08:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229976AbiI2TIu (ORCPT ); Thu, 29 Sep 2022 15:08:50 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2640914F8FC for ; Thu, 29 Sep 2022 12:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/m7cJEPQCo3MdhSQwqZsgFMDCRxk7SKXfVV6nCzeN/A=; b=aeCAcBdB71HzUBakRLvnpxLF40 RJ4ysUTjgTPXWp9QBc1kstzw1R1avI++Cguo3GbSG1hNf5yVMi8o1kZjcd1TIWR0RlhZf5xaDZPcx tYhf9XKEt8Xi700wv3gdns2E5vidbR15Q/aaijTtfOKC+S+bsxxas9hJ0dtrN3fP3xFcbs+bs/94N qCWZe7x6uG5NNtH8vAC98bo9w+NjbS9TNaLrBPeFQEAnJNyAMIlJohXJ2vmUu095EScClHs6X8kZL HGJXAx4Q0z0n0Ay2u3udSQ/dueNNVwmQqHwHWx+1G+8rP5R/G5ZkzmktvvXIeOAjmeF/+4ckYDNXN rxtEyiKQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1odytq-00DXIZ-IK; Thu, 29 Sep 2022 19:08:46 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1176A300110; Thu, 29 Sep 2022 21:08:43 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id F00B52BEB5D04; Thu, 29 Sep 2022 21:08:42 +0200 (CEST) Date: Thu, 29 Sep 2022 21:08:42 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Joel Fernandes , Frederic Weisbecker , Thomas Gleixner , linux-kernel@vger.kernel.org, Boqun Feng , "Rafael J. Wysocki" Subject: Re: RCU vs NOHZ Message-ID: References: <20220915191427.GC246308@paulmck-ThinkPad-P17-Gen-1> <20220916075817.GE246308@paulmck-ThinkPad-P17-Gen-1> <20220917142508.GF246308@paulmck-ThinkPad-P17-Gen-1> <20220929152044.GE4196@paulmck-ThinkPad-P17-Gen-1> <20220929163624.GN4196@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929163624.GN4196@paulmck-ThinkPad-P17-Gen-1> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Thu, Sep 29, 2022 at 09:36:24AM -0700, Paul E. McKenney wrote: > > How has this been tried; and why did the energy cost go up? Is this > > because the offload thread ends up waking up the CPU we just put to > > sleep? > > Because doing the additional work consumes energy. I am not clear on > exactly what you are asking for here, given the limitations of the tools > that measure energy consumption. What additional work? Splicing the cpu pending list onto another list with or without atomic op barely qualifies for work. The main point is making sure the pending list isn't in the way of going (deep) idle.