Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp789670pxr; Mon, 11 Apr 2022 07:18:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxYDGBNk8qAFG3Js55GRWFbzva/oPqPhI4wHZRx/yYMFjVZwpF5c6/4mvwwZIuYxDbh4xS X-Received: by 2002:a63:441c:0:b0:39c:f6c5:d25e with SMTP id r28-20020a63441c000000b0039cf6c5d25emr13977333pga.63.1649686682567; Mon, 11 Apr 2022 07:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649686682; cv=none; d=google.com; s=arc-20160816; b=rinQ7Uuw6qOij+DSvLXrJhNKX1DA6rxeRsmCQ6suRsNViZLOVvoxaNvr97HtrReLo4 avOwZO2KTj6VuXjB9tJZFCLTTWnIyW5f33Yh4g6hQyj5Wi4YAhCmk5gqqe3RuYCnVW+F dJT+hhezM4iMrZJvZLhjg5ehNBI876gkT9AdY6MXtVsJB8veBQIqE6yRDhpa0ci+Y0OB ZHy9hFNiGxvdA/LehePoOAfMD60f3CZg2Q86cqRBew62lgeaF/Z7reDG7wAcNxJKieIB MOXTV66dbFFoWgM3Bpe6Q4sJTc3Jpa2sm1hZq+Xp8YkPqYhq3XRuvLieXuoOeYnO7hZX yvXQ== 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=IECbXq2dphlBi7qRxzBHxalSY+yMVf/Ljg0yBR1ohIA=; b=g1m+Z3wC6sPR0lJhx9jowDgESBrg1VDPoW1tKJ2bmDHo+hg/xzfnt71KQS7Ixy3F2I sU75vwfunpaG5LFcuNwS+f+FUib3XH2+QAzt1cySWLvRdzmxrZuefiwuSlP9OODqmExD 7JZLjB8Dwa1X/CA/6tJzJ1GSiSh3zdLuVsSo3GhBUY74oDkXNBXD8A93bVDZNOBmHn+F Q+4OGg+vUkqE63N95k3G9xf62i6xuiOQSi1v2P+8LnNzTx5s07TTsL+1/Fl0omGPQClA 32K6c0IvjoUbFKqaUi9mBAkysnEOAa5uLUIX0EUlDlGv+YLXxBtzoGXY7e1V//DWJ26w FKGQ== 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 c22-20020a17090abf1600b001c6855ece3esi12191303pjs.108.2022.04.11.07.17.47; Mon, 11 Apr 2022 07:18:02 -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 S242980AbiDISNG (ORCPT + 99 others); Sat, 9 Apr 2022 14:13:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238956AbiDISMy (ORCPT ); Sat, 9 Apr 2022 14:12:54 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 86791AE4A for ; Sat, 9 Apr 2022 11:10:41 -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 F1354ED1; Sat, 9 Apr 2022 11:10:40 -0700 (PDT) Received: from wubuntu (unknown [10.57.74.236]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 48DE63F718; Sat, 9 Apr 2022 11:10:38 -0700 (PDT) Date: Sat, 9 Apr 2022 19:10:36 +0100 From: Qais Yousef To: Steven Rostedt Cc: Vincent Guittot , 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 Subject: Re: [PATCH 0/6] Add latency_nice priority Message-ID: <20220409181036.v4mm3q2rotctbxb3@wubuntu> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220409132829.16b03d69@rorschach.local.home> 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 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. Thanks -- Qais Yousef