Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3062439rwb; Mon, 7 Aug 2023 07:44:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSaMT5u0wTTtO7i6Aoz+Iaw0Tu5iA8NloS/8rYzJl9a5JrUn1loDvx4W4Zi6lol2V5HL/A X-Received: by 2002:a17:906:109:b0:99b:dfd7:b0d3 with SMTP id 9-20020a170906010900b0099bdfd7b0d3mr7734118eje.56.1691419459936; Mon, 07 Aug 2023 07:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691419459; cv=none; d=google.com; s=arc-20160816; b=SqSEi8H9/v7sRvCqgHPL/yEklpsfT8aAT9uJYT8MBlFxtzrInFZg7MhfysxslVFD6t uyHq6fcsBkoNsQm1U0CNRBLlpZiF7VAbklibzl/zTchtppgam/P5bsG0ivcLJaJfp+G9 I4ZuRAGdssvFCpSAvjdnOcnKYjfhy2674+AxeWenrlr1cILlZpHrnB4a2YD8JdLh/Anc crzTiYZR80oXwgWcixcm1sqzaVhKf5aUmfunGeXEKxAPSCOtDO5gUCijCeQP+/B+9Zqv M4NEiRhCL47DdZqYx3GqjQKdLd7LyXzdVkUblFZ1TmnEhBhHGn3qZhOo1w2h6UPhPMCz 4MUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SbpUalXHtrTZYN7fJLO58/Dwu41pZqhEnzmt/zbvd30=; fh=VkA6mWiaZ9x+vfAMEfy0bPAMVGYjRvmiEXXQd+K8RE0=; b=EicpqjWwKJajQBIPBX7tPM6HW+cPPo9adB5HNwzEwMrNH7Q907AilKs3UYRalL8jfe uy6hgnfSTIE3UM15u3HSMy4rZn0v0G47a2H2UrXTbx5gaPxT0nh20UG3wYXpTfgB0Ir3 gIlD7D4r24bmpYjDx1KxnHNXYjvYp3PP7+FLEJ6jCCoH+2d3wQnK4vjxNXKQ0Y9+8Vtv F9DnxWqKp5LwiXiZRyOpA3pQ0FFJZPj1maIB/2zXh5dqagkSeB0Kjs2kHWLp3Z9LuHZD NH3tqUYuxJ/1DMSn/iTsFPwdOq+SjB26kQHLIi3Ec09Dj2Scksjk+x4Ly+c7lO9aV/tC 9dYQ== 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 i5-20020a1709064ec500b0099bd5926bedsi5426032ejv.669.2023.08.07.07.43.53; Mon, 07 Aug 2023 07:44:19 -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 S233460AbjHGOEw (ORCPT + 99 others); Mon, 7 Aug 2023 10:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233205AbjHGOC4 (ORCPT ); Mon, 7 Aug 2023 10:02:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ABF6844B2; Mon, 7 Aug 2023 07:01:17 -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 65EA1D75; Mon, 7 Aug 2023 07:01:57 -0700 (PDT) Received: from e126311.manchester.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E58743F64C; Mon, 7 Aug 2023 07:01:12 -0700 (PDT) Date: Mon, 7 Aug 2023 15:00:59 +0100 From: Kajetan Puchalski To: "Rafael J. Wysocki" Cc: Linux PM , Peter Zijlstra , Anna-Maria Behnsen , LKML , Frederic Weisbecker Subject: Re: [RFT][PATCH v2 0/3] cpuidle: teo: Do not check timers unconditionally every time Message-ID: References: <5712331.DvuYhMxLoT@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5712331.DvuYhMxLoT@kreacher> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 Rafael, On Thu, Aug 03, 2023 at 10:57:04PM +0200, Rafael J. Wysocki wrote: > Hi Folks, > > This is the second iteration of: > > https://lore.kernel.org/linux-pm/4511619.LvFx2qVVIh@kreacher/ > > with an additional patch. > > There are some small modifications of patch [1/3] and the new > patch causes governor statistics to play a role in deciding whether > or not to stop the scheduler tick. > > Testing would be much appreciated! > > Thanks! > My test results including the v2 are below. 1. Geekbench 6 +---------------------------+---------------+-----------------+-------------------+----------------------+ | metric | teo | teo_tick | teo_tick_rfc | teo_tick_rfc_v2 | +---------------------------+---------------+-----------------+-------------------+----------------------+ | multicore_score | 3320.9 (0.0%) | 3303.3 (-0.53%) | 3293.6 (-0.82%) | 3302.3 (-0.56%) | | score | 1415.7 (0.0%) | 1417.7 (0.14%) | 1423.4 (0.54%) | 1425.8 (0.71%) | | CPU_total_power | 2421.3 (0.0%) | 2429.3 (0.33%) | 2442.2 (0.86%) | 2461.9 (1.67%) | | latency (AsyncTask #1) | 49.41μ (0.0%) | 51.07μ (3.36%) | 50.1μ (1.4%) | 50.76μ (2.73%) | | latency (labs.geekbench6) | 65.63μ (0.0%) | 77.47μ (18.03%) | 55.82μ (-14.95%) | 66.12μ (0.75%) | | latency (surfaceflinger) | 39.46μ (0.0%) | 36.94μ (-6.39%) | 35.79μ (-9.28%) | 40.36μ (2.3%) | +---------------------------+---------------+-----------------+-------------------+----------------------+ +----------------------+-------------+------------+ | tag | type | count_perc | +----------------------+-------------+------------+ | teo | too deep | 2.034 | | teo_tick | too deep | 2.16 | | teo_tick_rfc | too deep | 2.071 | | teo_tick_rfc_v2 | too deep | 2.548 | | teo | too shallow | 15.791 | | teo_tick | too shallow | 20.881 | | teo_tick_rfc | too shallow | 20.337 | | teo_tick_rfc_v2 | too shallow | 19.886 | +----------------------+-------------+------------+ 2. JetNews +-----------------+---------------+----------------+-----------------+-----------------+ | metric | teo | teo_tick | teo_tick_rfc | teo_tick_rfc_v2 | +-----------------+---------------+----------------+-----------------+-----------------+ | fps | 86.2 (0.0%) | 86.4 (0.16%) | 86.0 (-0.28%) | 86.6 (0.41%) | | janks_pc | 0.8 (0.0%) | 0.8 (-0.66%) | 0.8 (-1.37%) | 0.7 (-11.37%) | | CPU_total_power | 185.2 (0.0%) | 178.2 (-3.76%) | 182.2 (-1.6%) | 169.4 (-8.53%) | <- very interesting +-----------------+---------------+----------------+-----------------+-----------------+ +----------------------+-------------+--------------------+ | tag | type | count_perc | +----------------------+-------------+--------------------+ | teo | too deep | 0.992 | | teo_tick | too deep | 0.945 | | teo_tick_rfc | too deep | 1.035 | | teo_tick_rfc_v2 | too deep | 1.127 | | teo | too shallow | 17.085 | | teo_tick | too shallow | 15.236 | | teo_tick_rfc | too shallow | 15.379 | | teo_tick_rfc_v2 | too shallow | 15.34 | +----------------------+-------------+--------------------+ All in all looks pretty good. Unfortunately there's a slightly larger percentage of too deep sleeps with the v2 (which is probably where the increase in GB6 power usage comes from) but the lower jank percentage + substantially lower power usage for the UI workload are very promising. Since we don't care about GB6 power usage as much as UI power usage, I'd say that the patchset looks good :) Tested-by: Kajetan Puchalski