Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3008323pxp; Tue, 22 Mar 2022 10:09:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKcw5HCVThTCA/Kb8mYMqu5K+n3BPhfPjKdPFyq+OoTh94qc+4/QfK8czccNUpujUyV+oM X-Received: by 2002:a17:907:9506:b0:6da:b4cd:515b with SMTP id ew6-20020a170907950600b006dab4cd515bmr26835594ejc.602.1647968968185; Tue, 22 Mar 2022 10:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647968968; cv=none; d=google.com; s=arc-20160816; b=QtoXQMX8lgJZM+V9597c0W/1nbRVIB7IoEY3TISHM18ClGIx5Eeduas8jWeiu8KT/4 3pik2JuAAMtd7JoJoYiG5KyLdQEC8ueoTePynWdetGVZX1jhIDh/UMc1gk+R3jbzc2Mb AtgkUGCpNMOaUOHNKD4Md1lf/DP47giSKU8aKb5XIqlJa9FjiHAdcXNRlFquH8V2iDqv SFlPUMTIgoOGE4zxFdbjViqjtNRcvGlMzkmaM8x758RZNCyHXLRHDWdxQ9Y6AE+r1iyo BsEpFOioKyvzxkcN2jCjEuIdkcDfyrplAoORvGSZBBO1cKuIjFlI9p9iy5pw3QrW8VgE N4vA== 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=3OJI0RmOHgLzwXqCzU2LAM4gTSaQuoMgdbBB+V0QYV0=; b=cbHjh9tDGI+rINQxlpOax86tgBfZX082HWAid3ztdJU/ZefHohz7mUKvcm9WoM9r65 DE+Q3x1Hd7m6rMFtvCr0wSEy+Yct0l5hrVhF8ftDG3iGuWt6flc2y0PvC0ZGEyEXC/1H yEiV3/0ughh+V7MAKUjHEH90hY6t1N+sMysXkL30yeevpPK+p1VyqrCNoXOaj8dPytfx 6tbSsqHheX2JvkG3r+lsXILAY2GeQqYQeurxrLabR7/YLD11EbRsG52ci0HtQUgRVzQp e+BY5JCB0ZORa2h252NgU/99KgwxxRIRn1ce71cwFINMQKauKGExdP0HaptNsu9qf8Kx 7fyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nDokgy2x; 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 14-20020a170906028e00b006df76385e53si9497424ejf.755.2022.03.22.10.08.57; Tue, 22 Mar 2022 10:09:28 -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=nDokgy2x; 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 S238281AbiCVO6z (ORCPT + 99 others); Tue, 22 Mar 2022 10:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238294AbiCVO6x (ORCPT ); Tue, 22 Mar 2022 10:58:53 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C55408AE59 for ; Tue, 22 Mar 2022 07:57:24 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id w27so30263397lfa.5 for ; Tue, 22 Mar 2022 07:57:24 -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=3OJI0RmOHgLzwXqCzU2LAM4gTSaQuoMgdbBB+V0QYV0=; b=nDokgy2xQaPO4m12Ar1r8ltnpEIVvSpjlVOeM/Mq0XKMcDULK4aKpZM/En9btUbKSy 3SjLEU10gB6ydeglw5nwd6Er3AvBY4o3HzHE5UGPJjtbWxw0NPbC/C3Idl2qOQaPo/DH +N1Kt82UNG2oeGxu6u8SqPwoFkIJoRsx8l4Y8mjKYuD+E3Y3yGS8zRl75oloyvkvAvJM qcJyIrWX9u/aji3bWxCBnfxpGfCDzpa6VaQHx8l4405Jvxl/qXgpfp4wcockdZPulHux L37DqCeIMqD7d/QhmEDpmkUlAvOD12gloovOABW8Jy6vNWvTy+l1Z9fcfq3KKQLgTqCJ bDbw== 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=3OJI0RmOHgLzwXqCzU2LAM4gTSaQuoMgdbBB+V0QYV0=; b=oNn9IuHZ/4mUE2A01kDNgXqXnvVFp4P3clLW5ncVXsXSCpaYt7R9e62jRBERRZEO4K 3RArYwABc4VOylFtZXXInSxeBggxkPU8VCY4N/QpghESmrm9eFGFeNcatZ2Z1OzcufL+ ixCaqmAB8Fd9VjN7Ur4yYNPulomzynQnYowfaSM2io+DeCgJt0SYRikSjUI/4qH5ANqs 1/RADVzEUPJM5yOcttKVVdqzu8xVc/Hl4pwPey6q8NlPnRA6aBA0WhzmDGz6on8lokdi e9ENkJoh77tCaVo/tT0JhHqIdo6Fh4UIlS+H2g4V41QiYzTDAeJE30Yia0pFsuv312cp E/zQ== X-Gm-Message-State: AOAM5324AZRReRMGpbfkZPYvHQhbUmhJ1pFuWpVXzWHiIQ96MupRrZ+Y OSLk4YXAW1H7OcadyNzSq3JtOVnc6fQHNhNAjEkz8w== X-Received: by 2002:a05:6512:690:b0:44a:30d6:fb1c with SMTP id t16-20020a056512069000b0044a30d6fb1cmr5916119lfe.430.1647961041120; Tue, 22 Mar 2022 07:57:21 -0700 (PDT) MIME-Version: 1.0 References: <20220311161406.23497-1-vincent.guittot@linaro.org> <20220311161406.23497-3-vincent.guittot@linaro.org> In-Reply-To: From: Vincent Guittot Date: Tue, 22 Mar 2022 15:57:09 +0100 Message-ID: Subject: Re: [PATCH 2/6] sched/core: Propagate parent task's latency requirements to the child task To: Tim Chen Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.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, dhaval.giani@oracle.com, qperret@google.com 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 Tue, 22 Mar 2022 at 01:22, Tim Chen wrote: > > On Fri, 2022-03-11 at 17:14 +0100, Vincent Guittot wrote: > > > > Signed-off-by: Vincent Guittot > > --- > > init/init_task.c | 1 + > > kernel/sched/core.c | 4 ++++ > > 2 files changed, 5 insertions(+) > > > > diff --git a/init/init_task.c b/init/init_task.c > > index 73cc8f03511a..2afa249c253b 100644 > > --- a/init/init_task.c > > +++ b/init/init_task.c > > @@ -78,6 +78,7 @@ struct task_struct init_task > > .prio = MAX_PRIO - 20, > > .static_prio = MAX_PRIO - 20, > > .normal_prio = MAX_PRIO - 20, > > + .latency_nice = 0, > > Probably better to use non hardcoded number here > .latency_nice = DEFAULT_LATENCY_NICE; yes > > > .policy = SCHED_NORMAL, > > .cpus_ptr = &init_task.cpus_mask, > > .user_cpus_ptr = NULL, > > > > Tim >