Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2645528rwb; Thu, 29 Sep 2022 13:01:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4a4CjPkz60h7DX9EpM+AQ0pGKpTxQ6O54Fpy2PULxZ6UZV9N0/WyMkqRa0fdp6p2M1eYFB X-Received: by 2002:a17:907:97cd:b0:787:ccc3:fde1 with SMTP id js13-20020a17090797cd00b00787ccc3fde1mr3234512ejc.334.1664481700075; Thu, 29 Sep 2022 13:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664481700; cv=none; d=google.com; s=arc-20160816; b=OSBGWkMF/IqRKIakO0Zxv7jiBUqJXPYAMgZz2hEfIrZYPGxSmLrUjWToZlDVG5zaEK tb4alQ9KR8qEmB56D1pwue+QGIxq49u9sG+it9oVOa/zuGosjQiYXTdPOP+clm5pItJh wWxt8MKj+h2TWjHAgGHgSAXe/Bop1yUZuPZX9UBWxmFfBK51hgUYXIlvVkrE9UKGD1Hk BYTDtAy8p4HPJOF73ffyQ+5rExous4B0BWe2hZ7NY5Z59t8b8OEBCvsz+pq9InuSk60d YBnrqJZUvwPFiXDOJTRqV2MrAS3ZOOW3NolMP1QyH/Z2LzJNeREG+O1pAEKlOsD38tj1 uPMw== 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=CSF3Ei+MQWVWZOwL9CL95glwc+A5taAeXf6C2FtRM6s=; b=sAcUS/MNqw1q2pa0LrqPmK64og9/rZTzWDPD4ZgzOFjEbeJMwveSzEiRw5fx+QuWLL d4ZfECI5sCwIC9y34Uh/6TxQMTzIlFkXfBxAIhMmbK1MRfskeNcZX242u5om8IUvkPpr iA5ZN/k8V5ZZkzFSCImfA06OZzXVafIItjaW8Z+pupAB0vI+DK/TDlMFtb7GKUbC+ArY WQ2UJ3/MD0lJq/d6JPko0QF0zHKuxuL0iGoHqBxjgNVHJPoY83gQgYHEUxPWyUd5QVlk 34YPztlXq0A9ZfGIhYsMp7XqRApjBPhB8F2dYWALmmiJwC+cSjrIaf8gTWobLkn6JiQN yPOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OsnKtNei; 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 j6-20020a508a86000000b00447dfae6181si381140edj.235.2022.09.29.13.01.13; Thu, 29 Sep 2022 13:01:40 -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=OsnKtNei; 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 S229593AbiI2T4q (ORCPT + 99 others); Thu, 29 Sep 2022 15:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiI2T4o (ORCPT ); Thu, 29 Sep 2022 15:56:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C06F41EC9B2 for ; Thu, 29 Sep 2022 12:56:43 -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 B66296216A for ; Thu, 29 Sep 2022 19:56:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25813C433C1; Thu, 29 Sep 2022 19:56:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664481402; bh=nppm+sLoKjXXKAFW+4L5wobI8BPs7jkgM6v5WRbgCJM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=OsnKtNeihCRcHtHXa3pG5UO46PjSYEGQ6Eg4ZNcXYfnLZtD/7PJMEajaZvSSszvQD PspL4PZEiN9bLkuPRe/Yp5qv9v3JjoAjVu67JYRu+7Avb2ziEjw9L5iwKk1R5HRkzy zSOM1AMK7qly2qWR8WW158a+JrgmRbkFwGaPDbozv0yMoyiw/iT3z3+yBcD4hqHqrh AxG/2qOmcHwjEygwHHpVX6pac4+BB+sQ7JFAYw1ZrbCkoYKBJiZSv6a92YV9STZIPd I8AB7XDTac8/H7qHrJa6ZaJLYybJu/caHz3YxfrYqelcgM0XLmBzCwzhuELxS0xawG h+SV+SQhaTwTQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id C21855C0AC7; Thu, 29 Sep 2022 12:56:41 -0700 (PDT) Date: Thu, 29 Sep 2022 12:56:41 -0700 From: "Paul E. McKenney" To: Peter Zijlstra Cc: Joel Fernandes , Frederic Weisbecker , Thomas Gleixner , linux-kernel@vger.kernel.org, Boqun Feng , "Rafael J. Wysocki" Subject: Re: RCU vs NOHZ Message-ID: <20220929195641.GZ4196@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org 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: X-Spam-Status: No, score=-7.2 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 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:08:42PM +0200, Peter Zijlstra wrote: > 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. Very good. Send a patch. After some time, its successor might correctly handle lock/memory contention, CPU hotplug, presumed upcoming runtime changes in CPUs' housekeeping status, frequent idle entry/exit, grace period begin/end, quiet embedded systems, and so on. Then we can see if it actually reduces power consumption. Thanx, Paul