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 AEA20C4167B for ; Fri, 3 Nov 2023 14:01:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377727AbjKCOBi (ORCPT ); Fri, 3 Nov 2023 10:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbjKCOBf (ORCPT ); Fri, 3 Nov 2023 10:01:35 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ECED6D43 for ; Fri, 3 Nov 2023 07:01:32 -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 746FAC15; Fri, 3 Nov 2023 07:02:15 -0700 (PDT) Received: from [10.57.1.190] (unknown [10.57.1.190]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A21AE3F64C; Fri, 3 Nov 2023 07:01:30 -0700 (PDT) Message-ID: Date: Fri, 3 Nov 2023 14:01:38 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 5/6] sched/uclamp: Remove all uclamp bucket logic Content-Language: en-US To: Dietmar Eggemann , Ingo Molnar , Peter Zijlstra , Vincent Guittot , Juri Lelli Cc: Qais Yousef , Morten Rasmussen , Lukasz Luba , Christian Loehle , linux-kernel@vger.kernel.org References: <48fcea0a9bb2d2212c575032e64ab717756dc0fa.1696345700.git.Hongyan.Xia2@arm.com> <66e62c6f-b585-47a7-a519-9a8feea7176c@arm.com> From: Hongyan Xia In-Reply-To: <66e62c6f-b585-47a7-a519-9a8feea7176c@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/11/2023 13:50, Dietmar Eggemann wrote: > On 04/10/2023 11:04, Hongyan Xia wrote: >> From: Hongyan Xia >> >> Also rewrite uclamp_update_active() so that the effective uclamp values >> are updated every time we change task group properties, change system >> defaults or a request is issued from userspace. > > Tested it with > > # cgcreate -g cpu:/A > # echo $$ > /sys/fs/cgroup/cpu/A/tasks > > (1) per-task > > # uclampset --pid $$ -m 256 -M 768 > > (2) per taskgroup > > # echo 25.0 > /sys/fs/cgroup/cpu/A/cpu.uclamp.min > # echo 75.0 > /sys/fs/cgroup/cpu/A/cpu.uclamp.max > > (3) system-wide > > # echo 256 > /proc/sys/kernel/sched_util_clamp_min > # echo 768 > /proc/sys/kernel/sched_util_clamp_max > > uclamp_update_active() -> uclamp_update_active_nolock() is called in all > cases. > Thanks for testing! > > uclamp_eff_get()'s function header still mentions `clamp bucket index`. This is indeed confusing. I have changed it from 'clamp bucket index' to just 'uclamp value'. >> [...] > > [...]