Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D179EC64EC7 for ; Tue, 28 Feb 2023 09:10:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjB1JKI (ORCPT ); Tue, 28 Feb 2023 04:10:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbjB1JKD (ORCPT ); Tue, 28 Feb 2023 04:10:03 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A2BF14E86 for ; Tue, 28 Feb 2023 01:09:59 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id cp7-20020a17090afb8700b0023756229427so12989737pjb.1 for ; Tue, 28 Feb 2023 01:09:59 -0800 (PST) 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=JD6LFUjaCV0Y3rxiGh/Ykg8y93935IDS5wJRL1FIbVk=; b=V8ikxzfit8o1ERBDuVpWZBjCJo3dBKGAYbIiDxp9M9uCoraXVlmQhSEskvLmuayfg7 /A8wcV7Xoc0qpfJZtw6hgOyJsrSsEWnaY6cSn+3lyXcaR4wB89slxOmi+OPCGsjOAbrN QxvsRE8/q4humpPg/XxOfc5HxA9dOoJSpNo/FKyyoHQPu6t3Yz3jXs7uSmB0txyiTz0e PUi+8DPIYfsOf5AYgU8+ggxQauIYTdqvYTy8pEMolMHzGgRZoYlFxf5Gzjp17l6mhKxY a/KI6B9hkhoCTAhTmYKOpgcqM7aPi8tZ5WYPp2xh0paNZczkU7SJWbRcVLCujWEUckUj wDKQ== 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=JD6LFUjaCV0Y3rxiGh/Ykg8y93935IDS5wJRL1FIbVk=; b=3Jh+poOV4JjTI+K1r35YVn9d+0YQWuTDDceiZeF1VG3wXfPwi+hKkeIWhYieeBnz9A uwQP64UTvi1N0tZumjlF5EGblV7BP4Z3GlAwqzbrAvdOVkD3I2fXf+R+/mzNWl+zO2Ju nBNbFhFg/wenn4GUTbzFj/8TCTGTZpfNcZXSiZh67YXY/dFFtFhuQ26/iPPLb9ikR0O1 pIXH3M+dFwigG7FGCT4MCsf1RONzUGcA7tX+G0L0qnHoaqaG9yd147ntRgJg2Gw+RGPw JPsgkfat3IIM+T0II02KlBgm/sj5pUuQ0PyPxEhOsdy0rFdqZIMl4w4Gb5/AzO39t/sm BXNQ== X-Gm-Message-State: AO0yUKX1zY/7VwSdlGmVzT9e1ECA3VRj6ZKMMFYGTVPL6TJ8EC0eZ9jr URCJvLtsS0cg7vFssNLyDjxi2+7biiZzOAzkrTFC0A== X-Google-Smtp-Source: AK7set93FN2ttcQwT7EC15gr1UiM1Y8d9QHK7DcW3SPfncAiSsZl4qdnrkpo0ulu9uB0Vhpt/THDhHb+4GpqYXzPBfk= X-Received: by 2002:a17:902:e5d0:b0:19a:fa2f:559e with SMTP id u16-20020a170902e5d000b0019afa2f559emr1612340plf.3.1677575399000; Tue, 28 Feb 2023 01:09:59 -0800 (PST) MIME-Version: 1.0 References: <20230224093454.956298-1-vincent.guittot@linaro.org> <20230224093454.956298-7-vincent.guittot@linaro.org> <20230224192919.d4fcde3dwh7betvm@blackpad> <20230227144236.z6zbgsaohlz6sl7o@blackpad> In-Reply-To: <20230227144236.z6zbgsaohlz6sl7o@blackpad> From: Vincent Guittot Date: Tue, 28 Feb 2023 10:09:47 +0100 Message-ID: Subject: Re: [PATCH v12 6/8] sched/fair: Add sched group latency support To: =?UTF-8?Q?Michal_Koutn=C3=BD?= Cc: 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, tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, qyousef@layalina.io, chris.hyser@oracle.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, timj@gnu.org, kprateek.nayak@amd.com, yu.c.chen@intel.com, youssefesmat@chromium.org, joel@joelfernandes.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Feb 2023 at 15:42, Michal Koutn=C3=BD wrote: > > On Mon, Feb 27, 2023 at 02:44:22PM +0100, Vincent Guittot wrote: > > Regarding the current use of latency nice to set a latency offset, the > > problem doesn't appear because latency offset applies between entities > > at the same level as you mentioned above > > Splendid, it turned out that way (latency nice analogous to bandwidth > nice). > > > Does my explanation above make sense to you ? > > Yes, thank you. > > Thus, I'd like to propose avoiding the use of "limit" in this context and > stress the horizontal scope. For example: > > > + This interface file allows reading and setting latency using the > > + same values used by sched_setattr(2). The latency_nice of a group= is > > + used to limit the impact of the latency_nice of a task outside th= e > > + group. > > + This interface file allows reading and setting latency using the > + same values used by sched_setattr(2). The latency_nice of a group i= s > + used to modify group members' latency with respect to sibling group= s. That sounds reasonable to me. > > Regards, > Michal