Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1373335pxb; Fri, 1 Apr 2022 11:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYP1SqCb2Up++Uh1Wo1gVCLs3i6aKQp02ZnYh00SQb/YeiwMxFe4Oszg0yC6RzFa4Gqhsp X-Received: by 2002:a17:902:ca13:b0:155:cea6:65b3 with SMTP id w19-20020a170902ca1300b00155cea665b3mr11956773pld.144.1648838070226; Fri, 01 Apr 2022 11:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648838070; cv=none; d=google.com; s=arc-20160816; b=CnNPbXzO33hEDm6emm1G+CmGDFnxbL3Q7ndB388eteoYSTdSBww831Vm0HiZGZP+W1 ilw+cfzGsq1U8EXUxamPyIDlnGHKlRSoFaH+aambzcJzE+b/99oBq5CTXZxWqW5SlQZe J15lED1uNuu76O7xne/bCXHz/0j2bKuflR+fUmlFfzUR94FZQU/zGVkqivXF9lnOelaY Fkop9MCtQcfAtjPU/aRu1YS6ykGOlip/Ymta506xkx+GMmzn6QM2hZonMF4QJhXy67x5 yIU6MZmI3NTpnUPJ5hLP2xWobV0xm1ZrYW4nbEwVE4Wxzw46UMDFUoQ/U8F8g6oJU8Ti Vdpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=K7p9/ctal0tq+F8arZJAkDTnDFR5vE1pBSzJx2cToFY=; b=AU88mihRUxLx33UqX7oS36fvFPRobESUdkZm6kEncFYRS53IIQiLbY25W4a1eqb+1i 51FoaRuYMe+1JHBz4NJ5DbIibR4Mx2B/gear//Fe3OkWh0iXnto2CXFMhv/OaR/C16qG HDd5yG0h+GLyA8QeMZ3k7XhUz43UTKdNg0sMeUsaY0X5LPb8g0m6j/pIt1Rp/MCJ9F2T clR6f0/Y/s1kiWvrxSOvsMcOY88rA1l9PNb1nNt7KpaSJ4KQbC+08m+DA4+0MlMDWNXU ev1fSmAHVh/9S5nOcaj3GDif+TPAzzeQpzFTr1ZRhIrwTvdvzvEt6GiHqyeSwLBxwRFq 3wfg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z12-20020a63330c000000b003816043f135si3092922pgz.810.2022.04.01.11.34.16; Fri, 01 Apr 2022 11:34:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234519AbiDAMRU (ORCPT + 99 others); Fri, 1 Apr 2022 08:17:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233311AbiDAMRT (ORCPT ); Fri, 1 Apr 2022 08:17:19 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51A5048324 for ; Fri, 1 Apr 2022 05:15:30 -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 D21841FB; Fri, 1 Apr 2022 05:15:29 -0700 (PDT) Received: from airbuntu (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 49A443F718; Fri, 1 Apr 2022 05:15:27 -0700 (PDT) Date: Fri, 1 Apr 2022 13:15:25 +0100 From: Qais Yousef To: Vincent Guittot Cc: Dietmar Eggemann , 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, 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, Wei Wang Subject: Re: [PATCH 0/6] Add latency_nice priority Message-ID: <20220401121525.flngciwjtkn3mwlv@airbuntu> References: <20220311161406.23497-1-vincent.guittot@linaro.org> <7a7e1e21-df3d-4623-d9cd-51f5272919d5@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 +CC Wei On 03/28/22 14:56, Vincent Guittot wrote: > Hi Dietmar, > > > On Mon, 28 Mar 2022 at 11:24, Dietmar Eggemann wrote: > > > > On 11/03/2022 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. > > > > > > 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. > > > > The Android specific `latency_nice` (in Android `latency_sensitive` > > [latency_nice < 0]) use case `Skip energy aware task placement` favors > > an idle CPU over the EAS search path for a `latency_sensitive` task. > > > > https://lkml.kernel.org/r/2aa4b838-c298-ec7d-08f3-caa50cc87dc2@arm.com > > > > This is Android proprietary code similar to what we have in > > find_idlest_group_cpu() in mainline. > > We talked to the Android folks last week and IMHO they are not convinced > > that they can switch this to the proposed `latency_nice->tweak > > preemption` use case. > > Thanks for discussing this with Android folks. It's not always easy to > change the behavior of a product and I would be interested to discuss > this with them. Sometimes you need a PoC to get convinced I think it's good to clarify for me at least here whether you intend this as a replacement for disable EAS and revert to CAS or you see this as an additional thing? As I understood from the discussion we had on the cover letter, this is an additional improvement and not intended to replace any of the previous use cases we brought up before. Wei/Quentin, any thoughts on this? Thanks -- Qais Yousef