Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3589096lfo; Mon, 23 May 2022 08:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxZRBoUCiMcMOZG2h6I0bh7Y6GDT2Re017vlPjldoELZEOYplmq6MW9tO+yxMd/JsEmaQg X-Received: by 2002:a05:6a00:114c:b0:518:c064:d47 with SMTP id b12-20020a056a00114c00b00518c0640d47mr326919pfm.27.1653320316190; Mon, 23 May 2022 08:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653320316; cv=none; d=google.com; s=arc-20160816; b=MkcqaBOjcopZA4V1wXR1GOUl3eCW/geWrL+mvewqIV8Ylf076iM8LwbEAXUwH6dnV2 MYvKRj+UNfrgKwJfgeIlTj0SSAOUxdeCGpAIB6I/b5B/H3JbVpfrKLDQefs2xL+uYtVx FARNNzq+9DyDv6FfFPK7aorVfYKp/lGrRVQHSsyv+3+IIwUPlEs/SCVKpcA9jGMc8Zq4 oaXHRW9A/kHw6As/Z+ixPyAFfzRPs53L36QAY7ldn3xJiYEmRooNGEOYxF/mCaiAiJCu g1Zn/NbbGLGNl3MsST3nzMFTt7So0Np2SYT27zoBUzazbIsbOQrsP+rU6mVEj39yoYnE Nt4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bwKyiDYE51FSv2CgfXwlvAU5QYU7Qji4+KtmcFnvQRo=; b=Pmh4NTjCzNZBi5Iyq2g9vJ/2k5MhG9gCncoynHus2hi0yWhhx0ebJBtxaDkFEpCjgK B5ts/fE4i7TceUytIbLJaEELj5R81MUbXrXUOmV/UC9I9JxvFpOHHrFPdEapmLIGSpWb MXNH2BftK7CZayIVJ2PYCTTff663amUPmTyW9E01NVHFq+OPqklbWSl5dSzvFzbrf6vv WhTKzCNYMa3mOU4Fd6f60UyTH39oRC9I8B10RGnT9aEpIOuRNhAO0JG5hNMrd+Pw5mpy dFqSExzIdaZIJyziVjAFrunyrCSvAEDSr3L0LD3H9bIpCD2SSAJWdCxXu/o3JYr/Qub+ 5vTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cuoKHK+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id pi2-20020a17090b1e4200b001d939ffed98si17426032pjb.97.2022.05.23.08.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 08:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cuoKHK+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 41B482ED5C; Mon, 23 May 2022 08:36:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238040AbiEWPgr (ORCPT + 99 others); Mon, 23 May 2022 11:36:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237953AbiEWPgn (ORCPT ); Mon, 23 May 2022 11:36:43 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E5E2E096 for ; Mon, 23 May 2022 08:36:42 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-2ff53d86abbso133344177b3.8 for ; Mon, 23 May 2022 08:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bwKyiDYE51FSv2CgfXwlvAU5QYU7Qji4+KtmcFnvQRo=; b=cuoKHK+r8FryJks2SiHnPmXbZ/0sz66qtrC9b7De2jR3MFvupZAnkge7TLUHTUftmk hH04HskNl8S6CIKkI3pSobr6ljmvwjGEQ5SLW5+EN6z20wELFfLyfiCgYsa1X88WffY1 IPuh48E3wTPsp+xkSEzkItDpmLD5m9Y1kmFXzQ0iKXifUl4kFw7KpX2zrOoJ7zW/m3T8 UqFjH9tMom7RFG7cXEKk9DCqJpZ/UjnEODqFS5oEbwsPQTHISkCIDHCWyXKtuONLb8eU kfl7hZe/eS+aMU/biXWBROYoE5Qbv4GW9mDFhbbozTiCG90Oec7gHj+fSEKpdwtJTmVF JHuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bwKyiDYE51FSv2CgfXwlvAU5QYU7Qji4+KtmcFnvQRo=; b=t1kG+zaoe0qLusaZOih4Jmd+dBjx1pZQ2gU+PHcoLdQlIjS4O8nZjBEsSmzzB63S2P Id1/bjp9H8rp4hV3iz10s4iWSO9++osS0dpyosnCnTH6KDPF9ZDiOfFwGJxLmpoti6Ax eOfNX1H3sskr6F+TJi4o6z3TAB/F6tvwdaUj9ArBhm7u2957uMAB6NoJYxjaJlWbYryF 7jq945tnO/DpTr8aB/sn5xKut+tU6KkBoet1WEMknCqxQA4BrNrPBDjr5yDC0Kj1Rrhx XjLzNSCKLhwYwU8TW/k96JsrPc727bX1g9LytWDKjpkRgGhpeXHKAM8aVc/WBEeqwSWQ lCYQ== X-Gm-Message-State: AOAM533oc7gbSwuPBN0jY8wtdOfJXKFZ+dXAZZDgYdZ7wZNiMX5YLjad 6+cMEPJLkGgbX/vwCVoK4Ftv2iIfWkv0gggpxg7dgw== X-Received: by 2002:a81:1f09:0:b0:2ff:dd8d:7d56 with SMTP id f9-20020a811f09000000b002ffdd8d7d56mr7146556ywf.67.1653320201337; Mon, 23 May 2022 08:36:41 -0700 (PDT) MIME-Version: 1.0 References: <20220518100841.1497391-1-fam.zheng@bytedance.com> <20220518102140.GF10117@worktop.programming.kicks-ass.net> In-Reply-To: From: Vincent Guittot Date: Mon, 23 May 2022 17:36:29 +0200 Message-ID: Subject: Re: [External] Re: [RFC PATCH] sched: Enable root level cgroup bandwidth control To: "Feiran Zheng ." Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , zhouchengming@bytedance.com, fam@euphon.net, Mel Gorman , Ingo Molnar , songmuchun@bytedance.com, Juri Lelli , Daniel Lezcano , Cristian Marussi Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, 18 May 2022 at 17:55, Feiran Zheng . wrote: > > On Wed, May 18, 2022 at 3:31 PM Vincent Guittot > wrote: > > there is a DTPM powercap provider in the latest kernel and a scmi > > power capp provider is under review > > > Thanks, so DTPM can be a good solution for ARM. We could also deal > with AMD with acpi-cpufreq if powercap is not supported yet. > > That aside, I think cpu cgroup has a familiar and simple sysfs > interface, and is more importantly hardware agnostic so it would be > really nice to have. cgroup is about allocating runtime to a group but you want to force a system idle for power consideration so it looks like abusing the interface > > Alternatively, I assume we can look into a device-independent idle > injection mechanism? Yes, idle injection is device-independent and fit better with your needs thermal framework already support cpu idle cooling device but I'm not sure your case is only related to thermal so you might want a more generic interface like powercap--> dtpm --> idle injection > > Fam