From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DFBEC54EE9 for ; Fri, 2 Sep 2022 07:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235517AbiIBHyV (ORCPT ); Fri, 2 Sep 2022 03:54:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235493AbiIBHyL (ORCPT ); Fri, 2 Sep 2022 03:54:11 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53962BB698 for ; Fri, 2 Sep 2022 00:54:09 -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 81A46D6E; Fri, 2 Sep 2022 00:54:14 -0700 (PDT) Received: from [192.168.1.162] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0CBDF3F766; Fri, 2 Sep 2022 00:54:05 -0700 (PDT) Message-ID: <12b3443a-6456-4a57-95b3-dd6be5b10873@arm.com> Date: Fri, 2 Sep 2022 09:53:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [RFC PATCH 1/1] sched/pelt: Introduce PELT multiplier Content-Language: en-US To: Vincent Guittot , Peter Zijlstra Cc: Ingo Molnar , Morten Rasmussen , Vincent Donnefort , Quentin Perret , Patrick Bellasi , Abhijeet Dharmapurikar , Jian-Min , Qais Yousef , linux-kernel@vger.kernel.org References: <20220829055450.1703092-1-dietmar.eggemann@arm.com> <20220829055450.1703092-2-dietmar.eggemann@arm.com> From: Dietmar Eggemann In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/08/2022 12:13, Vincent Guittot wrote: > On Mon, 29 Aug 2022 at 12:03, Peter Zijlstra wrote: >> >> On Mon, Aug 29, 2022 at 10:08:13AM +0200, Peter Zijlstra wrote: >>> On Mon, Aug 29, 2022 at 07:54:50AM +0200, Dietmar Eggemann wrote: >>>> From: Vincent Donnefort [...] >>> Hurmph... I'd almost go write you something like >>> static_call()/static_branch() but for immediates. >>> >>> That said; given there's only like 3 options, perhaps a few >>> static_branch() instances work just fine ? >> >> Also, I'm not at all sure about exposing that as an official sysctl. > > Me too, I would even make it a boot time parameter so we can remove Isn't a sched feature even less official than a boot parameter? But AFAIK at least some of the Android folks want to change this during runtime and they don't have debugfs mounted. > the new clock_task_mult clock and left shift clock_taslk or the delta > before passing it to clock_pelt We still need rq_clock_task_mult(rq), i.e. `rq->clock_task_mult` in _update_idle_rq_clock_pelt() though.