Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2091415rwb; Sat, 24 Sep 2022 02:49:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7nhh2uDt5K/xGY4RLLg+Tqbcb1GwJ/X64F1uW9rGkPC54+DrRi7Rjzn71dGeDL+nu7uGta X-Received: by 2002:a17:903:4049:b0:178:3128:b57e with SMTP id n9-20020a170903404900b001783128b57emr12576090pla.75.1664012993826; Sat, 24 Sep 2022 02:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664012993; cv=none; d=google.com; s=arc-20160816; b=BZHWyvyv+MizbCv8Toz3U7+oyp69dtEZ3bsJdf5MAVJ2HwsyEXU6L/+1DAHnIbqMTq 1LReajCGreEireNSTDjvL/smnmxb84GuHjnE5ig1GGfcK+CROsLaT/B3ZCZH6QlH7Cap XIdYWtYIEFqTYtdHq0WGKR78gD4Y9kMYx2pfh/6EbeVbACxdlxIL08TVhDRj8sSvaiul 57f5XnrF35T43BG1ZfP9R/IeOeS+mPNBWgz9HZiU/dNyVxL9KDrh0bfhxq7pu0KAQ4wY LzWmX+KxikNbboH16pCy8gXQrrfaT7vJlom43WmRKWrTAQeM9D0cjxKyjb2ymmMbn3lU b7Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:date:message-id:subject:cc:from:to; bh=R4DAY/xKo7+v36q6X8pH4fTjmmDlpqiG5Jxj507/uAg=; b=aTSHG1boO2NNlMFXiy5thiT4aR1fjdYAqxvFuUexlvAGGRdaWKl/u1fM8X7WycXwSc 5SPSkVErcKIcQpqERK2pdoxLiRoxGBdo9iOMalOYMvAYx0c5K+aTiLGIb8tTWS7xvjJ6 qZm/ZRy1P34njKggafO5fbLKPyvKZ5pZLtU0h2UaJ0tj7yc1Qt5me5U8ki899SaUqAZP 6j2eSwQj/aGtgvIdGw7pFyKo90dwCC84DsWjC//hd4VO7TmohyUM/BfK5+mzdtxSrIFt ZdWx6RICWKYeNEYNdFOw9msZ2zQ4ktlkKXldIiG8zS23w5RTKoOoxUn7PjugPfnwS337 eQcg== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf4-20020a170902b90400b001789ad8d48fsi5300362plb.229.2022.09.24.02.49.42; Sat, 24 Sep 2022 02:49:53 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233492AbiIXJ0a (ORCPT + 99 others); Sat, 24 Sep 2022 05:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233405AbiIXJ0Y (ORCPT ); Sat, 24 Sep 2022 05:26:24 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 204E312476B; Sat, 24 Sep 2022 02:26:23 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MZNnt5zzXz1P6pg; Sat, 24 Sep 2022 17:22:10 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 17:26:21 +0800 Received: from [10.67.109.150] (10.67.109.150) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 17:26:20 +0800 To: Tejun Heo , From: "lujialin (A)" CC: Zefan Li , , LKML Subject: [question] Is it possible for userspace program to control cpu usage time of RT process through cgroup2 now? Message-ID: <0a83dcd5-b7fd-811c-b8d2-062115fa8c94@huawei.com> Date: Sat, 24 Sep 2022 17:26:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.109.150] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Cgroup2 dose not support controling real-time processes and the cpu controller can only be enabled when all RT processes are in the root cgroup. RT stuff was being overhauled when cpu controller interface for cgroup unified hierarchy was being implemented in 2017. It was decided that we would like to wait till the RT side settles down and proceed with an interface that better matches RT. Is it possible for userspace program to control cpu usage time of RT process through cgroup2 now? If not, how is the current state looking and is there any proposed solution?