Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp355442rwb; Thu, 22 Sep 2022 00:00:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7yK7WlJyQ31fea4DN9Vp/ywmV3lHTdrnLwLwDzpvbhqhkUGVyHDkq2rNBcepRrbAgXZpRt X-Received: by 2002:a05:6402:2073:b0:44e:3555:5fcd with SMTP id bd19-20020a056402207300b0044e35555fcdmr1726050edb.82.1663830022090; Thu, 22 Sep 2022 00:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663830022; cv=none; d=google.com; s=arc-20160816; b=RnCeMWicPGpoLNfxDx35M0i6pkyrSBsu/zBH8029nfWvv3iaqxrFxekI8lb4IKjUr7 7gfNVN71LfBMqxS5iqCvKiBwMYFQr0W8BK6mfg6crA5blqSKCusQelZIksux4Ev/Zmpf 9QgsgHhW466yr9KQ/vzhbi+uEoIGjrdyUyZrPizMgQCBdrHUJj9Idz4nE3AUyzru9s6e QhpsDuczADaMNUb8DLst5PXsMSc26mwBkmIVCRzDE7qezO69FXOxuxYMtVmTJ5Mmx+ju CfmuXkoXYuiAY3G83TwxDAjs/kgFisXiIYJ1iYD8lbVXZ4bwJMb05EVLOPwfJfs3XcVw sugg== 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=CzXRCK2IG+QiEk8VkCDJeJkkF52iVy5YTfg9HZImjvY=; b=Q9UntJq0mO6MSz+81+VjYaulH+8DfSSLkR3C0UbM/ZLZNn4hPnjjEG2n+SsoD+HFTS E4wEyqdLKcX4vS8xBsB3Je7uNC/tLuW2DCXPEZXru7SAEJyFpzNDFq4LKfMPc53uz3i+ 2eTjYnzxmdLcWWdN6BAjuqTnHJquzk7hcKoVSxDAYl8/t3TFE8EZRDpSixR8GiTT+0F/ GWoxcwJpn4ghDQE6BuOHjqn+6peRXwrR3TiduUmuL8iH3q/pv+yUm9T6kev14zldOze1 9rNNLlpZCEdF8w467Z3Vt/xVOA2qorhGc42hAqMpWMTkR/BZOfzTl6xE/AfsNZ9GtK7t +WHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ws6HG2eA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb40-20020a1709077ea800b007822ad0075esi3153602ejc.376.2022.09.21.23.59.55; Thu, 22 Sep 2022 00:00:22 -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=@linaro.org header.s=google header.b=ws6HG2eA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbiIVGlG (ORCPT + 99 others); Thu, 22 Sep 2022 02:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230189AbiIVGk4 (ORCPT ); Thu, 22 Sep 2022 02:40:56 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B31EB6D6D for ; Wed, 21 Sep 2022 23:40:50 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id j16so13084234lfg.1 for ; Wed, 21 Sep 2022 23:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=CzXRCK2IG+QiEk8VkCDJeJkkF52iVy5YTfg9HZImjvY=; b=ws6HG2eAZetPyUECyjfgZiIzihmvBuQRn5Rlc3G7bw+z6eb19FZOsdT5dKIccwNUwY dzW0+tmsxJekFSO3u6QnyzFi8u+aA3Pc3rEvE2BA3QR5xNjV+WxRz07OgNuSY+0mbLg5 A2dkBe9SKw3fzofiyuHGNH6vCbz/4geAspeD7U4THOB8+1X9XgP1Y8eviTEVH+ccUDq3 K0ukQCzwzTM40scUwHb+mM9L48FQDikcuyw0sSIPH5qND0fHLy2yVq2PGbs95iFHOXln rKe/epApKCYa3pKY+3vXd7lx1UW+4pjS2bTRHfuZXAz3K940F10+peefMy4RCllt2kKC 4C9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=CzXRCK2IG+QiEk8VkCDJeJkkF52iVy5YTfg9HZImjvY=; b=qnnypi7V83NrsnlFlGx8U/lmDsbt45gMDhwmKdt95jD7lTo2NpleDs7bYWJ14SrvPU tnS3sjH1HaXq9pkHiVnvEBStyE8o+fIfiy8HMpwB1+GqaeM+6stl+DrwNX3VYyMfpJLm sjco8t2XdTZ6C8h1EB5F0zkN2OJscuiNtZj/5GpAWhDRWHEgU4CS0Qq/4GRNUIXineyT I4sP+VoUpv6r18DshJiQ06qLrznGejUIqwECAhHGKLPpFHPFjlZEHt/b+N5C1ZYbVcjw tyIBcWGxSUN1RK8u72Jz50eyZCTveUYZY6/dkvk5grY7eflccDUsoqmZpEw9+R4GOnMN spuQ== X-Gm-Message-State: ACrzQf1joO2PtQWDF6O9xlW4x3186Uf0lzU23lmeunnWSRZkPe1/fpBC QTX1MXtFzL+dbVReLX3ZeCTe8tXhAZNor2SqzWypwA== X-Received: by 2002:a19:490b:0:b0:49f:52cf:aeaf with SMTP id w11-20020a19490b000000b0049f52cfaeafmr630419lfa.46.1663828848225; Wed, 21 Sep 2022 23:40:48 -0700 (PDT) MIME-Version: 1.0 References: <20220916080305.29574-1-vincent.guittot@linaro.org> <20220916080305.29574-7-vincent.guittot@linaro.org> <000c2893-feb4-373d-2234-2ca74be94714@arm.com> <20220921155521.qb3jb74nbjoenau6@airbuntu> In-Reply-To: From: Vincent Guittot Date: Thu, 22 Sep 2022 08:40:36 +0200 Message-ID: Subject: Re: [PATCH v4 6/8] sched/fair: Add sched group latency support To: Tejun Heo Cc: Qais Yousef , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Wed, 21 Sept 2022 at 19:12, Tejun Heo wrote: > > On Wed, Sep 21, 2022 at 07:02:57PM +0200, Vincent Guittot wrote: > > > One option could be just using the same mapping as cpu.weight so that 100 > > > maps to neutral, 10000 maps close to -20, 1 maps close to 19. It isn't great > > > that the value can't be interpreted in any intuitive way (e.g. a time > > > duration based interface would be a lot easier to grok even if it still is > > > best effort) but if that's what the per-task interface is gonna be, it'd be > > > best to keep cgroup interface in line. > > > > I would prefer a signed range like the [-1000:1000] as the behavior is > > different for sensitive and non sensitive task unlike the cpu.weight > > which is reflect that a bigger value get more > > How about just sticking with .nice? Looks good to me. I will just implement the cpu.latency.nice > > -- > tejun