Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp515848rwi; Mon, 10 Oct 2022 03:50:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6SP4pC1HHKAvNgBvSIE+8y+LLY3gKFDKoOUBcjLpBpZ/O9GtVSF0Vne2ilTzr9bTl4DF1o X-Received: by 2002:a17:907:7204:b0:783:e152:f1f1 with SMTP id dr4-20020a170907720400b00783e152f1f1mr14528056ejc.119.1665399025410; Mon, 10 Oct 2022 03:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665399025; cv=none; d=google.com; s=arc-20160816; b=DfbBXtQNVYUHKRsPMFQ23JHCpK4fvpIC3nW1mrC4UyH9+HEZwliN9C9eT9iLSAmH75 G0VLmVs0ZdHW8XUxjrBysWabepGOLu75CY27LXXqtJzK5Xq7skLZhFaoYYqpi+ao5t07 TfvC9JtmP10acRXQXllv2mEtfs6i60RBGRGprWL1xAWCHVssfDtPbv9TdhPD+SmGLWgU ZGL1Kj0hM4Znzd52O3nVd91o5kd9ywEfTF9Rc71uyqM29CZVCz0G0xkDqpJiqGoYh3Ce TL9R59QoB++Umk+OUOe7Art4wjy/Enl8KaExEmWhVglugwTnspl09bwPQ6DNos9rRNyz Mn8Q== 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; bh=ekUxA1mpU8r6mE+SzrNCrwu8iO5xW37kl0Yr3FfpkfI=; b=LFuGTcuVvBwbR0msP1F36XIsZQ4dEYS1vDWFptZNf6FrMgfqxGBfz4nxMqEjQn1yrv Cbgi21R0rLSYRfBxK9/AJFxjk+B9A0dzFXUawuuT8uaNhfRf7Qmjieu8H1azXXYjpyA8 MTdEFe/FyZDXcoglvVa83o5Ab9HX6R/YN+7frtaPCBdN4gye9+C/HhLIYDHoa5FkeuZx ssUNn8755PNBDTZNSmOUOa1vJD6dtGfEgCapTV8ZP0OWXNaE9OBDo7xli6p6Bq3F1WWY 4YQhdi4Ve4adnKo2yuhQZiewdhdWb4UnlgwfpfrOH+oGIk0Pe9gE7JYj5+vZzzSFvP80 SxTw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt35-20020a1709072da300b0073d64fca704si11075378ejc.36.2022.10.10.03.49.59; Mon, 10 Oct 2022 03:50:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231513AbiJJKJd (ORCPT + 99 others); Mon, 10 Oct 2022 06:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbiJJKJb (ORCPT ); Mon, 10 Oct 2022 06:09:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D361166853; Mon, 10 Oct 2022 03:09:30 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 390F31480; Mon, 10 Oct 2022 03:09:36 -0700 (PDT) Received: from e126311.manchester.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3E1883F792; Mon, 10 Oct 2022 03:09:28 -0700 (PDT) Date: Mon, 10 Oct 2022 11:09:11 +0100 From: Kajetan Puchalski To: Doug Smythies Cc: rafael@kernel.org, daniel.lezcano@linaro.org, lukasz.luba@arm.com, Dietmar.Eggemann@arm.com, yu.chen.surf@gmail.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 0/1] cpuidle: teo: Introduce optional util-awareness Message-ID: References: <20221003144914.160547-1-kajetan.puchalski@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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, Oct 06, 2022 at 05:06:58PM -0700, Doug Smythies wrote: > > I would suggest a completely new governor for your > only 2 idle states, and of similar power use, scenario. > Incredibly simple: > > If CPU utilization >= threshold > select idle state 0 > Else > Select idle state 1 > Endif That would be easy to implement at least but sadly just doesn't really work at all. It would just result in huge amounts of too deep C1 sleeps which are the main problem for us at the moment. For all intents and purposes, only ever selecting C0 gives better results than this approach on our hardware. > As previously mentioned, you are overriding > everything that teo does anyhow. To an extent yes, this just came from observations of how cpuidle behaves on arm. We tried an approach with only ever using C0 and it was all right on power usage, the device would just heat up too much and lose performance. That's why this approach of using TEO when the core is completely idle and moving to the lower state when it's not achieves the best of both worlds. > Note to other readers: I also sent Kajetan an off-list email with more > tests descriptions and web links to results graphs and such. Looks like the email got lost in my inbox, could be some email filtering or something like that.. Could you possibly resend and cc my private email (kajetan.puchalski@tuta.io)? So far I've not directly received any of your emails, they show up on the mailing list archive but not in my inbox. Could be an IT issue on my end but might be worth checking your email setup regardless. > ... Doug Thanks, Kajetan