Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp500660rdf; Fri, 3 Nov 2023 07:01:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IECzcv09khQQS0hTj7iOOBJplTX3Uhmpqo8/Y+DQIXw4tYetlOc4QaHR118ag8Jk0v/Z3Cd X-Received: by 2002:aca:c44:0:b0:3b2:dc66:1673 with SMTP id i4-20020aca0c44000000b003b2dc661673mr18805773oiy.9.1699020109546; Fri, 03 Nov 2023 07:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699020109; cv=none; d=google.com; s=arc-20160816; b=Rf4ID7uU+0MQdAEbfS7BAqIAxKfJV7DxeamJyq39ZQ/Q23xl076c25Cq3qXyxqBlnz aTZqc/3946rvOYtKQHAo0A6xSx4xjo35+2BcciZq/SOAt3JuEj1qI7U6k7qSw1JA0lrl GaQ9AOMr1+rAsXxxzvWuNcKD/DyCKrT0kS77y9QDbaLexnzVFX6nTd2gAMUugtCJRwo4 SPgGHmevxus8SgTdIGdSssTTwzyXAqrSapbOdqu0LethIp26cEHb6bTpAVaucS9CiMXf khHuK5BwvbJh+EPPYXS8yTxulNQc9WIicukavCwb1jENAapm1kEn6vEPjaqiXLShSTFC 0s/Q== 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=8YUdFcDBVxB+ELrU8J9Y+ftNO/mUcdckF/Jc3lyj8Qc=; fh=fGC49E0osCAp3ZV+itm38LuhkTUdkPy8LgeFqNOpLeY=; b=e4NcOC+jdSFDGcLVFGuSHfmCjxQ/nt0DqdUHNRf+01x7bsH0OxdeJj33YHDsF+qoE+ HC5AEO8sAYOq2weVTdlAPNhjd6nOiWBOqFeKfFagSDID32DVDGQiR1MVz3Mzy1pVfv0s iZmEeqqrPSI1aetkPqOh8McTqxUDg6xU2WJXHkNm5nrmP1ccwAWTW9rfMEClgJnieDg1 Brgtxvz3EKD2mKlV1zmwagdlv6mKz8UFVE54WcK3aV9aspYbt2M0spLfwaAXTEaPdxWg auH+kcVWnlJcmsUMC0qyT9w1AEkBdhugeG9xEo4hpzRr97gHTfgK/EBi5ocf0Mqn7RjV OKSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id gr14-20020a0568083a0e00b003ae50bac8c4si739148oib.246.2023.11.03.07.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 07:01:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9AC1A81F4717; Fri, 3 Nov 2023 07:01:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377662AbjKCOBh (ORCPT + 99 others); Fri, 3 Nov 2023 10:01:37 -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 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 03 Nov 2023 07:01:42 -0700 (PDT) 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'. >> [...] > > [...]