Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2153813pxb; Fri, 25 Mar 2022 12:03:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJDqWTjGRvpTFYhKuv603U65IskPjmXI+0ubnprzZJm2EtOttunS41rXrm6hSxXBO90Tn4 X-Received: by 2002:a17:902:9894:b0:153:4d7a:a8ec with SMTP id s20-20020a170902989400b001534d7aa8ecmr13178294plp.27.1648235000196; Fri, 25 Mar 2022 12:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648235000; cv=none; d=google.com; s=arc-20160816; b=Qq4IKcMt+LRjZ5vIE6R46p0k1FNV5/dicaGioFaKhqpNqqYQrlXMie1Ad5Uv7D4yXv 1hyjDmZivkz2xJrmNZ98+5iWIfjHIecBdILhigQ3xvydwqhBCYIgJbK51d8/mOQ2iuwP 9eLFVyytzKUMcEZ9xoPs5/bdKgGVo67cyCB8fGGXxsAj4OkcD0fCXmbvfyEJ2JxEff2f ZY84XayPm6xkWIEC64dMC/JU8KnrLjhJWTW2pWej8pVfc37ACuOg074zsz73uaoYUrAB a3PXmDhZEmyQT1it40t17JTB/waGk32lQKcNVZ2tZR5lkDJxizCjbPFVgPV89UJfMl+t Eo6A== 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=BUtoFC6ywyL37K0zn09XnYfSUFvtwDz/50hx1dXYrdU=; b=HIGAR+Ttzpvjnxhojeg1HKkmqBHO3awIcBRj+ILQQ9aRVSsqiXwjyDJYMZ34jV2Mf+ b8BQlzOytsA0Br6y8POUEv1OXt/lbgfcKNmDD2x9eO7Pm9b3hulixFaXVwTqU45/ZF8q tKRQhbmKviQKhAfUZWmiorxOnmMRats1d01H3uvMh1E5BhfxzKjHsV747ssdtOVAH0zM Ahu7NOzrAcS75js5JsfHwTrq3BaC3GEgZXMqj+LXzQImp9FgdUR7rV98i9wm7GqLtyXe qLGE9tDnNhXnPVUQvLnfSfHwlrJoDaNXxngLNcFIEIWciqZAziUzerjpu7SYehkOY1Yb Cy+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ER2R2i/n"; 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 w6-20020a170902904600b00153b2d16485si1862196plz.141.2022.03.25.12.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:03:20 -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="ER2R2i/n"; 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 BA2AA13EFAA; Fri, 25 Mar 2022 11:12:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356551AbiCYN3X (ORCPT + 99 others); Fri, 25 Mar 2022 09:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353115AbiCYN3W (ORCPT ); Fri, 25 Mar 2022 09:29:22 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27095BD2F2 for ; Fri, 25 Mar 2022 06:27:48 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id t25so13374426lfg.7 for ; Fri, 25 Mar 2022 06:27:48 -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=BUtoFC6ywyL37K0zn09XnYfSUFvtwDz/50hx1dXYrdU=; b=ER2R2i/nbH0qKeLoBBXGWglgmKrFfI8rtVs00xxk0gehkHCIbVQVmYTO4+fCUArBCV +2gWnrcG9xlaudAkMv5GJvWOfsmtlBNEY46X76qTcO2/zfAc9vn0XT9NCNNyuFBw5vm9 H9XFZYHlnwUTi0Bpj/B5NmJBeViS/9HUQkVQ+D+ln4vQn5jYJk+57cOHl717+aoAMx/U kZvAaBqD8YLRxQMhLrT8+lk4NDWKcbuinZtfgE4euNghnXHwZ8jjSipe8eOxZ6QdUzmQ 5GNuHn++cLVMGN7iMaRWaAzRJ+Uw8okjqV7FBo2tWjD4InzD62NEIgA7sY2pho1bxKA3 JoeQ== 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=BUtoFC6ywyL37K0zn09XnYfSUFvtwDz/50hx1dXYrdU=; b=3Loxm6SlnzyL4vZ9CwgPULBsPCQixkSSVvv2jyoP5bDUsFIYWZP+W4IfbuSNYRBzhW TtOTNNCCzWURftLZKFHAq6ghxEXGgUbEcJmd89nFC+lnyQqJHrQcws6xeiA3leF+haa0 A6lU+qk97qBzVgTUTD8dDXyo2UCmQ+Qm4jX3q0x9LvWBkDoUgnpCmsHz+R2rCgswkZZ9 qxS1ZaABIKW0+XXuD/YKQfTZgXfDmzlxLmw8g43Fzda550sFlt2fYx6PZ53yPH2xXCVS X7+4KtKvy5mHKO+O0caVlnLgh94/OBAQF4jpg29U9gmAWtqsRgzZ3F/KAxk7e+yS8Kd1 ewfw== X-Gm-Message-State: AOAM533OFbpGzr89EnTLfsTeZ+01NqSiC/FOHAaghOD/olkBGw635UOP oAq1sdlkB3Im5cTmadoVbjGtmLcNlzVy89ueQUhnVpLaJ6Y= X-Received: by 2002:a05:6512:6cf:b0:44a:25d1:a27 with SMTP id u15-20020a05651206cf00b0044a25d10a27mr7751081lff.18.1648214866341; Fri, 25 Mar 2022 06:27:46 -0700 (PDT) MIME-Version: 1.0 References: <20220311161406.23497-1-vincent.guittot@linaro.org> <20220322163911.3jge4unswuap3pjh@wubuntu> <20220324172528.lrjiehsqrwvnwg2x@wubuntu> In-Reply-To: <20220324172528.lrjiehsqrwvnwg2x@wubuntu> From: Vincent Guittot Date: Fri, 25 Mar 2022 14:27:34 +0100 Message-ID: Subject: Re: [PATCH 0/6] Add latency_nice priority To: Qais Yousef Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org, parth@linux.ibm.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, 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 removed Dhaval's email which returns error On Thu, 24 Mar 2022 at 18:25, Qais Yousef wrote: > > On 03/23/22 16:32, Vincent Guittot wrote: > > On Tue, 22 Mar 2022 at 17:39, Qais Yousef wrote: > > > > > > Hi Vincent > > > > > > Thanks for reviving this patchset! > > > > > > On 03/11/22 17:14, Vincent Guittot wrote: > > > > This patchset restarts the work about adding a latency nice priority to > > > > describe the latency tolerance of cfs tasks. > > > > > > > > The patches [1-4] have been done by Parth: > > > > https://lore.kernel.org/lkml/20200228090755.22829-1-parth@linux.ibm.com/ > > > > > > > > I have just rebased and moved the set of latency priority outside the > > > > priority update. I have removed the reviewed tag because the patches > > > > are 2 years old. > > > > > > AFAIR the blocking issue we had then is on agreement on the interface. Has this > > > been resolved now? I didn't see any further discussion since then. > > > > I think that there was an agreement about using a latency nice > > priority in the range [-20:19] with -20 meaning sensitive to latency > > whereas 19 means that task doesn't care about scheduling latency. The > > open point was about how to use this input in the scheduler with some > > behavior being opposed. > > What I remember is that the problem was to consolidate on use cases then > discuss interfaces. > > See https://lwn.net/Articles/820659/ > > " Youssef said that the interface to all of this is the sticking > point. Thomas Gleixner agreed, saying that the -20..19 range "requires > a crystal ball" to use properly. Zijlstra repeated his call to > enumerate the use cases before getting into the interface details. > Giani repeated that the interface does not look correct now, and agreed > that a more comprehensive look at the use cases was needed. Things were > being done backwards currently, he said. " > At LPC, everybody seemed aligned with latency_nice so I assumed that there was an agreement on this interface. Latency_nice fits well with my proposal because it's all about relative comparison between the running task to the others. The current nice priority is used to set how much cpu bandwidth a task will have compared to others and the latency_nice is used in a similar way to know which one should run compared to the others. > > > > > > > > > > > > > The patches [5-6] use latency nice priority to decide if a cfs task can > > > > preempt the current running task. Patch 5 gives some tests results with > > > > cyclictests and hackbench to highlight the benefit of latency nice > > > > priority for short interactive task or long intensive tasks. > > > > > > This is a new use case AFAICT. For Android, we want to do something in EAS path > > > > I don't think it's new, it's about being able to run some tasks in > > I meant new use case to latency-nice interface. I don't think we had this in > any of our discussions before? I don't mind it, but it'd be good to clarify if > it has any relation about the other use cases and what should happen to the > other use cases. Several discussions happened about changing the preemption policy of CFS. I have Mel's example in mind with hackbench where we want to reduce the preemption capabilities for the threads and on the other side the multimedia tasks which complain about having to wait before being scheduled. All this is about preempting or not the others. And all this has been kept outside topology consideration but only for the local run queue Regards, Vincent > > > Thanks > > -- > Qais Yousef