Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4666823pxv; Tue, 27 Jul 2021 13:09:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx25+CWplOUOGp4RXvb1ZfMNeG3G6rvW2/PxLy+zyS84NabROHYW4moK03vO1Fp0fpPCx5s X-Received: by 2002:a92:8707:: with SMTP id m7mr18390677ild.177.1627416574303; Tue, 27 Jul 2021 13:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627416574; cv=none; d=google.com; s=arc-20160816; b=Q5OcIdVwkVMh0pfoheNUmDaLoxmC19Pb5EUStknBpNMss4m5UTAX2qOXn9Zqpw+S3L WUvF1DiNQ6/Bb05qxN7FDFVHOIRfCNVduaI9Xi8TfaosIrAtIz1Xi6/pmttJNnfQXAqH 9gMiHhzR3GiP1RDSicpjWUfltMePIHQ7RlpSZVG0PwBGoMMaY7SO+gPOUzqekFZ1vBaG AO3bMB+mi8G3nNhtKjpxLkRfF4wc2aPRbdCex5A9wW+NSQOLI9PW3lem3gRzzEUZ9KEE BfKyXh9yRhiwRWjBOylm1UkCAJi1iva4Wil5LLetUa0i70gCFq1uuEX00fndPqhVDksE lZWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=PwWl2aSuu6+Di4TaYJklMnkd+oXVKsyMZMTbKM+A+u8=; b=uEKPqiTRq5RF/z8VhKmunIeyFWg4JZlNLTLnqrRcLvGckQhFHIxuF/jW42satfWDq7 cknpCS6xbaAGelX88siWTgulh1QWLsomwypd06isrYd7qJFalDAc1p2Qittrwb7Pibl/ AdYYDcOx6L6esbPNYQtitBy9cSVcaV7TerfhvLTT7f7rGlO/Y3rIPTfkXeA44KD9W/89 Ky3EbRKSDWk2fffeync/c5FWdjp8DDeu4y8mIDg6pY8J0jvJQCm5IcThCKokRaFXdyGt n8IEHBoHs6ez/qrMhiekVyMAl+nNH91+K9YSHdmCKiyCHHVhYDbOIJah1ItazCxManNX QsHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b=GjjTQEx7; 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=telus.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si3847633ilj.137.2021.07.27.13.09.22; Tue, 27 Jul 2021 13:09:34 -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; dkim=pass header.i=@telus.net header.s=google header.b=GjjTQEx7; 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=telus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231560AbhG0UGm (ORCPT + 99 others); Tue, 27 Jul 2021 16:06:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230469AbhG0UGl (ORCPT ); Tue, 27 Jul 2021 16:06:41 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 873E3C061760 for ; Tue, 27 Jul 2021 13:06:40 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id e2-20020a17090a4a02b029016f3020d867so818539pjh.3 for ; Tue, 27 Jul 2021 13:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=PwWl2aSuu6+Di4TaYJklMnkd+oXVKsyMZMTbKM+A+u8=; b=GjjTQEx7cmQ4zLT2IsEMp1dHExxHTJJPdNifLGuzeHOyl85uK+W94wFykfmba9pGcz 0HTKN8p3jjW0tpWPvalpO9Key8qoO6tvnO5OTsjj8leLwAns+o4cT1wdKg8+vwvCaBvN usKbb5AzUN4ROfXv/zsx7tqgYkLiBq7BuWrPnedWeiPM1RU8qadLPpgIPPF3bJ8Q8p95 03iPFN5yl2EPY1etCgOZ/cR2Pcrb+smAA4CV5aYuUYtGqfIM8Q7rd11Qy5QmimU9LPQ3 mZSqPQkGw8ietikJcSxYZL0LUUER6tPhF0lOUAuJofuQnJLpXM00K1r6Mpi96piZEDeV ixwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=PwWl2aSuu6+Di4TaYJklMnkd+oXVKsyMZMTbKM+A+u8=; b=F1dWQaQajWjA0HdyxaN655H3ad8Ulkli56gCcUH421ZF1MvV5+1xUb40N9lQA+UZxH 0EOmTwZnyXIFcL5udAaaMNobDhe53k6G6v54CL/v18aXxhIdOU45/1wj7h5JdfUC5fGZ 7OxcDMZ7yQTlQWNh4c5UxrJdM5klxP6KshcWdIT5rx+awcZzvk0eYnz26wnJA0uXgzRD Ejf+iV1Da9RcnXdMQA14D60szJArX3Ma/fHVtVZ5mBrRXAGp8mpIgfev998MxnV3BpG5 fTi2dJcJl+oSvPqmFkJqVy4gYyqIH5Ne9Pwn1cpy5fgUFl9TgfxOhNfc8otgiEJZrqpO rHlg== X-Gm-Message-State: AOAM533E9sZ9d1aim1N3lRLVuYv1jSi/o/XEPQ0s2nbAC586v8o+dR1f WOAkVP5wWsEz267EwSisKtVTiQ== X-Received: by 2002:a17:902:b487:b029:12c:4051:a8de with SMTP id y7-20020a170902b487b029012c4051a8demr5298018plr.76.1627416400041; Tue, 27 Jul 2021 13:06:40 -0700 (PDT) Received: from DougS18 ([173.180.45.4]) by smtp.gmail.com with ESMTPSA id y30sm4205738pfa.220.2021.07.27.13.06.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jul 2021 13:06:39 -0700 (PDT) From: "Doug Smythies" To: "'Rafael J. Wysocki'" Cc: "'LKML'" , "'Linux PM'" , "Doug Smythies" References: <1867445.PYKUYFuaPT@kreacher> In-Reply-To: <1867445.PYKUYFuaPT@kreacher> Subject: RE: [PATCH v1 0/5] cpuidle: teo: Rework the idle state selection logic Date: Tue, 27 Jul 2021 13:06:39 -0700 Message-ID: <000801d78322$e9b94980$bd2bdc80$@telus.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJWv5LtWSG8O5a4tG6eLIHdXBOua6pYw/kg Content-Language: en-ca Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Kernel 5.14-rc3: idle: menu governor All idle states enabled: PASS Processor: 102 watts Idle state 0 entries: 169320747 Idle state 1 entries: 1860110 Idle state 2 entries: 14 Idle state 3 entries: 54 Idle state 0 disabled: PASS Processor: 96.7 watts Idle state 0 entries: 0 Idle state 1 entries: 141936790 Idle state 2 entries: 0 Idle state 3 entries: 6 Prior to this patch set: Kernel 5.13: idle: teo governor All idle states enabled: PASS Processor: 97 watts Idle state 0 entries: 446735 Idle state 1 entries: 140903027 Idle state 2 entries: 0 Idle state 3 entries: 0 Idle state 0 disabled: PASS Processor: 96 watts Idle state 0 entries: 0 Idle state 1 entries: 139308125 Idle state 2 entries: 0 Idle state 3 entries: 0 I haven't tried to isolate the issue in the code, yet. Nor have I explored to determine if there might be other potential idle state disabled issues. ... Doug