Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5261636pxv; Wed, 28 Jul 2021 06:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU1Fr2nIY8B5NHy4wa78JeUn5attaSV0Yh7ETiYjAAApg6YFXGcNKzJYvwZr6VKgcdf7u0 X-Received: by 2002:a50:9503:: with SMTP id u3mr33778079eda.135.1627480702876; Wed, 28 Jul 2021 06:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627480702; cv=none; d=google.com; s=arc-20160816; b=g6xBibyTFujjp6XKlMre/BL8KLzSm/l9dl8ggC0G0vwY6OLsxT18KK+H8NiXvWfx8i mxEgO9RKzuS0LHR98099vtCeHMVBKkFavfUTdhC/woPIjUPECgnjxQjvUSxR57UNoSTh KEUyDUcP1HighcvN3m3dUOjfHtOySv/r1JLKa+7lbs3QY+j4XaGerVgEAr5Sz4veEuIT mBYGG/iR9vQrliik2PQ6ZZQaX0imOa+5CDFpuIaWU0h9uxp6/tFoxpCITyLG+GfVEYUp +ARY0hQKz7xEeT33TO8ua00xg0o3QUR66I7dDc5KCHI2+yk6Pn3xYVHuiCkwaixj1Uil kiig== 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=EQ2uTtmQSF7eeJSxOaPiuG0wacoqEZYWK0ECaKxTctU=; b=rOEr3EY/homtrfWcuCtWw4FZWxbUBmXUAzZ7EpEmhPT+kzcUmGfGGbRVRlGXGCJNnX AwQquMmaldNNheL7NMdJoI3oHq8jPTxJ3OSa9aK2nyBAtixXJlhPmbYOaouSz9WdZTXJ CYf7AEROsW5DJepgrhKqGgeDrJga+HfmbIn6hO1ueA7hxpphXXRloh6i+4HNjpPxr5D8 3V38n+C2ytFvNlyQpE4R6E7CYU+NypAiiaj/hsLsU8qFft/E5kX8QbmckLkLNCkXL8OX Jfnb8x1iEu2KV1h49fllwHn4UKJM/nktxa16FLzHTDtWZdctM5jh2ScU6y2rL5t8GwUd 8qHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si5851125edq.592.2021.07.28.06.57.59; Wed, 28 Jul 2021 06:58:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237509AbhG1NyX (ORCPT + 99 others); Wed, 28 Jul 2021 09:54:23 -0400 Received: from mail-ot1-f49.google.com ([209.85.210.49]:37388 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237459AbhG1NxG (ORCPT ); Wed, 28 Jul 2021 09:53:06 -0400 Received: by mail-ot1-f49.google.com with SMTP id z6-20020a9d24860000b02904d14e47202cso2157650ota.4; Wed, 28 Jul 2021 06:53:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EQ2uTtmQSF7eeJSxOaPiuG0wacoqEZYWK0ECaKxTctU=; b=oGQB6gE01Ppa7kZS+0sq873X5i13SWu6OdEI7jh84/o4C7zxrnxWUKkR8JjZEi0MsD rGeOZh7HjXu5uZvP2DlgS2JGxMOcCsL4ktUUuXSUpBJTvC5DCwN8MnT/mpEHFUG1UrOL +jkOCRcQHtgSHWyzRwHFNZd0jV941DpVOSHameUmPCIHtdv0+Y36SlEl3ahkbV9NiyuN F/+CFt5NYevyB4WE7pje9qU9qqIjp1GnqYpsaKXqnrN4FcFTEXPPM0MpLS6JjixCWoEa kUCCQdsbYn5xF3eAMG1z5RPiErqFL9BPk8dE08VCcLMBo0P3hJ9LV6MpSZdjZmnrqbTc d/bw== X-Gm-Message-State: AOAM5339Bq2R+Ue/2c2Hw6L4XWgB+X6tbc5OkMpEF7+bzaJRT3oQT8m2 iDj4hRFXf+mFMOdcAFq/Ilf0iSpmVnfqYlOvAgI= X-Received: by 2002:a05:6830:9a:: with SMTP id a26mr82592oto.260.1627480383227; Wed, 28 Jul 2021 06:53:03 -0700 (PDT) MIME-Version: 1.0 References: <1867445.PYKUYFuaPT@kreacher> <000801d78322$e9b94980$bd2bdc80$@telus.net> In-Reply-To: <000801d78322$e9b94980$bd2bdc80$@telus.net> From: "Rafael J. Wysocki" Date: Wed, 28 Jul 2021 15:52:51 +0200 Message-ID: Subject: Re: [PATCH v1 0/5] cpuidle: teo: Rework the idle state selection logic To: Doug Smythies Cc: "Rafael J. Wysocki" , LKML , Linux PM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 10:06 PM Doug Smythies wrote: > > Hi Rafael, > > Further to my reply of 2021.07.04 on this, I have > continued to work with and test this patch set. > > On 2021.06.02 11:14 Rafael J. Wysocki wrote: > > >This series of patches addresses some theoretical shortcoming in the > > TEO (Timer Events Oriented) cpuidle governor by reworking its idle > > state selection logic to some extent. > > > > Patches [1-2/5] are introductory cleanups and the substantial changes are > > made in patches [3-4/5] (please refer to the changelogs of these two > > patches for details). The last patch only deals with documentation. > > > > Even though this work is mostly based on theoretical considerations, it > > shows a measurable reduction of the number of cases in which the shallowest > > idle state is selected while it would be more beneficial to select a deeper > > one or the deepest idle state is selected while it would be more beneficial to > > select a shallower one, which should be a noticeable improvement. > > I am concentrating in the idle state 0 and 1 area. > When I disable idle state 0, the expectation is its > usage will fall to idle state 1. It doesn't. > > Conditions: > CPU: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz > HWP: disabled > CPU frequency scaling driver: intel_pstate, active > CPU frequency scaling governor: performance. > Idle configuration: As a COMETLAKE processor, with 4 idle states. > Sample time for below: 1 minute. > Workflow: Cross core named pipe token passing, 12 threads. > > Kernel 5.14-rc3: idle: teo governor > > All idle states enabled: PASS > Processor: 97 watts > Idle state 0 entries: 811151 > Idle state 1 entries: 140300776 > Idle state 2 entries: 889 > Idle state 3 entries: 8 > > Idle state 0 disabled: FAIL <<<<< > Processor: 96 watts > Idle state 0 entries: 0 > Idle state 1 entries: 65599283 > Idle state 2 entries: 364399 > Idle state 3 entries: 65112651 This looks odd. Thanks for the report, I'll take a look at this.