Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp884291rwb; Wed, 28 Sep 2022 10:13:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6WozfwnVIrLzUJ/WCU2iyalWS1f4vq+RBHhn73jA74ABmy+kb9HFl58SH81Gt0Bjm8vUmr X-Received: by 2002:a17:907:1c1e:b0:782:dfe2:1bec with SMTP id nc30-20020a1709071c1e00b00782dfe21becmr21287298ejc.67.1664385224596; Wed, 28 Sep 2022 10:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664385224; cv=none; d=google.com; s=arc-20160816; b=njftDf0ZZa2+/XvSLqfg/8btLV2q3rvA3JutMTBQCjvBaZYU0uS0JV/mjL2GmAjWTn 6K3SYK4pehyptdhL+nBZxyZCXM1EzMdzCQzrD26PcqfzddzL4EYKBtdT1Bv6LehX4zZ+ n/7DOAsOCpcy14+rEQW0TuitH1Qhdu6Y4AdWMXwqgMm/2yk4TNZc0j7N0GLVhCEkkslM ZVPcfjxeYRubtMmbPcIVtn+jFqn2ZIXGVDhfNHsX4rHR7hgerW97AbxbAE6Zi3ewBNik oJui2wtYl8JB0LU1/53vTuD3KlvnaR0B5hYZ4tEPAcbREDAPGcBhFUOB+lYNeei4WjyD j6Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=fCBTCLBfA6pFbhR/nKCU2kah3vajiYgkES3deJCJnpk=; b=0nWlCUlsAVF2TQLSjG8sdO+dhbK1Y6MTUpTuoIzCyaa4dpa3w+sfH1Ded2HZzPlyfG cnALjwIALF1jvhMRAMQsUiuqO3T4u581Bjuamc9Ico0evM5pdmVjHaWrAIeURkpbKPZW LoChmWpvT0ZuLaFhdamwFFOKggOkYEMufhqZQqlwNCwWI03krXU2lag3Ol2m2pm9c+Qi LmVRS7jkDlscYIYAindbg+Iow5ie69UBU+G4+kHtvb09L6xOmDjmzgcDld94llnlxhPU T6vQCKeatiM6aC2dDyGSdg6HjbY4/6VHCCUJFlK69Pe8uHZaL2WDd0HlgcLFZNYPY5F+ dOrg== 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 l13-20020a056402254d00b004513a465ec6si6614035edb.94.2022.09.28.10.13.15; Wed, 28 Sep 2022 10:13:44 -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 S234315AbiI1RKF (ORCPT + 99 others); Wed, 28 Sep 2022 13:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230431AbiI1RKD (ORCPT ); Wed, 28 Sep 2022 13:10:03 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 33950915E4 for ; Wed, 28 Sep 2022 10:10:02 -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 9EB0A143D; Wed, 28 Sep 2022 10:10:08 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 170793F792; Wed, 28 Sep 2022 10:09:59 -0700 (PDT) Message-ID: Date: Wed, 28 Sep 2022 19:09:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC PATCH 0/1] sched/pelt: Change PELT halflife at runtime Content-Language: en-US To: Jian-Min Liu , Ingo Molnar , Peter Zijlstra , Vincent Guittot , Morten Rasmussen , Vincent Donnefort Cc: Quentin Perret , Patrick Bellasi , Abhijeet Dharmapurikar , Qais Yousef , linux-kernel@vger.kernel.org, Jonathan JMChen , Kajetan Puchalski References: <20220829055450.1703092-1-dietmar.eggemann@arm.com> <0f82011994be68502fd9833e499749866539c3df.camel@mediatek.com> From: Dietmar Eggemann In-Reply-To: <0f82011994be68502fd9833e499749866539c3df.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 + Kajetan Puchalski On 20/09/2022 16:07, Jian-Min Liu wrote: > > Update some test data in android phone to support switching PELT HL > is helpful functionality. > > We switch runtime PELT HL during runtime by difference scenario e.g. > pelt8 in playing game, pelt32 in camera video. Support runntime > switching PELT HL is flexible for different workloads. > > the below table show performance & power data points: > > --------------------------------------------------------------------- > --| | PELT > halflife | > | |----------------------------------------------| > | | 32 | 16 | 8 | > | |----------------------------------------------| > | | avg min avg | avg min avg | avg min avg| > | Scenarios | fps fps pwr | fps fps pwr | fps fps pwr| > |---------------------------------------------------------------------| > | HOK game 60fps | 100 100 100 | 105 *134* 102 | 104 *152* 106| > | HOK game 90fps | 100 100 100 | 101 *114* 101 | 103 *129* 105| > | HOK game 120fps | 100 100 100 | 102 *124* 102 | 105 *134* 105| > | FHD video rec. 60fps | 100 100 100 | n/a n/a n/a | 100 100 103| > | Camera snapshot | 100 100 100 | n/a n/a n/a | 100 100 102| > ----------------------------------------------------------------------- > > HOK ... Honour Of Kings, Video game > FHD ... Full High Definition > fps ... frame per second > pwr ... power consumption > > table values are in % I assume that you are specifically interested in those higher min fps numbers which can be achieved with a tolerable energy consumption increase when running the game with 16ms or even 8ms PELT halflife. We see a similar effect when running the UI performance benchmark Jankbench. So you need this runtime-switchable PELT multiplier. Would this sched feature interface: https://lkml.kernel.org/r/YwyOzgbbUbB+JmSH@hirez.programming.kicks-ass.net be sufficient for you? People don't like to support `changing PELT halflife` via an official sysctl. [...]