Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5697891rwb; Wed, 21 Sep 2022 11:05:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5JqSJ3ctnb9LwA8aoxOu/FjJ40mBFt//T0/AoX3FY+eg9V5Bhq32hW7tQFMA8ztqj722Co X-Received: by 2002:a17:902:9881:b0:178:6506:bbf9 with SMTP id s1-20020a170902988100b001786506bbf9mr5985886plp.80.1663783500935; Wed, 21 Sep 2022 11:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663783500; cv=none; d=google.com; s=arc-20160816; b=061I7ohM+9XswlpszxZ3UBAhb3i4lzu/Gi2y/Q64y64LIlF2A7aOcIylROxNomCcjC Fn8rREE+l/QTPkEaUq3acpQ+pbPxGlv1m2ermTtls8FOThEWQWSkb70K7S38UwXnOFWw //eAHFc1LoOc1xPJVl9P10YN626wseULFX3g7hQbyNm9E94H8zlVhZw3yeXgXumvYBJZ n+JDGk1paFFcaS5YDCrsjCHfRLwu7/ArUmmktU15A3rPRO/yBNi2cj50k7kmQvWco/6+ CaQLu9H3m0pOW1HXzZa3Beb9nv+BOpiMl778d3ebyeCbaV3xz5Bh+UhZUGTDi9QvwBrr N5MA== 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=hJcZ3+WztjMCRPWNsty0/PogrgPtQJKPkN9t4aZEBZ4=; b=J+sxKZP4jwATM4p5n8VqCFTdYXl8XkMlag/TBgSurDVC5M72OVmaqsgU/ZJm186xWC WmOYwKkps/wLeMx1PWztvRfphdqX6MAfauUNnAEYVADzlnS+GitZjZAmXjNIdd2rNHeb 5IfN6uCGJTZRAyFy35gH0F7WoRm+I787ALHRjU7/qM3K/sX3gjS1ktO+r6S2b1g/PESG Jwzt4zZWOstExLWvtrLV7U5lYMNBhDbPZ7yDjFAtg1RhuC0sQeYsd6utN2CDerXPACL3 Todpz188ukVpSHsFMbSHBugAkfvH3AAWkHWbiEZJU+/qdtuy1QNbfQGKzgi3pTZPYq8i Q+2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DVkXjJvk; 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 x190-20020a6231c7000000b0052eb0d3a27fsi3288350pfx.157.2022.09.21.11.04.48; Wed, 21 Sep 2022 11:05:00 -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=DVkXjJvk; 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 S229797AbiIURDn (ORCPT + 99 others); Wed, 21 Sep 2022 13:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231609AbiIURDM (ORCPT ); Wed, 21 Sep 2022 13:03:12 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8F647B78C for ; Wed, 21 Sep 2022 10:03:10 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id s6so10277179lfo.7 for ; Wed, 21 Sep 2022 10:03:10 -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=hJcZ3+WztjMCRPWNsty0/PogrgPtQJKPkN9t4aZEBZ4=; b=DVkXjJvkIRy+yqK8A9d+F7u8/ms5hShQd6KUAXofYy917jmIGnaMvamC0fhoV1QNpZ 7huLhYTzEFv+OciHeFJZ6JzV4lVW4beiG8ToNMa+oJ87yGUjj/pPnHSekLlFEvMgw0pa Xi7HV4mRk8yIiWD6UIoozEyKbgGGA7LK8c9er6XHg2vZKVqDCqp5YcaKI51pt9n/RxTQ eVf4vO0pY+sWBjotcAZS09OupKXG6Sw1o0Bti7KU2Be2H1KO/zhWEqR4+MKGaZhW6dOj C32o05ZANhTgtvFFU2NWnaX8uRINm+ajdmF9VNcoNkPk6PMgcWe08fvoaKrcy15y9kJi 776A== 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=hJcZ3+WztjMCRPWNsty0/PogrgPtQJKPkN9t4aZEBZ4=; b=3TE84klGBwzn5Qmc8HSf4M2C1ofbOUdadAjrMW9Ottp3ARft3cWJANY0L6QaiLHwJS cy0u7u8dY6ytAGTB3IRW24PIIso7XgvyW3TlSrRcTe2cepjMcv0vgoyzaMARC63+dz/+ ThIF1AfgA9UBwe/trRZjS81m3+iQZ3MidOLL5W+fitPkZ7wanbH99bchhv+tpD8k5c9Z p68br77kcl+8Uufn9VqLrLC+rqX617rT6bvpwwfS1EnrH+C/vowh/IWmTnCdPOnVtRo8 HzdYgqY99BZZo6NDssyghMr8plJS82imF/m3yiEtmXQ+v/sHixxQ7MvIscb+7J9A8eTu zLmA== X-Gm-Message-State: ACrzQf0FaXLjRNeCf95pMlLih4BIFFul7kigUyHB88clIgAORg7BbtY5 +oExTPdwwDHHqujFvVVBJF/J+rYWTsfrTvzLIXjcSw== X-Received: by 2002:a05:6512:3183:b0:498:fa29:35fe with SMTP id i3-20020a056512318300b00498fa2935femr10293908lfe.523.1663779789010; Wed, 21 Sep 2022 10:03:09 -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: Wed, 21 Sep 2022 19:02:57 +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 18:48, Tejun Heo wrote: > > Hello, > > On Wed, Sep 21, 2022 at 05:07:38PM +0100, Qais Yousef wrote: > > Wouldn't cpu.latency.nice be enough? I think the latency_offset is > > implementation detail that userspace shouldn't be concerned about. > > 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 > > As for whether a single value would fit the bill, it's again something which > should be answered for both task and cgroup based interface at the same > time. That said, my not-too-throught-through opinion is that a single value > for per-task / per-cgroup interface + system level knobs to fine tune how > that actually applies is likely enough and probably better than exposing > exposing a host of internal details to applications directly. > > Thanks. > > -- > tejun