Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp5519348lfu; Mon, 28 Mar 2022 15:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmaRfOmgMbmrF318PD3Pym/kwWGxEMW8O5OFSGpBwE7NTCK/B/XbJOjz+Im5ZSgbfB6gP+ X-Received: by 2002:a63:dd56:0:b0:381:5720:4803 with SMTP id g22-20020a63dd56000000b0038157204803mr12167853pgj.104.1648507935028; Mon, 28 Mar 2022 15:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648507935; cv=none; d=google.com; s=arc-20160816; b=hJMzd/WcTtVeaJ7lK/l4c6x1BPz6ZoC0j+D9MMd52/9k0dSHWzYLvNC+YTYhIL8CTg pZzfxONwP0VGdcXKWsizFxgjAvXd9y8VIWgCWnZasnTSgj24R/EWTna/L12Q+ZrhMF9I PnofPzze9AZy0UiLKKJhgTfTfMBic+1P3xb8cOxuhvjOra/XMIBYNVthGQPsm+BzZJKt oxYm2V2R+ZAnCqBIzc4zWhukHW4698puPZvvhM3Klpm2s9OKw3g7S/Dc7cuzzLQTVuRf wmS1r+AhQo4fC3NrppjYfQQhcLsPe9SgV4E30DpX1hanIAq70z+TEfSGOOiUdURXY9u5 7/QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=p2uOeeTTPtGz2++9TadAhU0c3O8IiXGbx4m0PMl2wN4=; b=fXDFIzx44U3pderSz7BF+bmcaYonKUF+QR6tuWi/GzljXcb7AQzGe9Xes4UZ7W+xEF QYl9+GZjm5IyZUODF9SZWRHjj+xVI1HMytwvBx3bL14WAL512gZKiROIAFTcKsY1y9Yb AVhpiPbJn181yJQnMtTmPSaGAHtnoA2GVAs8SKIKFgtR3ex7+JALwNf4i0zyiq7q8Sme 27It8EHXEp09wkhg0n64ttyff6nHOqB6YKpygJHw9QQWeK3LIICatwjQGvvylDHjBpdV gxZetC569rriOyFLXHIfucUOwFdQi/qDooue9UExlNL8oNMQkWKU9lE/LjBXDObxskvB qpZA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r15-20020a170902be0f00b00153b2d1646fsi14403294pls.119.2022.03.28.15.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:52:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 044EA21FF7D; Mon, 28 Mar 2022 14:55:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239769AbiC1JZc (ORCPT + 99 others); Mon, 28 Mar 2022 05:25:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239768AbiC1JZb (ORCPT ); Mon, 28 Mar 2022 05:25:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8CAFF1408C for ; Mon, 28 Mar 2022 02:23:51 -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 3200FD6E; Mon, 28 Mar 2022 02:23:51 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0D9EF3F66F; Mon, 28 Mar 2022 02:23:47 -0700 (PDT) Message-ID: <6bee2e39-34a8-905f-084f-379b8476ea98@arm.com> Date: Mon, 28 Mar 2022 11:23:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 3/6] sched: Allow sched_{get,set}attr to change latency_nice of the task Content-Language: en-US To: Vincent Guittot , 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 Cc: 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 References: <20220311161406.23497-1-vincent.guittot@linaro.org> <20220311161406.23497-4-vincent.guittot@linaro.org> From: Dietmar Eggemann In-Reply-To: <20220311161406.23497-4-vincent.guittot@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 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 > + * 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? [...]