Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp272388pxb; Tue, 12 Apr 2022 01:25:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgKwUXXAF4UZO8THmTARN1xl0CJZmeDrx0QxoZfJ0re8+QyFTuWXodLdEiofV9h0QnZin3 X-Received: by 2002:a17:90a:560a:b0:1bc:72e7:3c13 with SMTP id r10-20020a17090a560a00b001bc72e73c13mr3693897pjf.246.1649751925004; Tue, 12 Apr 2022 01:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649751924; cv=none; d=google.com; s=arc-20160816; b=Jh4Bk1Cqb3Q8/yxoElfhFcw0oV5liaZ4Lg/hyd/MlNYIXz2hlxcgoHoU4pFCGuyOOH CAJw7wk69B55G9HCV/DPztNDlOfjSi+k6AWeBuER9qzbbij3ESos5JlqdxD7tGotEll2 PL7GfwzTdtBIn4Msvb3g6XMs/ZROE/oon+Xk6E9qF91bOUcbyyqTM3hVGSwyb1gitQkH 3cNwYeKye+tEzyyMCJGyPY8rowSHYXUntoNiZwDu5zmWCqhkr3jLKfOCnr1V1a+q0VTd i9LvEYQj7MIGYjh57YxTtONU9LZqn4WYnqlKYVXb/vkdkmhSslhV3H1uqWYiJsnrinAm PBMA== 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=DCizahI22iIFGiLOZD5DNvVNsX+gXun47dglVgPNMZ4=; b=thpDPShF7pTauJGGaQvihxA7hCicCKcwqlKzyfBg2/4Yt8PaC+EA8IP0GR4MaTMFj8 vOKOKmjgKw8jLLfu4tsjn4QrpioiDQvy1DV4fORHiQ+2Yo2DeN8xci5SQ/VtYT/f0QQh eVMfRgtnm5TBo6o/RZzLW/LxC7INHmu0P90txyhdtXEbAkNM9OWayVt3wb6LgfVqtjBb TQ7408cTF1E7rcjqsxiuG56xohq/p1Fn3SRkkPGn5BGZQnRkYdXTTnGeQzdUqg3cK+r7 wtLR+PzRT2y8HxpXKlQ76PTUHRrSKstAFmLuhuCq4YMb1WGBmZLNsqD9wBioRqfhc6vB o3NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VgaDcEqm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v8-20020a056a00148800b004fdd5c07d29si12423661pfu.77.2022.04.12.01.25.12; Tue, 12 Apr 2022 01:25:24 -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; dkim=pass header.i=@linaro.org header.s=google header.b=VgaDcEqm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241143AbiDKH2h (ORCPT + 99 others); Mon, 11 Apr 2022 03:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233010AbiDKH2e (ORCPT ); Mon, 11 Apr 2022 03:28:34 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B5A53B540 for ; Mon, 11 Apr 2022 00:26:21 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id j2so25969716ybu.0 for ; Mon, 11 Apr 2022 00:26:21 -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=DCizahI22iIFGiLOZD5DNvVNsX+gXun47dglVgPNMZ4=; b=VgaDcEqmMcEcE1ceZMEuOoXxj10rwMNqMWLACbgHKz9TPWLFTqZluaSEncQlaCu6p/ fuqYskPKCtXP+tRelsRX02072M7dlhWcr7lpIEC3EsSR40w5QGxQC8HMsLs/cxIm6qnr KRUsNvTIe3zqy1bi6+bC6PdV2Z/pCxhaZHA/yPpwntee+Ep0X+Kj7vT925YEQTtMdBzS urdjO1yP5ElzjHL1aiimfIUvns6t5bY3qUQz4Bj9CE6cpT/URHSDRduvNLwMJPTjdmKX 0G7R7YlriTgHEJp2EXFiPFioidLFyCHnEWeBrqHyby906gZPit3cyS2Bag+ctoX07Jho Sevw== 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=DCizahI22iIFGiLOZD5DNvVNsX+gXun47dglVgPNMZ4=; b=sqoZGosyNl2Hbs9iAIxygxO7KuR8AmJCxxPRfHmqsl62+ZOxx/wreEwSEgLMVvLztI k7lhz0kBMuZM13ogxDvbeJEz4c8ZlORPXEC1USxFYE8Yk5oOv2ux8S5NbZZE+e4j6INK MjIOeJmTgWmPhrfTbB1K6v/34NrGrvdHLPF66M305cispGtyV2n1i0GHrTM8UZx2zGBD GA4DjLIlObEjpIFCYOkXvts6dxPk/OZklR+h0BcBwjNg7WeB6YFI1y2u5tlI/+IIEA2I l10c7UvXSn93TyH3zRGDdrY4ucvN/lFWXTB9/rZdP33EDypRFpuYRcReOrAzNEstAZ0Y +s/w== X-Gm-Message-State: AOAM530FLujmEOoVc0akBMiCt9bQnGPF0hbvUKCBZI82Rlniy7QXmWD5 ymEnToj+iJsx00VHzTOQ9LKUwfmicLinynF0yPSJvQ== X-Received: by 2002:a25:d80a:0:b0:641:38dd:2f4c with SMTP id p10-20020a25d80a000000b0064138dd2f4cmr4580482ybg.225.1649661980463; Mon, 11 Apr 2022 00:26:20 -0700 (PDT) MIME-Version: 1.0 References: <20220311161406.23497-1-vincent.guittot@linaro.org> <7a7e1e21-df3d-4623-d9cd-51f5272919d5@arm.com> <20220401121525.flngciwjtkn3mwlv@airbuntu> <20220409170841.upcimeak2ch3aj35@wubuntu> <20220409132829.16b03d69@rorschach.local.home> <20220409181036.v4mm3q2rotctbxb3@wubuntu> In-Reply-To: <20220409181036.v4mm3q2rotctbxb3@wubuntu> From: Vincent Guittot Date: Mon, 11 Apr 2022 09:26:08 +0200 Message-ID: Subject: Re: [PATCH 0/6] Add latency_nice priority To: Qais Yousef Cc: Steven Rostedt , Dietmar Eggemann , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Sat, 9 Apr 2022 at 20:10, Qais Yousef wrote: > > On 04/09/22 13:28, Steven Rostedt wrote: > > On Sat, 9 Apr 2022 18:08:41 +0100 > > Qais Yousef wrote: > > > > > One other corner case to consider if you're working on next version is what > > > should happen when there are multiple tasks of the same priority on the rq. RT > > > scheduler will push/pull tasks to ensure the task will get to run ASAP if > > > there's another cpu at lower priority is available. Seems a lot of complexity > > > to add to CFS, but at the same time if 2 important tasks require low latency > > > are on the same rq, one of them will suffer without introducing the ability to > > > migrate one of them where it can get to run sooner. > > > > Instead of having the greedy algorithm of the RT push/pull logic, how > > hard would it be to have the load balancer know of these tasks, and try > > to keep them on different CPUs? When two are queued on the same CPU, > > Oh yeah I didn't think we need to replicate push/pull. Load balancer will need > to know about it when it moves task so that it avoids placing two of these asks > on the same cpu. > > > could it be possible to just trigger load balancing and let it do the > > work? > > I think the other part will need to be at wake up when we decide the CPU. > > If we trigger the load balancing instead then it'd behave like a push/pull? > > All these paths are already complex though. So we need to carefully analyze the > trade-offs. Maybe we don't need to deliver such level of service after all. It > needs more thinking and experimenting. I will consider this for v2 but we have to take care of not adding more latency by trying to find a better CPU. As you said this additional behavior will need more thinking and experimenting Vincent > > Thanks > > -- > Qais Yousef