Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5593096rwb; Wed, 21 Sep 2022 09:44:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60BfMsq8nrWPdhQ6rgndP5vjBdbbuc6QlS0U27jg4wKyPQuhHjU79vNjFBfi8walHxdwJE X-Received: by 2002:a05:6402:e9d:b0:443:7833:3d7b with SMTP id h29-20020a0564020e9d00b0044378333d7bmr14950607eda.151.1663778697625; Wed, 21 Sep 2022 09:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663778697; cv=none; d=google.com; s=arc-20160816; b=uSWOAUw9VfEdsAY8wrGJyd7SHbWlkca1xFSEpgiQZEfqroP453zcoOAkI9m8vKp8wC 40eKdgWRTtwQaGld9m+SkngHhnd4DHnLr57XVilbLvxXD76vAqdJqdp3unaWx3XZlWuo yOOPUu6Ci4ssCBMY0r8WXB5cPYNQv8Yyo/DysycEJDQmEXyQAnXqap862nIYd6Ue0P2R fZVc4PhKKa1ociarn//cEXobeOj35YZhP5fOu2NT1ajji99NF7J89uFak9yfJ6P1X90v 5N1wtN8yxRAFquGBV+tur1tJKrAjTDGzKVUMZNIPbXPmvv4BxlY1FZPBK/4kPkp0m13q IOfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=tFuspN+A5zVNf8hsCppjYjPxXeeXDPa+LGabcGcWgiQ=; b=Al+TlaTL6mc7kI8zIogHRg+3nQ00YeGH/hZJezzy7rmxRQSriSDEXkblWIX7LaQm7c eBr/Jw4jeCAPw3CjtQiMH2nxpHtzzFXH4M8zyk3psn0oSNnClRrRW/HRcOSpgbYPELbL SzCH6aMF41UO9+KcbTGcy5yVR4bdSkY1OGlZxw6F1AAqyAxFr68iyJcKiN+krYWYPmHP 3X719TBeltk9RN9cYIHf6tbqa/B3tx1sOjS2nnipvR5ecowT6zcvRN3cqT2w3qzII5xZ eCjQfeR24kbRCwQKYqylJIGltfdGcnkBz83f1wqIc/gxlCFkTWdGr4gy7mqiduf7IExK 6HNA== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a170906825100b0077ef2f9c8b7si2205854ejx.922.2022.09.21.09.44.31; Wed, 21 Sep 2022 09:44:57 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231858AbiIUQ0k (ORCPT + 99 others); Wed, 21 Sep 2022 12:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231644AbiIUQ0W (ORCPT ); Wed, 21 Sep 2022 12:26:22 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4BB46B2CF2 for ; Wed, 21 Sep 2022 09:09:15 -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 CC34813D5; Wed, 21 Sep 2022 09:07:49 -0700 (PDT) Received: from wubuntu (unknown [10.57.50.172]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D56C93F5A1; Wed, 21 Sep 2022 09:07:39 -0700 (PDT) Date: Wed, 21 Sep 2022 17:07:38 +0100 From: Qais Yousef To: Tejun Heo , Vincent Guittot Cc: Dietmar Eggemann , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, parth@linux.ibm.com, chris.hyser@oracle.com, valentin.schneider@arm.com, patrick.bellasi@matbug.net, David.Laight@aculab.com, pjt@google.com, pavel@ucw.cz, qperret@google.com, tim.c.chen@linux.intel.com, joshdon@google.com Subject: Re: [PATCH v4 6/8] sched/fair: Add sched group latency support Message-ID: <20220921155521.qb3jb74nbjoenau6@airbuntu> References: <20220916080305.29574-1-vincent.guittot@linaro.org> <20220916080305.29574-7-vincent.guittot@linaro.org> <000c2893-feb4-373d-2234-2ca74be94714@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 On 09/19/22 07:34, Tejun Heo wrote: > On Mon, Sep 19, 2022 at 05:49:27PM +0200, Vincent Guittot wrote: > > > For `nice` we have `cpu.weight.nice` next to `cpu.weight` in cgroup v2 ? > > > > If everybody is ok, I can add back the cpu.latency.nice interface in > > the v5 in addition to the cpu.latency > > Yeah, that sounds fine to me. I do have concerns about cpu.latency knob as it exposes latency_offset which won't be meaningful for all consumers of latency_nice [1]. The current use case proposed by Vincent is not going to be the only consumer of this interface. The concept of converting this latency_nice value to weight in similar fashion to existing nice value is specific to it. In previous discussion this conversion was not required and I'd expect it to still not be required for those other use cases. Wouldn't cpu.latency.nice be enough? I think the latency_offset is implementation detail that userspace shouldn't be concerned about. [1] https://lwn.net/Articles/820659/ Cheers -- Qais Yousef