Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5627414pxb; Mon, 28 Mar 2022 15:10:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE79GmDJ3FFd/U6wDP2kXQHeE9Xga81efcbi5Yf7tRIXWYBW0KLExaJfFSv3iUNrMxeoK9 X-Received: by 2002:a05:6102:e92:b0:325:c263:ff9f with SMTP id l18-20020a0561020e9200b00325c263ff9fmr1406258vst.31.1648505408707; Mon, 28 Mar 2022 15:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648505408; cv=none; d=google.com; s=arc-20160816; b=ZzdC0dhvcfmCKneCTObiuJgbPEtup+ykjSvxX+P1+ZpUigracR4CH7BDg6EGYOkA8G dNJnepzIaTQFzH+Uo1yrd6/wyzyLcLm0kgs7Y1pP5ovMItdT1tM2xP0EoXxG9W5QpS2m gOsqDoIx8ZvH6I+sJwZcx9vsenxWBPpyeRo9mvLR3frXOmuHdx4UWMLTkFcOgcTBfjhX nUT5WADcimK7GPwTPLCkAn50qGap7d1PrtCMYNDmfhnm+VCeOH/Y7XUVtx/lKtW1o7Px T1gboqASNVp7SRyrYOpLjeGK360xAEq6k+ELeiV3qp5rddenU8XmxhX8303woFrw+kp2 15Kg== 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=ty0gPYxWNpU2n0H7QIeSgFfwy//Cvhus3P3z45vF7Cw=; b=PK4Pac4BdTaijFsW5gt7oIl+e3VThhvnM6eTGGXRXzkF+SwvPDTWTM3DKJMTFb9Cpr tJOQu5qFm+DgjujWBuXKKX59i1NXDIQKdNcuEbbTmOOeKTkT8B/Y7HPGZIOcz/eA4it4 3O6jihvdoZmj6QJ5jjTjhOwMgokGPtz0ofoffLptSBD0npCm/I379mg+TYPOo9gVS9cg 2s2an8kM8orsN4PtLi+BiSSw3FBLGfmUK/BTXnyiyot1PaQkipuvfSY+xOe1fdzBlfRG LXyESyt7TMs2Ny1+jHXYZO5cNF8eDsATo+CIOSEsYdzLa+FY1X3rZeo+Wa9q4nld+Hsa E0GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xxZbXLqp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o66-20020a1f4145000000b0033e831701dfsi3190524vka.73.2022.03.28.15.10.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:10:08 -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; dkim=pass header.i=@linaro.org header.s=google header.b=xxZbXLqp; 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=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 72A28165A84; Mon, 28 Mar 2022 14:30:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242713AbiC1M6S (ORCPT + 99 others); Mon, 28 Mar 2022 08:58:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242726AbiC1M6A (ORCPT ); Mon, 28 Mar 2022 08:58:00 -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 5FAF958E68 for ; Mon, 28 Mar 2022 05:56:19 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id e16so24527645lfc.13 for ; Mon, 28 Mar 2022 05:56:19 -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=ty0gPYxWNpU2n0H7QIeSgFfwy//Cvhus3P3z45vF7Cw=; b=xxZbXLqpj4A3EaLThYUDImNKqDSXTbXq5AKOwTmfvE0cMAWI1vYcy6CbVDLD0OofM9 jxxqTxfd7I9zVRxsg3x4pqzNsHHuNxOj2X7oeU/UR7ZTv8NEgUAxIqj14Jr/AumcLK7/ BsXV6t9EWv0DrS8CucwH4JyyD75K0c6TetY9wyXViyDiuNK6hk1wIGpG8qWV9RemRuui RXpV2sSNcuwMnGgNzS0XbU2hPhIUJQKr4LxTsVc32FeCbZ5qyO6wHkxGD/ABN4x/MfLr wqG4b6zumhhOfUwZc5Kl+72LkCHkXJGapUziYEAeApR2niivQgGFc2DCC5j/L5auL4QQ yt1g== 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=ty0gPYxWNpU2n0H7QIeSgFfwy//Cvhus3P3z45vF7Cw=; b=mW0xzCEnHLbpWvEhU4t8t1c0HzeHWhzDBdy0DXoSME1RGdNpGFJxG5h02LbFimNrHx 2hedNMLXaL82QRyJUKPDaUQ6XztR3tISFqyNGThN+cBoTPc6SvevVYUrNDFwyzUJclDK ljRHvpFEwwpbYU1GxUTcVKpPHx1ynFln/JVAzRLuhwTRkkh9kCVdYJkpQvEBgf2Z92sp jRlkTSm8r6eDWZ6+mfCqpLievCJcLFTZdJg3dAIrYiQzEob0zEXF0kQCxsbs/+bYXLhN OTzWqBx2MXi+SRrwHCHbRuP8pq3dvk01AK8asac5M0HtHa7HdfwYdtizN16bARwiCqUX 7NDw== X-Gm-Message-State: AOAM533A0UnUjLOyZIZ0oh2ajZQ0Xl9ic93+RWON2/2fLnFEvMdnDSTz DdbBgrx0HKkpRVyGTzxgA3UMM8YhlwyRVFSelRAKbQ== X-Received: by 2002:a05:6512:3e0a:b0:44a:37a6:51b3 with SMTP id i10-20020a0565123e0a00b0044a37a651b3mr20366536lfv.645.1648472177740; Mon, 28 Mar 2022 05:56:17 -0700 (PDT) MIME-Version: 1.0 References: <20220311161406.23497-1-vincent.guittot@linaro.org> <7a7e1e21-df3d-4623-d9cd-51f5272919d5@arm.com> In-Reply-To: <7a7e1e21-df3d-4623-d9cd-51f5272919d5@arm.com> From: Vincent Guittot Date: Mon, 28 Mar 2022 14:56:06 +0200 Message-ID: Subject: Re: [PATCH 0/6] Add latency_nice priority 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, 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 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