Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp714048rwl; Fri, 4 Nov 2022 05:39:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6o4Xj131MKxr+BJXOmDbF1A7HwBnxxGjTdgK/VQjo9GEMaAtcZFrhzmOH61F9Mbi5PSXXq X-Received: by 2002:aa7:ccd2:0:b0:462:73bd:3acb with SMTP id y18-20020aa7ccd2000000b0046273bd3acbmr35696134edt.378.1667565576992; Fri, 04 Nov 2022 05:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667565576; cv=none; d=google.com; s=arc-20160816; b=lSzYahpLc103feqhBjssCYmQFO6IVe97K0LiZ5Na9FUWPJvymlMfIxfKgj6mR1ztgW 1HQ+YG7m8caSHp8rsaAzMMXIF5Z4pMYQmRiS1Jh5EmQ9H+XDglFq+l0n8ZMLbUNqFYS8 rEVwlhxHJ5xQ8sJD/KUfN3jfk2jhpt1CGyGBIOkpBFRFUNOosU9hdrkN8Zv9wv7saT4v 9Tb2Q+s6N7hoSo1jdZgZkzontZADvatz726abUJ3sTq6DuR9UpsKoh/bUSUPHaHiNHly brVVC1UA3v+RsbOsmNZJebCcZRH8/KE1qEIQ4yxlH8eyJNAKkL1dm9ISnHvjpbMLDkZD uQ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KBw6r/39I5ZdX4ted0MRMCqrVaORjgimjhJ6CowDODg=; b=lI8xiHFzj8aptlPcY6X9vqsWtxe9ytQYKzaFGmJTgTttmyk7oKopqoiOrhkTweYZQk dQwpW2u1v5XvVQENS+F/vnNjIEkWEfdJrBgEL4UOnIdMT8OgyQpQS1Min2U/+o1tJbBL lSfbsslUp0Bd7tyGiJDXOR/sT5BeykZaNj0bz2CF2TBc+yqEIMp81a06o/pmnZs8lvwF AW2Ynxelv18sTJZKjTUpERrX1K8ldPAWaYnpqt9L9QQ/LpgXQNHe5APuowdP9YXCeCgm Y0L8TJpshQ41qdDDC0mduZxlwATiNqYZzOQl83lSxlyWa7dYqBoQXEx0gaiDlKaRx2Fh ZV6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q5xZXnEa; 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 go19-20020a1709070d9300b007ac60b83407si5107844ejc.725.2022.11.04.05.39.12; Fri, 04 Nov 2022 05:39:36 -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=Q5xZXnEa; 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 S231652AbiKDK6E (ORCPT + 96 others); Fri, 4 Nov 2022 06:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbiKDK5z (ORCPT ); Fri, 4 Nov 2022 06:57:55 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2B5C2C12C for ; Fri, 4 Nov 2022 03:57:51 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id z3so3488833iof.3 for ; Fri, 04 Nov 2022 03:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KBw6r/39I5ZdX4ted0MRMCqrVaORjgimjhJ6CowDODg=; b=Q5xZXnEapVLguBKftTH5xS9ORf/btiGt8a8j4JTuzlKNIlICxEKZ72BcAeq2dRtjpg FRD9ECAQ3ryxiE5HQy9bZq3jBmmnp6MUg4jTUUGCGdXHkt9v838CIuOtoYzQR8byduSb /DlueIbH6r/BUU9n5rZpHOZ8jrxjzmjjdi1VRBkmmkyH8WENIuhTTcRm9ojpgqclWiBV twBrm9lp46EOcV2Q7HoEfVPs773R2EiDW2r4LdLn+Z583EkDCEl4s/8UmQTq7oKTrjIP XjaGJTn66UOt94RYNiG63BbfpEOBWBoRxVvZZEtrq65ejICKfE8xi23osDPGgzCE2gwB xx4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KBw6r/39I5ZdX4ted0MRMCqrVaORjgimjhJ6CowDODg=; b=yWLIwIateg7BgXVJw9QrNSex6rPx3SqCw4sxgIT/zbqi3Eq9Q6llMhjU3Gck5fWLb2 bpLT4ZLqAYiK5qWLuunnkI0EESilStMPFCII325+X9Jp+lKo+b/tBjd8QOpkge+1ddOs 7QXuM58fDEoIhC3v/BZ6oO04Ge6xZNyZH/7hf4UuiVPZBVopdYoF1OpiU47KZbZjSSGT Vyme2e20o8pzNbtroTCY36pB0c3c3foSDMoxDnFHhMu6AFTa7SeG+meOLmwGUwkK6LLu T1aEoeR7/tzC3vkXEpHxKRyV8BLljzIQ3pZ9Pd2yJR43wGD9vRNM9faARNUi65bUvRJK G1ZQ== X-Gm-Message-State: ACrzQf00OjjrEZwqsp8JAovnwkJBTAC8H9idNLtdbPC5A6L1s8MWc/8B 8Tadw5yOzx4Ch6VGeTSKOesTl3Xrl8bPUJZDExiu5g== X-Received: by 2002:a02:9a07:0:b0:375:4db5:2a4e with SMTP id b7-20020a029a07000000b003754db52a4emr18497636jal.71.1667559471338; Fri, 04 Nov 2022 03:57:51 -0700 (PDT) MIME-Version: 1.0 References: <20221028093403.6673-1-vincent.guittot@linaro.org> <20221028093403.6673-7-vincent.guittot@linaro.org> <20221101192848.pjns3um7dnrwrk5p@airbuntu> <20221103142732.m5ibwkuymvhcdxkn@airbuntu> In-Reply-To: From: Vincent Guittot Date: Fri, 4 Nov 2022 11:57:39 +0100 Message-ID: Subject: Re: [PATCH v7 6/9] sched/fair: Add sched group latency support To: Joel Fernandes Cc: Qais Yousef , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, parth@linux.ibm.com, qais.yousef@arm.com, chris.hyser@oracle.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, joshdon@google.com, timj@gnu.org, kprateek.nayak@amd.com, yu.c.chen@intel.com, youssefesmat@chromium.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 Fri, 4 Nov 2022 at 11:48, Joel Fernandes wrote: > > On Fri, Nov 4, 2022 at 10:37 AM Vincent Guittot > wrote: > [...] > > > during *same CPU* competition between different groups by juggling > > > around the wakeup-preemption window -- which maybe is good for > > > Android. > > > > > > OTOH, the =E2=80=9Cprefer idle=E2=80=9D flag in android that Qais is = referring to, > > > will need a completely different method as I cannot see how a nice > > > value can communicate that (that can complement Vincent's changes > > > here). And it will need to have a per-task interface as well. We have > > > > Why a negative latency_nice value condition can't be used ? or latency = -20 ? > > That's overloading the meaning of a value, the whole nice thing is > supposed to be "relative to something". So you are being nice to > something else. Here -20 means you are not being nice. But in fact you > are, because you are avoiding hurting something else by going to an > idle CPU. So it becomes really weird. Looking for an idle CPU 1st is already the default behavior of CFS. Here we speak about an EAS specific behavior where we want to forgot the "full" EAS policy for some tasks and favor latency by spreading and looking for an idle cpu > > Also, why would -19 or -18 not be a value instead to cause wakeup to > prefer an idle CPU? It confuses the user on how to choose value and we > should refrain from that IMHO. IIRC, the 1st idea was to say any negative value but then using the lowest one can be seen as an addon to the wakeup preemption