Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5403252iog; Wed, 22 Jun 2022 19:32:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s69Kp8aJSXzkT28+6W1dMXpuUlshnM39rs6XbSDjUuANtO9zVRDsPVldzGpx1p2xZX96LX X-Received: by 2002:a17:903:40cd:b0:16a:2dcf:408f with SMTP id t13-20020a17090340cd00b0016a2dcf408fmr15555947pld.18.1655951536415; Wed, 22 Jun 2022 19:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655951536; cv=none; d=google.com; s=arc-20160816; b=jmk0gglMy2WvFyR2p0841bC3k/NFhtBjssLr+QuI/AnVYhN4w3qCKijHuKRl0xEtKY E/yqcEme0k7zPPYiXO+CyJz7F+l8PnqSMI1HpukbFKRJLYIOWevlVPsCohgk4uLcKobd VS1K8ppt0Na0Srniz7mx+CvgqV4HZ8E1ywbwjLRNqSVOZpeJrjwXwUi55VVn6rFskMkQ 0xJMM0EHpK3eDgcxWmKwnfI4wWQqXmLI3SKizeYmIunGR27uN7/t4FrhIhfhBBsjbjUx Q+VI5AfsCfu3GdXsBUiUwyAYsIhGfoEd6QZyt4DPYAlQiq7zGaKbRAsSaVtbW+DCoq5F UBcw== 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:dkim-signature; bh=csCXiXt7nFq4+h4WD6heVCXixZoWRVAJL1Lssrp4las=; b=YJtcXi3gsCQTh3d8fWBzTqZ+BI0pjBG1oYkQ8MR8Gcj0s4OGutPGdKPW+Ak+UYRfBR 5QObQ3gOLUkkDLbvNk0iiqGr5uuwvfDT8M8BYOYhtTONbsfEhrQPDwmMgivYtYPek2p0 klSkQnwE6xjaLbNcq/qdOLsJREmXiwwUyGuEK9+5mPKcYoKJUMW/G7kXPS0pIJ0JO7Ra jQMDx8T7N0RsVjCmDLmMr+XTdXJJ4pbNQCU1KXS+FB5ELMQ8itaihg7hSg1AdcbIoa0o 9lqqdSyYBRYNoB3iGeIZYjdjsyEpfx4p2lm7We/UCtFkdptiRn32bobEYPGoipBWiEfc RzBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="WA6u/Lpt"; 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=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v190-20020a6389c7000000b004043941e073si2457046pgd.644.2022.06.22.19.32.03; Wed, 22 Jun 2022 19:32:16 -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; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="WA6u/Lpt"; 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=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377201AbiFWCXx (ORCPT + 99 others); Wed, 22 Jun 2022 22:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376632AbiFWCXh (ORCPT ); Wed, 22 Jun 2022 22:23:37 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B94A6403F0 for ; Wed, 22 Jun 2022 19:23:33 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id g16-20020a17090a7d1000b001ea9f820449so1122935pjl.5 for ; Wed, 22 Jun 2022 19:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=csCXiXt7nFq4+h4WD6heVCXixZoWRVAJL1Lssrp4las=; b=WA6u/LptxC6hvIktNHSr3CpHwaPyPUZckJ++HrZ8zmkycEVEbijkXaMLEyDey8F+Lt +g9qR64kyl7wYpz43zDjaGpxgpfUYBvM2MdhkLXKLiNBAox4WxuLcd38TMk7diCM5eOL tC9IYkjtiUnlLb0jH4nTwNbo1PbJKCHFNfMv2BUZLagEOhrTkFeGlPLJXXFHXNifaD81 rS/gmlxZpPouMX1g7QzQbznGjyvAn1lNo0P9Oa/y0XRQ/pvZstMIW9Mc0r+zv5BrjsGH h8iGUiTl3PWQxbL7LmjM13/+bsHsPrxA+jWjulwftKo/3WMMHrO0Le7Wf11NO9X04NEA L3rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=csCXiXt7nFq4+h4WD6heVCXixZoWRVAJL1Lssrp4las=; b=3LrK/1xVRDA7VfkaQ0fGIKHohxfEtRxLDe2kDmfp8KflyMIQWdqpKqdI/kza0cmJgh j13erZqy1nKZmzlj782WlX9TPGksZgnunlqq9ts/vSZA54ow18Vrqwcc2n0LbTzR2EJk zEW4k9N0im/8FrrQB80Ex/Jer7KALIY9I3HpZftL+5WE97AWH3Yx1LQSebrL0uvYeH22 zwh/Ad8u7rIlIWonzZoqrK/Dn/xxJupRSmUFITsH842AFdurvlQ72EBK43hfTxjae0K1 5y+upiILTifC7DO15qviBYBBWbXCH4b7HB2h7QmSBYIGLE9rVoC3mNa2nxlL+jVKvETP 6Xtg== X-Gm-Message-State: AJIora8CfH61hHJClt4Ldz5vKjBd3ba401RzIvEakhrJV19lbuWie92G 4d9Zn3mlJ0jIYBMK129tE41QMw== X-Received: by 2002:a17:90b:344f:b0:1ed:9f:a2de with SMTP id lj15-20020a17090b344f00b001ed009fa2demr1532594pjb.174.1655951013124; Wed, 22 Jun 2022 19:23:33 -0700 (PDT) Received: from [10.70.253.98] ([139.177.225.230]) by smtp.gmail.com with ESMTPSA id h4-20020a62de04000000b0051bb61c0eacsm5989417pfg.20.2022.06.22.19.23.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jun 2022 19:23:32 -0700 (PDT) Message-ID: <888b6885-5380-e21f-260f-eb1bb89679c3@bytedance.com> Date: Thu, 23 Jun 2022 10:23:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [External] Re: [PATCH v2] sched: RT bandwidth interface for cgroup unified hierarchy Content-Language: en-US To: =?UTF-8?Q?Michal_Koutn=c3=bd?= Cc: rdunlap@infradead.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org, corbet@lwn.net, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220622015557.7497-1-zhouchengming@bytedance.com> <20220622173929.GA669@blackbody.suse.cz> From: Chengming Zhou In-Reply-To: <20220622173929.GA669@blackbody.suse.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Michal, On 2022/6/23 01:39, Michal Koutný wrote: > Hello Chengming. > > On Wed, Jun 22, 2022 at 09:55:57AM +0800, Chengming Zhou wrote: >> We need to run RT threads in cgroup unified hierarchy, but we can't >> since the default rt_bandwidth.rt_runtime of non-root task_group is 0 >> and we haven't interface to update it. > > Do you really want to make use of group RT schedulling > (CONFIG_RT_GROUP_SCHED) or just be able to run RT threads in the unified > hieararchy with cpu controller enabled? > The latter could meet our current needs I think, but it would be better that we can put a max limit on the task_group in case multiple groups need to run RT processes. > Those are two different use cases, the former is more complex and it's a > reason why v2 doesn't expose the RT attributes (yet). > The latter is typically achieved by unsetting CONFIG_RT_GROUP_SCHED (and > relying on the global rt_runtime limit). > I don't know why v2 differ from v1 in the RT bandwidth control.. Is there some links of explanation? (CFS bandwidth control can work on v2 now.) If the problem can't be solved, we have to unset CONFIG_RT_GROUP_SCHED. Thanks. > Thanks, > Michal