Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp2498575rwl; Sat, 5 Nov 2022 07:38:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Ol+T4eLF//sknBq+ZTIgZVLcm02Pcw2igBlJaG1N1fUTf+F0DjN/KuLJz5QPVkB6HroTz X-Received: by 2002:a17:906:6a17:b0:794:f0e8:1918 with SMTP id qw23-20020a1709066a1700b00794f0e81918mr39955049ejc.474.1667659090834; Sat, 05 Nov 2022 07:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667659090; cv=none; d=google.com; s=arc-20160816; b=wJwFWZlamksDTM/UBxvRbyCv9AGYDemkCkPyuCSCDtUkgIl8ghwL7U0y63UqRF9IaQ Cg8Ok6KQaopdqALUcxzipPhUCGVSNUBu05VHPx9krLpWBZhofbdcQUF6iq6gWCztH9pZ 4+zrYgrNnO2js71mBtg4SLT6pc9xidmEiXjJgyrrhZ9pMtjlqAGhmSSqlmmIdKX94I/U Sqo/K0yqBaN28F53I8EZf8+zPp8Ce7n47fYpV0V+araaAohsuw8glLE/jvZdsfcTi+Pu TLokSL+gevOrVVGSXWGxotQvdv9oFHXvITxZ3nvMX4AhW1AibVoqz/SqZTgKhC6aKo0H mhIQ== 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:dkim-signature; bh=PB/Mt5Tmc3kHHxMgRkRCJicdnQJp5BQg9tZBqs78/fw=; b=wtbhj74YYgj1yq3ckRsIJbL/zgP4U3Amokdrb9eNITv51anOkWzx6XvVhCW832fBmy jqg+UQxYdiVrcFtwujkHEr6tpVeHoh51otPbppacP7bcVVCKRqqZtYuW4DKVZ5G75wJI VACzb27gc//HUrz+TGw7GgFZsW/Ci6TrygGNdudWgTQV0Qg+iAu+3jl4zIpx3brigLOc 3pfkcG09DgYxiQl+/tVZ9V4/P1YpqTX1BKrEqBYhVCKEHhV4f6Rxep8ict8n54nT/eIS FuN4U9vOhuSpB/5kRW3l80VzcLn9O4mNKE7tLvskrq9SsOkjIDdM94Rxy+uTQuzDyXJk 1asw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@layalina-io.20210112.gappssmtp.com header.s=20210112 header.b=vUDCNQ47; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp23-20020a1709071b1700b00782a5657512si2877429ejc.416.2022.11.05.07.37.46; Sat, 05 Nov 2022 07:38:10 -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=@layalina-io.20210112.gappssmtp.com header.s=20210112 header.b=vUDCNQ47; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbiKEO2t (ORCPT + 97 others); Sat, 5 Nov 2022 10:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbiKEO2s (ORCPT ); Sat, 5 Nov 2022 10:28:48 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 235786451 for ; Sat, 5 Nov 2022 07:28:47 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id g12so10510060wrs.10 for ; Sat, 05 Nov 2022 07:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=PB/Mt5Tmc3kHHxMgRkRCJicdnQJp5BQg9tZBqs78/fw=; b=vUDCNQ47SnOGtVNhzGjgDTHG8qPBb5que/aZA4QH3l0CAUnvihmmTTKiF23sNjeLDe L8sB/78iX2VufQyfpKMJ0LUt/PWpmkWXtVKZdTjsyyKVKz4YwG2F5uJhi+T1+rgtghWO 0lIM7C8URLIl9t/APgjif8vrFiiktoLnCeUpbwVxp7L/1U+Z6TF8aibqt/Exc87IutJl ScECC8GhkYhOkholmIwBPBJuAK9PxSBrN4XnWMkKuGI+CAc3AhbxquJwqP7/rZC0Uy4k 2T2tUsTPKcAb8fyENGQON37VO/W0B/HQmQK3T1IxTRdHO85lFLe5MebGzhuKbdEwM9LG gemg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PB/Mt5Tmc3kHHxMgRkRCJicdnQJp5BQg9tZBqs78/fw=; b=SmwpaYSf4eQKKzWeoZHl5H4NKYAr8MbBacRAUdMjXtYnvI8R5Pjg4usTWFlUXj0A/L NK7jGNIlV+ZSNP/MSZ1IeSPkLYrsac+DGn5wfXKwZLklkdEPLJbYqu3+LL0aN8AboSSc nQQxQsdo2hddUViwB367iMvDWysuXiaQbGWW5uR8xmEmrV340DHIai6dNn+V4zCPtKHj b2fLRHDwlf2h4JQdloPoiZ42o5mBsdlPd28WHxYCVTT+5/pCPHJYfIQ/x8RofEWmSibj F2GHZYZ3vyn2N+ML4vxB9bBX2n/3GnAoR/DWoGwcG8jlkmYDnpoL+DXuUCyD4lzS94l4 JYXA== X-Gm-Message-State: ACrzQf0MXpox0A56kvjBowu09VjCcbL09kggTK+AE2UlV4XRA3dBiaYJ T8KN9yGI7/mlo3AdW2NU62vq0Q== X-Received: by 2002:adf:f5d0:0:b0:236:5866:eefe with SMTP id k16-20020adff5d0000000b002365866eefemr26906897wrp.339.1667658525642; Sat, 05 Nov 2022 07:28:45 -0700 (PDT) Received: from airbuntu (host86-130-134-87.range86-130.btcentralplus.com. [86.130.134.87]) by smtp.gmail.com with ESMTPSA id g12-20020a05600c4ecc00b003b4fe03c881sm6407029wmq.48.2022.11.05.07.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Nov 2022 07:28:45 -0700 (PDT) Date: Sat, 5 Nov 2022 14:28:43 +0000 From: Qais Yousef To: Joel Fernandes Cc: Vincent Guittot , 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 Subject: Re: [PATCH v7 6/9] sched/fair: Add sched group latency support Message-ID: <20221105142843.xz663q7fcvzsntw3@airbuntu> References: <20221104112138.hlnwjmw2ls4gswuo@airbuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 11/04/22 09:13, Joel Fernandes wrote: > > If I have a task that has p->latency_nice = 20 but it belongs to a cgroup > > that has tg->cpu.latency.nice = -19 > > Just for the task placement signal, One way is to go through the se hierarchy > till the root and get the minimum. Then make that the effective value. So In > your example that would make it -19 so prefer idle = 1. We should need > a Boolean signal. Not pretty but not the end of the world imho. It is not hard to hack something. My worry is about consistency; and maintainers in the future saying that doesn't fit the current design. I'd love for this to be usable everywhere as-is. That requires the expectations for both users and consumers are being made clear from the beginning. What I was asking for is for the documentation to reflect this, and the implementation of this effective function being made available from the start. Cheers -- Qais Yousef