Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp240449rwb; Thu, 6 Oct 2022 17:45:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6JewtfGqaBwpRgUEABNCDd9KZN7zpxk2qAkv0iLGJ+JioOYyySUEIg3ca48Ci8lH+scWyJ X-Received: by 2002:a17:906:4fca:b0:782:2484:6d72 with SMTP id i10-20020a1709064fca00b0078224846d72mr2097791ejw.150.1665103520337; Thu, 06 Oct 2022 17:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665103520; cv=none; d=google.com; s=arc-20160816; b=ikL/rPOlIxJs+RtZgQRUE3MrlqoN4WPIOdvM+03o2quk1ALhwZirASNNdSAvvuOh3r gzf/pEZJoaT2bq7ut/4z6kVUzE+HsljRAWEdY/yVPq0PK8ldTadMQYpauxu+oiChVzUF 3CEkeLOAFPm4t7VEToVHWhkFybDnC7C/dJtQ+kEH+kTbPFd/5RtZcQ/oaoODXZ/yj1Tf 09azo1CGJJLXp9gPsx0mrE5j6oO7jbJ1yXs2JzJx10gmlFpssFPTV4akH87Ktm41cxtN kMkZKgzBOsOsv+LZEmj/fR9Y05ctnO9408xMj5G+xBzzyk/st25upsFnyNYTSoCMIcyo 3Ihw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=c9dYXaNE6QAaJBV4SvLG2MOZaYLWQPEhdj4RYdDWJ9Q=; b=HEJoWg0V4rUAHmzV98mVlcJ7I9QbG3eN5eizn/eNkiwpsloNYfn2C9j6/wePOEXydE qXr0mE2XcNF+iuguivPUgpjXFqY97unjWt7orUJNlej3QiTRLe2SE075YxUWjxREFFEN d0PFAck9iKLl1IUqDIg9vkegN9brZNaaK42bp2T9eUTtHPfvQSivfnLg+56sHkiAOsH2 c7fcpwm4xxplATyUYsZtFFFuGT+oxz4H9ArN6ksSRdRCOpUkNXrw//u1RJxcMWhjHaWI bbmoCiwDyEQP1XssJ2JT+PtjBvIZcuQRuvlKL4CV9QSZ+3RyqQekK4HWKcJ81YIJOT8V X5fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b=anx8kIB2; 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=telus.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t3-20020aa7d703000000b0044eca55b86fsi625983edq.367.2022.10.06.17.44.30; Thu, 06 Oct 2022 17:45:20 -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=@telus.net header.s=google header.b=anx8kIB2; 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=telus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232209AbiJGAHL (ORCPT + 99 others); Thu, 6 Oct 2022 20:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231796AbiJGAHK (ORCPT ); Thu, 6 Oct 2022 20:07:10 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8CA49E0EE for ; Thu, 6 Oct 2022 17:07:08 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id t18so3544459vsr.12 for ; Thu, 06 Oct 2022 17:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=c9dYXaNE6QAaJBV4SvLG2MOZaYLWQPEhdj4RYdDWJ9Q=; b=anx8kIB2g6xAeYVEtbz1upJNeAhS8T4BThlK4BKBFEM7slwiFJz2rjCWHsMjZ93tHF Fzt4MbhuI3CwwUlauys3UJ9rjZrZiBV9rEVJkIVRtMZLQqvNHfM7Qs+pol6JrgWKMyyM 5fRocapXnTwnl9ZAXWSnkEC0sYRIdbyWIGElV1CMuEnntoM9+FXE8BUSJy2WrrcnWojK UecsdweGkfunwdyKa0b60bXqiuhAu7B7eX9soKBXCovQ/u+WADXjqsPplEG7SjnmxR/t 7yRtrfp8JBC6vqPFKUQhUTBx3UYxB/igSoIt7pvXL8T1yS5On9EQQZ4bjkBmtcflItZ2 MYVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c9dYXaNE6QAaJBV4SvLG2MOZaYLWQPEhdj4RYdDWJ9Q=; b=jaqzQLD7iLhAjL9xNBA5Lntr6/RGkMCqd0cYB0z3IpBB/AwaXhi1AqdfH5+aH3rYk7 PvGbYiKLH1teNY5c5tX6i1fStRt41fBr+ITFSA/eZSQ6baXKx7kkuD3ylHmBgTetLlyW 5thjD5YZC1cIbVYAAzwtGDbsAWDMBH3c/7BZzKHrX12qFyyV6pHiewY/SR8WA5SUhQhx u8Xk6Rv49co+WA2Kge86XAOpsUQ5u57eS27hALzqRB0a4BQyEQEfwlzVWt9OudK4mrMF GfOiMNLfEtWgpGgI5s/rnCjCC3NqLJaEPiKyhY7+1OZErYucE5n1c9DrpDvHo3psqSqo paMA== X-Gm-Message-State: ACrzQf3g1RJCF5506P6ABs4bW7ODG4QPWASiU/viHlJqzadeUgAkpXn6 KVoQz2QEloI2NsYGCClm0wsR2QSDN9UZo5oblhUwkQ== X-Received: by 2002:a67:fe11:0:b0:3a6:e59f:3def with SMTP id l17-20020a67fe11000000b003a6e59f3defmr1558597vsr.39.1665101227932; Thu, 06 Oct 2022 17:07:07 -0700 (PDT) MIME-Version: 1.0 References: <20221003144914.160547-1-kajetan.puchalski@arm.com> In-Reply-To: <20221003144914.160547-1-kajetan.puchalski@arm.com> From: Doug Smythies Date: Thu, 6 Oct 2022 17:06:58 -0700 Message-ID: Subject: Re: [RFC PATCH v2 0/1] cpuidle: teo: Introduce optional util-awareness To: Kajetan Puchalski 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, Doug Smythies Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Mon, Oct 3, 2022 at 7:49 AM Kajetan Puchalski wrote: > > Hi, > > At the moment, all the available idle governors operate mainly based on their own past performance > without taking into account any scheduling information. ... I tried V2 on my Intel i5-10600K, but there was little difference when compared to V1 in terms of enormous increase in processor power consumption for the periodic type tests I ran. However, sometimes the power use would drop down to comparable to the normal teo or menu governors for a short time, which V1 didn't do. 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 As previously mentioned, you are overriding everything that teo does anyhow. Note to other readers: I also sent Kajetan an off-list email with more tests descriptions and web links to results graphs and such. ... Doug