Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1892669rwi; Tue, 11 Oct 2022 01:42:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gZOYThM4Tt8I0A5fwgE/GzECahC7Ov6qcVaI4slLEIHndD0PSAMkrcZ5VQbPWk7wvc/Zv X-Received: by 2002:a17:906:99c2:b0:78d:b5cf:419e with SMTP id s2-20020a17090699c200b0078db5cf419emr8054591ejn.673.1665477773271; Tue, 11 Oct 2022 01:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665477773; cv=none; d=google.com; s=arc-20160816; b=FYM9DBBnYBT8rxqga2dhw0sNsnlVKYUmb9J8ZOzxzE8lez1ALjDYWb5OLMU8yBSJ6S bsiNTjWNYAqd6WvYErK8MJ/P922Q3/uXNneBkq1s9E3bvl1zLMRVlgYC5ltP5ZYcr9F0 Z9adLRsTe52XeUa3ZVZ0ojLx85bC56qmqCiznM7NdpwcYnsoPdAkOdr1y3kfI+jSWR2a kzeBHY172tyqXehwJNUkcXqKLB8k7KMKk66PqfN5/QIydq4O8u2c3ORQHpjxbuKU9Hk8 eG7JSS4ZLQCEhpJRSdTzMXInjHbcgFviKK7+0QpYeVuBtGt+VbbK/kzTs50pHRbOjQL/ tJdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=BrQl4mg8KemcEGpYDSn28FkUz2lPZq8lXxBiJ5gAZOQ=; b=USVD33Zx5owus9oXf+9UYUsJaDwvfCVMPB2baUJe/sbuObXl8C0jBKxlKkL8PfNMM1 Dr8QdguiyYQoC89GSzcOFDQaH1e8Rwf/TShAyW88SwOLEcM9QEj0MsaLF8S5c5+63w0e O4/10HBxLsWxZcK+6Xyfs9DW9gZtWVDouV8Y/+3msbQG4xa6CvwVC1C0bmpRmag+cQaS 6bxqUbXKkn66O03blpQyKzJzX4SHRJwDMn2kB7DrUMcOOPfvWAgts1lyS/vNemlCl4SG cjBBiroATvxPGz+m9GuZZEIprxofd1+WZE05IMSRs3+G7BX0WeJodaPq2BQ/+FhaYIhH DPqw== 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 g11-20020aa7c84b000000b00453aa9656a3si10741253edt.466.2022.10.11.01.42.25; Tue, 11 Oct 2022 01:42:53 -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 S229786AbiJKIV6 (ORCPT + 99 others); Tue, 11 Oct 2022 04:21:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbiJKIV5 (ORCPT ); Tue, 11 Oct 2022 04:21:57 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 320C02126F; Tue, 11 Oct 2022 01:21:56 -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 2DD01ED1; Tue, 11 Oct 2022 01:22:02 -0700 (PDT) Received: from [10.57.1.254] (unknown [10.57.1.254]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 762813F766; Tue, 11 Oct 2022 01:21:54 -0700 (PDT) Message-ID: Date: Tue, 11 Oct 2022 09:21:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC PATCH v2 0/1] cpuidle: teo: Introduce optional util-awareness Content-Language: en-US To: Kajetan Puchalski , Doug Smythies Cc: rafael@kernel.org, daniel.lezcano@linaro.org, Dietmar.Eggemann@arm.com, yu.chen.surf@gmail.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221003144914.160547-1-kajetan.puchalski@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 Hi Doug, Kajetan, On 10/10/22 11:09, Kajetan Puchalski wrote: > 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. Thanks Doug for testing this work, we really appreciate that. Doug maybe you could post these into some public space, so wider community would also see them. Kajetan has used github to put a report with testing results containing some graphs/plots. > > 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. I also have some issues with the email inbox. Me apologies Doug, we will sort it. Regards, Lukasz