Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3526897rwb; Tue, 20 Sep 2022 00:30:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM40NvfL0PIfzS6W/vYTzrnIczKR0RoN/tHgNrp196Ebc3DkHfHFw7sVEgSSEIUheWofzVg1 X-Received: by 2002:a17:906:9bd4:b0:770:4efb:acbe with SMTP id de20-20020a1709069bd400b007704efbacbemr15981248ejc.436.1663659051443; Tue, 20 Sep 2022 00:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663659051; cv=none; d=google.com; s=arc-20160816; b=t7bKjfyuRKOHsoRQp4DW6V0PRM8yNhFcqEzQaUIvzf05nPbPFe6/2rlOShJ+sJY/jd peGjkaGxoBfsXuc05m6hTY1MiHEutm40XD6YkkGMeA3IQkKGNy3uOIAxA3CkOiPW4prT /8vjWrVNTofThAwTGpzcgHkZ73Vl/aJ5EIPnN83+5c7e2dttXU/J+tudHtcp4mmiGJj8 DJA7bHC/1VOejgVNhi1Gohn4ODESABPSDFdysX8uqOL7IOkBVNo6UFRXgZPxZv5Z7V4f wMyhbT2S92k19hy7b1BoSqfJpkspdoeX7iHqYGj1VEfl3SIinMUNRdBPqlyIfiumD6Oq XRoA== 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=ji9CecbK4eOTJliyu3DFMHnKMxpMZqmyVNQT4faFfM8=; b=qPXqFuJtCNuINU+j8VvT6EBjq3vBgcVnX18w6sbdhRo2652togyj2xFgEqWhZrk9EK LXq/kcw/8I+D05Ot745NrDCRuRhcOKavDpjwyD0oSUz0W6R/szyMWhcTjVdbfDfK3liD jDW1YuxkLOhfPMS5BvVfzm3/tZ4Y9No5ejNKqeUbE3o5Bqn2DOozalHaW2K7jhwyaVwS HT91L4KnGNlxSSMVn7WSnetnQWQgynkzjWUSPYe/tRrD4+mzppuaGsE2HA0kv6xXWdTG F+fwDnMZWdHgPevF+4OVHyBQOmrTtaTZi98xR+xQFjNFND/Q49s28b7NfqtxfAZSRNjp spFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MjnWGd45; 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 k22-20020aa7c396000000b004542d6cbc47si763513edq.521.2022.09.20.00.30.25; Tue, 20 Sep 2022 00:30:51 -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=MjnWGd45; 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 S229932AbiITHDM (ORCPT + 99 others); Tue, 20 Sep 2022 03:03:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiITHDJ (ORCPT ); Tue, 20 Sep 2022 03:03:09 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D47554A805 for ; Tue, 20 Sep 2022 00:03:08 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id p5so1812864ljc.13 for ; Tue, 20 Sep 2022 00:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=ji9CecbK4eOTJliyu3DFMHnKMxpMZqmyVNQT4faFfM8=; b=MjnWGd45Flb/C8Q0Z+ZpN1yXm6bN2TKxAIG5ptySSgbI6a+7nvVcLuEc3Fz4F48b9D wgJ/k39tblDdYjT2QLEwZn60kKuK1mXd50AVUCAn4Na20+hWiceGDIQtDozDiVLIITfH ai4yQlixC29eDXGdsbjhW0fPA9VjIkKbVo1o+zpL80NDl9/cy3kwU+Dd7wgd+67fMMMv rB638NbLSU3GzlRXx7CKXjMOicc/qelcJHRfl+BXLhe4dTNBCovaa70ECHFIA/EFLlm3 aG0hS5/VZRz8vqoJ/6t3pCHESuoc/wJ9qHq9ovkk2N/qrIgJHfKW4E7ekKuVytIdPwjV XjOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=ji9CecbK4eOTJliyu3DFMHnKMxpMZqmyVNQT4faFfM8=; b=zpHKktrqg0D6aR6FlRbeM0rtVRTvVycYTZAi641ODJIwpocwQpZ1crWIgm63ZaGIPG D0zYFqx4VnGbtdAx5/EiCjVpsL5E+GwwW/mzkzM3rTo/AmlAilvxTxC9OKQU575WVvEu yU0uW1pRmQOC9AQVNXvSemICy/amIPhrRn1EtSM4iRByf358eYk8gbMkhGYKTMZgPBos 5N5Hhh2TuFp7gXy0TehD0/02Fv/Y3GmFa3JuM33AzsQy8ZjV5oNCQuouIX7c7KeUH6dg S3nRrTY6pVVoVhE5qTS5nvBrBYcCCfhHibN6UouYQ+i/hxEmXaYaBCxL8E/BafyyRK4k flpg== X-Gm-Message-State: ACrzQf1B0qajHxoOcpW7D34X144a5aNYOtEiAuvm/kalFOFUFGNtktwa HBETyPPi2lHN1WJVhwP/aiW+nZdlbpODzbT3ENsM6sGMUrOkRQ== X-Received: by 2002:a05:651c:160b:b0:26c:252a:91a5 with SMTP id f11-20020a05651c160b00b0026c252a91a5mr6162872ljq.266.1663657387127; Tue, 20 Sep 2022 00:03:07 -0700 (PDT) MIME-Version: 1.0 References: <20220916080305.29574-1-vincent.guittot@linaro.org> <20220916080305.29574-7-vincent.guittot@linaro.org> <000c2893-feb4-373d-2234-2ca74be94714@arm.com> In-Reply-To: From: Vincent Guittot Date: Tue, 20 Sep 2022 09:02:54 +0200 Message-ID: Subject: Re: [PATCH v4 6/8] sched/fair: Add sched group latency support To: Tejun Heo Cc: Dietmar Eggemann , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.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, valentin.schneider@arm.com, patrick.bellasi@matbug.net, David.Laight@aculab.com, pjt@google.com, pavel@ucw.cz, qperret@google.com, tim.c.chen@linux.intel.com, joshdon@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 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 Mon, 19 Sept 2022 at 19:34, Tejun Heo wrote: > > Hello, > > On Mon, Sep 19, 2022 at 01:55:15PM +0200, Dietmar Eggemann wrote: > > s/valentin.schneider@arm.com// > > > > On 16/09/2022 10:03, Vincent Guittot wrote: > > > Task can set its latency priority, which is then used to decide to preempt > > > the current running entity of the cfs, but sched group entities still have > > > the default latency offset. > > > > > > Add a latency field in task group to set the latency offset of the > > > sched_eneities of the group, which will be used against other entities in > > > > s/sched_eneities/sched_entity > > > > > the parent cfs when deciding which entity to schedule first. > > > > So latency for cgroups does not follow any (existing) Resource > > Distribution Model/Scheme (Documentation/admin-guide/cgroup-v2.rst)? > > Latency values are only used to compare sched entities at the same level. > > I think it'd still result in a hierarchical behavior as scheduling is done > recursively top-down. Right, vincent? Correct > > It doesn't fit any of the resource distribution model. But it's rather > difficult to map latencies to existing concepts of resources and we have a > precedence in the cpu controller (.idle) which behaves similarly, so as long > as the behavior is hierarchical, I think it's okay. > > Thanks. > > -- > tejun