Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2412686rwi; Fri, 28 Oct 2022 06:52:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4G8AehryE+LOCXr6beCRuA3xTAirhBMt01N6AekKNr6MRrP05teF/ny7012B07fZlgAi01 X-Received: by 2002:a17:907:1b12:b0:72f:9b44:f9e with SMTP id mp18-20020a1709071b1200b0072f9b440f9emr46910228ejc.653.1666965174538; Fri, 28 Oct 2022 06:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666965174; cv=none; d=google.com; s=arc-20160816; b=u522hu3rMLz1calj8vgjJRLwneflzIru82fp9RlDOucEqDkIkeUZXosGxTmDiMa7E7 UKmsx5zFF+er1KNeTML0LE1RspP2xJs5FaodoIunZjPlDI1Zwxs7zKU/SijuWqIhbYRQ 92fatFUOoDDW49TvZlf06+NE3WXiGkJZrwqWonAkoKePqS3F3RUYBWoAlgt0XkBiKXzP yi91XTnalpmm8pti1EhjPqVrVJ+3qZQKM9oH3ajGbt8SCl0o0QSbaauJYFCQ93V6gB6V 5Mcezl7uSJjKlmIMxVbow5ir8WghfajOeV/IRg09CWmSWF42gQrJzYWsupK/sr+2DYdY zDWA== 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; bh=eWh8pd3OdimW0V1XMFr3AP+GAzmhu3IzOkunAen1PLE=; b=O5Z5FhqSvIrtQtgI48OJOJVTyPdtUT/V2Nc9OpSQlbWr9BSZ4fIe8l9ljJhdY4oTgk PzrWUH6tOL6GReJ4dsA7VvQUfMlkv1d72VSuzwP0kwfYwS4Rreago667B0iNmBUMcMq5 zqioqXc3jU1LmlvBgHGRuDB5bokBV4hRrOL9jA7bkNdZyLr2hpXTvlVpsVt193bYZ0dZ KYIdD2jSIr71Ct7vPn21D9EEGwisWGs0LnRzjf45d+YAvZLjbFfAz5IAMoabhcHB1ZkA yIwCAa9hf+OoHJFkS/WozbhxRUn1rQtMWfIeBOeJVsjJ3pKb6KKCzvRMpDZ+aozyZBS7 fZsQ== 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=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 e18-20020a170906c01200b007417c6edb0asi3527926ejz.402.2022.10.28.06.52.29; Fri, 28 Oct 2022 06:52:54 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231324AbiJ1Niz (ORCPT + 99 others); Fri, 28 Oct 2022 09:38:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbiJ1NiS (ORCPT ); Fri, 28 Oct 2022 09:38:18 -0400 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2073F1DB88B; Fri, 28 Oct 2022 06:38:00 -0700 (PDT) Received: by mail-qt1-f178.google.com with SMTP id l28so3446988qtv.4; Fri, 28 Oct 2022 06:38:00 -0700 (PDT) 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=eWh8pd3OdimW0V1XMFr3AP+GAzmhu3IzOkunAen1PLE=; b=QMiXTsHYm15EkI6DwAJt5deevKG8ZuoS8PSMuPWIl4Zar+bSLdUAt6xdQv31y8YVau DpqToJy6+MyFwWJQdBvlh05dWpoPk32IxZwGGpnB7PD/HMDCt3clj+LjfMpul88KFUgE M6TldUsq5c87UxI0wCWMPKMtymixMgBsw6u4s/njiu0e1GgqfBCmzHVSgtuiUuzxXSMG ZAH6DRh1tC3BRtRLkcCR5z5jZeT1kDXmTF2+Ewk01U3x8mmKMXZPXo3q/KwSfSqGXbW3 hqMwW2hes4bLxMLmRJ4aWBfsXSexplLloXJEaQOj/Lhuv/0KB4vr8WZY+ndoHCqiCssn H0ZQ== X-Gm-Message-State: ACrzQf1bAcj6vM4JLd809LoUTqV0aKINp+sKyptppCiIvqxetEAQagLS 63V/8ERf8cqJgLKqdst4oYI8G4stI0fM8GfRWkQ= X-Received: by 2002:a05:622a:1a25:b0:39c:b862:7318 with SMTP id f37-20020a05622a1a2500b0039cb8627318mr45882092qtb.147.1666964279219; Fri, 28 Oct 2022 06:37:59 -0700 (PDT) MIME-Version: 1.0 References: <20221003144914.160547-1-kajetan.puchalski@arm.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 28 Oct 2022 15:37:48 +0200 Message-ID: Subject: Re: [RFC PATCH v2 0/1] cpuidle: teo: Introduce optional util-awareness To: Lukasz Luba Cc: "Rafael J. Wysocki" , daniel.lezcano@linaro.org, Dietmar.Eggemann@arm.com, dsmythies@telus.net, yu.chen.surf@gmail.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Kajetan Puchalski Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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, On Thu, Oct 27, 2022 at 10:04 PM Lukasz Luba wrote: > > Hi Rafael, > > On 10/13/22 12:12, Kajetan Puchalski wrote: > > On Wed, Oct 12, 2022 at 08:50:39PM +0200, Rafael J. Wysocki wrote: > >> On Mon, Oct 3, 2022 at 4:50 PM Kajetan Puchalski > >> wrote: > >>> > >>> Hi, > >>> > >>> At the moment, all the available idle governors operate mainly based on their own past performance > >> > >> Not true, at least for the menu and teo governors that use the > >> information on the distribution of CPU wakeups that is available to > >> them and try to predict the next idle duration with the help of it. > >> This has a little to do with their performance. > > > > You're right of course, I should have written "their own past > > correctness" as that's what I was referring to. I just meant that for > > instance with TEO the initial timer-based choice is only adjusted using > > the governor's own metrics and not any information from anywhere else in > > the system. > > > > [snip] > > Would it be possible to consider a new small and simple idle governor > which is better suited for those other workloads and platforms? > Kajetan has such one and can send to the LKML, so you could have a look. > > I have sent some detailed explanation about this to Doug in this > thread (don't want to duplicate it). > > It looks like it would be hard to meet both worlds' requirements. It may or may not be the case. Let's first explore the original idea of improving "teo" a bit more. As I said in another message in this thread, there are clear cases in which the new governor is likely to underperform, because it only takes 2 sources of information into account (the next timer event and CPU utilization). If some more information is to be taken into account without adding too much overhead, "teo" is the simplest thing that I could imagine (but perhaps my imagination is limited).