Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5576403pxb; Mon, 28 Mar 2022 14:27:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEEcTYFo3fJWL7RQacFMK/KpR1dvcO51Z+r4ki04gshrtm31Lor5jCSzNzTzPw7qlzRt4z X-Received: by 2002:a05:6808:124b:b0:2da:38f0:945f with SMTP id o11-20020a056808124b00b002da38f0945fmr597133oiv.171.1648502835481; Mon, 28 Mar 2022 14:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648502835; cv=none; d=google.com; s=arc-20160816; b=gFSI8iLip8OkXw7ag5g2zBwbUnvxBD/gfBL4g/T0FANS9PYYHoW9tvFiOaGaVXDXlF wWTNAKel4CyDkUwdlOxZLkJggSWyX2pVedWVxhcDdIR1axznELElzFIE6CSVe4FU2WH8 CSu6gjkiUPYi3EhvERNXg/XGzwUU0hRo0aXRFWmV1C4KCgy07CMFmI0aRWNIAYHfU9V7 NGD2QAbSbnzLhe/SFFexlF+/TSrfZz2GQ+HZWeNlpy87jFKAcBRTXmq4ArC9YEQhid+3 kjGrLoMhpV3cwYL/8FcZtkw3suPeuvByuPH7DaZF7udacA0xb2a8YEuRioyWOhonxFX/ FgnA== 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=MegZaMgRrshb8FVD+WqvuRy2H4KFth7Hnw9qafWigzg=; b=PCjOmygjfzwQPXV4Lo0nYu4fOVSuKgdknpIi6YsPZxbsxuNIqI38xWgBU3v89wurJq cwYTIsLmMWhUstFmiFtr3m2VdD6S1r5ybl8RDKIGiBE4Z9IYIyhkS31aFycUB1WF3B1m 0ULAxcrM7NJ9amBlzdB3ceZb2Myl9zm9ulG15Lt9Ftj86ZOTjA85TNciIb++dheGncs+ NiYG/YGscMYJbgv7wDmIB4hjB0ux3v8RyelMEFPkZGfktua/onRJSCNLgrtKaKvbJ/HJ IrMCQ/zGGZJJvJZR8psULEv5rZ8kjuOC94yCfMH4ZOMvn6GJ0ViMzLwdm2timK2aoGyA umqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sVgBvtgN; 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 z16-20020a05687042d000b000dabf851f93si10504594oah.264.2022.03.28.14.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 14:27:15 -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=sVgBvtgN; 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 331A97E08C; Mon, 28 Mar 2022 14:11:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242599AbiC1MnW (ORCPT + 99 others); Mon, 28 Mar 2022 08:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236168AbiC1MnV (ORCPT ); Mon, 28 Mar 2022 08:43:21 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D8B95C36F for ; Mon, 28 Mar 2022 05:41:40 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id bn33so19003251ljb.6 for ; Mon, 28 Mar 2022 05:41:40 -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=MegZaMgRrshb8FVD+WqvuRy2H4KFth7Hnw9qafWigzg=; b=sVgBvtgNOiUNfokbcV/UEDxd3JbQxAqFvnxjGqBN4cY1QyDJWCp4TYhdHlVxavEMwT NaFhnLpDLEIxIERrZCB/RKEyyreqy/bcT3s8yoTOkaKn3uBV1pHmbsPXVYpKERtWv7I0 F2mmTxuFI5aPxwkvU3l9pzqSO9KrfYhA0VK+MjuVscOkMFZc4ZdLF72MLLsfQT6khDwD ixbnFD9X5+U7gmj1CmiV7l38/zxI2p1W5vRYGm4dgOWaUh6EG+T9+X4UouW6j48gfMhM kb3oqKb2aZGEB5WMIFtpmK0Ok5P4JpB/eDJY6Z44vQ+8KQuHELPXJa1Ss3+avqtOwYMK 4PeA== 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=MegZaMgRrshb8FVD+WqvuRy2H4KFth7Hnw9qafWigzg=; b=YNNGKXCU4VxqsNWuEQssz2Ynp2WTF8UCtkZGOmGWBLztbpr0FV1XzSeksUbzUN36Qx A2BW3DBURWJqzKEUF6ozh4pGgGVwYx6v76exsjzw97L3utpq2EHLa2uCcpE6sC2QuEEF B1yD4jUOZQmTwUufdwAp6dIkSFj+EjARUIJ0U3lDsJp7tZa7REpw83FcaRft6q6uKCfT 4m+YPPY2fRVZiDOIA4FRjGOZEFCK1vfh+PwT6iY4S1qJlKkF/Z7ITuXYwP6vPdyDwcps 10tjSY/u7OB7oPWKJblukn+ACuzdf/6AmIzPwVzxSWaLDdKERE0cpbqaqsaQDLCB0iMf BHAg== X-Gm-Message-State: AOAM531XZs3+/MSa/+V7CP/cj7sbtcufu3hWTY45kbWBT9ffTH42bGmu 5EB1GMHw07a0MP7dM2s8tJshKr/uBgIz3Ed0FVCJwg== X-Received: by 2002:a2e:bc12:0:b0:249:8daa:4de4 with SMTP id b18-20020a2ebc12000000b002498daa4de4mr20231163ljf.383.1648471298777; Mon, 28 Mar 2022 05:41:38 -0700 (PDT) MIME-Version: 1.0 References: <20220311161406.23497-1-vincent.guittot@linaro.org> <20220311161406.23497-4-vincent.guittot@linaro.org> <6bee2e39-34a8-905f-084f-379b8476ea98@arm.com> In-Reply-To: <6bee2e39-34a8-905f-084f-379b8476ea98@arm.com> From: Vincent Guittot Date: Mon, 28 Mar 2022 14:41:27 +0200 Message-ID: Subject: Re: [PATCH 3/6] sched: Allow sched_{get,set}attr to change latency_nice of the task To: Dietmar Eggemann Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org, parth@linux.ibm.com, qais.yousef@arm.com, chris.hyser@oracle.com, pkondeti@codeaurora.org, Valentin.Schneider@arm.com, patrick.bellasi@matbug.net, David.Laight@aculab.com, pjt@google.com, pavel@ucw.cz, tj@kernel.org, dhaval.giani@oracle.com, qperret@google.com, tim.c.chen@linux.intel.com 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 Mon, 28 Mar 2022 at 11:23, Dietmar Eggemann wrote: > > On 11/03/2022 17:14, Vincent Guittot wrote: > > [...] > > > @@ -98,6 +99,22 @@ struct sched_param { > > * scheduled on a CPU with no more capacity than the specified value. > > * > > * A task utilization boundary can be reset by setting the attribute to -1. > > + * > > + * Latency Tolerance Attributes > > + * =========================== > > + * > > + * A subset of sched_attr attributes allows to specify the relative latency > > + * requirements of a task with respect to the other tasks running/queued in the > > + * system. > > + * > > + * @ sched_latency_nice task's latency_nice value > > + * > > + * The latency_nice of a task can have any value in a range of > > + * [LATENCY_NICE_MIN..LATENCY_NICE_MAX]. > > s/LATENCY_NICE_MIN/MIN_LATENCY_NICE > s/LATENCY_NICE_MAX/MAX_LATENCY_NICE yes > > > + * A task with latency_nice with the value of LATENCY_NICE_MIN can be > > + * taken for a task with lower latency requirements as opposed to the task with > > + * higher latency_nice. > > low latency nice (priority): -20 -> high weight: 1024 ... Doesn't a task > with MIN_LATENCY_NICE -20 have the highest latency requirements? IIUC, What Parth wanted to say here is that low latency nice (priority): -20 is taken for a task which needs low latency. The low applies to latency not requirements > > [...]