Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp677947rwb; Thu, 10 Nov 2022 06:10:32 -0800 (PST) X-Google-Smtp-Source: AMsMyM5SMKL5ySSNz6Ksu6tVO2rIM+rNuA9Pcf/VN49Jdk2xj2kFeJT/k7U3vOVaNj2O1gqS/1lP X-Received: by 2002:a17:907:e93:b0:7ad:923a:5908 with SMTP id ho19-20020a1709070e9300b007ad923a5908mr60940625ejc.396.1668089431793; Thu, 10 Nov 2022 06:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668089431; cv=none; d=google.com; s=arc-20160816; b=qakB0kWZXZsMBTmscmFK+MjbvEz/fKJTUTf44SoAjuyAtzbPVkn8rgDa0kHfR4rmHR 4UEUFlRrSoNPufjMa+JdPsH2HQIOatb1k2U9fbNoyuI5Yqycc21bFRFHROh7kWnOw72o EFubm1gkj1TJOfbvyZWeR895uwSrIgLcbNYNKTsndPPCUsWGmCkqYFoShHYo5Vztu/5+ C8sNrtrxBSqjnabh1L01imbUd2W6Qm4fsb0zHFlV96HTZPc7Df+Ayb6zWFF2XgXol0Wt GArcrFsd65jcGjvtziItantWJwFuCeAyjVuBSv0+zSevtlsr1bMt3rhXf6kDr4/vqb2n ZrvA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=atM6ClctLNNxp7erPYE8LuNTL6CEG0qPmHutaPd/pmM=; b=EMIa2hTYis4keSJ8zdlASamkg9pWhZcgOJDm5wLUG91x+wgNpNMJADQPVny3MXdM2a XFxvZXgPMNNG1ThO91sHBn4INtQapZg9NQnhVAToqzNFJGva3TaX7ssKEzCxYDo+X2Xx NPzozSAQgeGSVpoH3HNx0AvrBiVRxshyUB3+rd6yz/117GyHtq1ApSoECr2Tx0FFqB53 xZajxfpLiFqTQkwqym1a0s8t4fWsQkmvWj5rRSvhR8BCvF8O45v0TuQvGQ6eYeHcVPdy kuvlZcDTozhHtlk1c2sJnLsVa3VGHPYwSlBK1dRUdR1LXlhCg1/P7g4BWe1I7aDwsX1V w9OQ== 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 hg4-20020a1709072cc400b007aea6b26961si2529857ejc.970.2022.11.10.06.10.02; Thu, 10 Nov 2022 06:10:31 -0800 (PST) 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 S229840AbiKJMqC (ORCPT + 92 others); Thu, 10 Nov 2022 07:46:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbiKJMp7 (ORCPT ); Thu, 10 Nov 2022 07:45:59 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D3ED364A25 for ; Thu, 10 Nov 2022 04:45:56 -0800 (PST) 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 43E241FB; Thu, 10 Nov 2022 04:46:02 -0800 (PST) Received: from e126311.manchester.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 01CEE3F703; Thu, 10 Nov 2022 04:45:52 -0800 (PST) Date: Thu, 10 Nov 2022 12:45:18 +0000 From: Kajetan Puchalski To: Peter Zijlstra Cc: Jian-Min Liu , Dietmar Eggemann , Ingo Molnar , Vincent Guittot , Morten Rasmussen , Vincent Donnefort , Quentin Perret , Patrick Bellasi , Abhijeet Dharmapurikar , Qais Yousef , linux-kernel@vger.kernel.org, Jonathan JMChen Subject: Re: [RFC PATCH 0/1] sched/pelt: Change PELT halflife at runtime Message-ID: References: <20220829055450.1703092-1-dietmar.eggemann@arm.com> <0f82011994be68502fd9833e499749866539c3df.camel@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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, > Would something terrible like the below help some? > > If not, I suppose it could be modified to take the current state as > history. But basically it runs a faster pelt sum along side the regular > signal just for ramping up the frequency. As Dietmar mentioned in the other email, there seems to be an issue with how the patch computes 'runtime'. Nevertheless I tested it just to see what would happen so here are the results if you're interested. Here's a comparison of Jankbench results on a normal system vs pelt_4 vs performance cpufreq governor vs your pelt_rampup patch. Max frame duration (ms) +-----------------------+-----------+------------+ | kernel | iteration | value | +-----------------------+-----------+------------+ | menu | 10 | 142.973401 | | menu_pelt_4 | 10 | 85.271279 | | menu_pelt_rampup | 10 | 61.494636 | | menu_performance | 10 | 40.930829 | +-----------------------+-----------+------------+ Power usage [mW] +--------------+-----------------------+-------+-----------+ | chan_name | kernel | value | perc_diff | +--------------+-----------------------+-------+-----------+ | total_power | menu | 144.6 | 0.0% | | total_power | menu_pelt_4 | 158.5 | 9.63% | | total_power | menu_pelt_rampup | 272.1 | 88.23% | | total_power | menu_performance | 485.6 | 235.9% | +--------------+-----------------------+-------+-----------+ Mean frame duration (ms) +---------------+-----------------------+-------+-----------+ | variable | kernel | value | perc_diff | +---------------+-----------------------+-------+-----------+ | mean_duration | menu | 13.9 | 0.0% | | mean_duration | menu_pelt_4 | 14.5 | 4.74% | | mean_duration | menu_pelt_rampup | 8.3 | -40.31% | | mean_duration | menu_performance | 4.4 | -68.13% | +---------------+-----------------------+-------+-----------+ Jank percentage +-----------+-----------------------+-------+-----------+ | variable | kernel | value | perc_diff | +-----------+-----------------------+-------+-----------+ | jank_perc | menu | 1.5 | 0.0% | | jank_perc | menu_pelt_4 | 2.0 | 30.08% | | jank_perc | menu_pelt_rampup | 0.1 | -93.09% | | jank_perc | menu_performance | 0.1 | -96.29% | +-----------+-----------------------+-------+-----------+ [...] Some variant of this that's tunable at runtime could be workable for the purposes described before. At least this further proves that it's manipulating frequency that's responsible for the results here. --- Kajetan