From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=90.155.50.34 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796046329; b=Ra1FUTrYReSoz94HTDxZPO+n+6kZqxnOt3J/xuuZi+KTnFYNK/E7YHp8IvKXZmTzGYju uXTIf8Lrnuh55ygrSOCjMHAubFC8xOaCTTmHqk98JbVU4kxvpYVXUVyZTdDGOH8WoKSAn QiC9FyBu76X5HDWMuvnHDJFB2jqt7WEhR+UP69599l5bVnzubJsFwOXu51aC8PysKSxSu WTLXcLJP1aWeQxA90vDCZZ9eyKMAPK/SzgDXVWbDMVdh5duk7PHjkgfH+rl8R4mQRnir/ WGHBQNbdoRPxRP2kA4FjJKGzkd1v/7nT3jb3l1vk0U+LXwPAe3mMqSM2kgBcnWfhoVQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796046329; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=UaBAN1BvQ/xEXTmlSKDPZlGPssMoyzq8UTa/Z7iI2kY=; b=kY6EF75Oaz9ciecaFwCnuovN5XN3wTIx+J1wEwzFomIq2zDZwuHlLdQY/SRVE/71UhZ+ p8DCu4wjo8ucT3vDxJNM9SiO853knnmS37bJbiUSIM8K5TrP59ZB+6Z2yUI9v2a3pOjJo WnD15yu/ubg2OKYA9MTddlLbBhjTlJXaDcUKomoW/YJp7s5ZF+GjE16WNDwIgD1Slktrx pL2mw4AMCSjOBtjseeD2YU9QCx15ng7CaoPZHozmu5KK2unYV1Xpd9kC2sful9D//CMYn zRLxfNotQaaFBthwEo08yzLqJm1aE24rspY/rvYwFsdObT6XLBV4fmj58QHGvzYBpDg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=HKR3M9d8; arc=none smtp.remote-ip=90.155.50.34 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E070606A329; Mon, 30 Nov 2026 13:45:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0E070606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=HKR3M9d8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UaBAN1BvQ/xEXTmlSKDPZlGPssMoyzq8UTa/Z7iI2kY=; b=HKR3M9d8k+viN/JvPegtxBqAVn rGo+6KUS9kRY7YljRdE/vYBkKnbo9O24XEEpNlco+cVxSc0aKpqaFRKfss2exR22KgGZ19TXsPSm8 KZDS6LXDkrvY/axYbzeRYgTdB/sFXRATO/HbAOE4ScDP0EgpP05rRkXVzOUG90uqp3+s0HR9B6buk nYfVU7vpFrTJzv6xKGTLE1qdXdVZOf5OISs3lAUQtxDI1DPdQeThB8rxr0S1MJUrmiMT42KkT9dIm olJJUjPBKy8j7c2R2Hp0V9zv/ljLRxsDyuVbgXq0jnKtz/UXQO+ujzergk/OHpfhQZcpKAulHy01h P8C54g9A==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY1h4-0000000ESN6-3yVB; Mon, 30 Nov 2026 13:45:23 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 7FD093011E4; Mon, 30 Nov 2026 14:45:22 +0100 (CET) Date: Mon, 30 Nov 2026 14:45:22 +0100 From: Peter Zijlstra To: luca abeni Cc: Juri Lelli , Tejun Heo , Yuri Andriaccio , bsegall@google.com, cgroups@vger.kernel.org, dietmar.eggemann@arm.com, hannes@cmpxchg.org, kprateek.nayak@amd.com, linux-kernel@vger.kernel.org, mgorman@suse.de, mingo@redhat.com, mkoutny@suse.com, rostedt@goodmis.org, vincent.guittot@linaro.org, vschneid@redhat.com, yuri.andriaccio@santannapisa.it Subject: Re: [RFC PATCH v7 00/29] Hierarchical Constant Bandwidth Server Message-ID: <20261130134522.GF2668564@noisy.programming.kicks-ass.net> References: <20261119151416.33f90a64@linux.fritz.box> <471bf8d446becabfca00041fb2a78067@kernel.org> <20261120120659.2e902463@linux.fritz.box> <6fef47e08a37079c08806b3c57994778@kernel.org> <20261120212418.10221f2e@linux.fritz.box> <06f4c157677f99fc5386dba4c9d68cd2@kernel.org> <20261123084345.4e24e3ca@luca64> <20261127114828.GS49833@noisy.programming.kicks-ass.net> <20261127160926.20090712@linux.fritz.box> X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261127160926.20090712@linux.fritz.box> On Fri, Nov 27, 2026 at 04:09:26PM +0100, luca abeni wrote: > > Without this, you get to account every cgroup to all CPUs, which is > > incredibly pessimistic; to the point of not actually being worth it. > > Yes, this is the first part of Yuri's patchset. In the last patches, > however, it allows setting the dl server parameters per-core (so, it is > possible to set runtime=0 for all the cores we do not need, avoiding > the problem you mention - if I understand well) This makes no sense to me; we have this exact information in the cpuset's cpumask. Duplicating that information is wasteful and error prone. > > As to the whole max thing; am I understanding things right if I say > > this means the cgroup itself will not have a constraint? I saw talk > > about one cgroup having mixed constaint and no constraint CPUs? > > That's crazy talk and makes absolutely no sense. Please don't support > > this. > > I do not like this mix, either. But I think the last example by Juri > shows that this kind of configuration might be needed (and we do not > want to end up with something that all the distributions will disable > because of some interface issue :) > > From some discussion, I reached the conclusion that this kind of "mixed > configuration" might be needed only for non-leaf cgroups (and that > these cgroups should probably not directly contain any tasks), but I do > not know enough about cgroup-v2 to be sure... I am not at all sure I understand. I see the need for the 'max' thing, eg not having a bandwidth constraint -- which then ends up running the tasks in the parent servers. But I feel very strongly a single cgroup must not have CPUs of mixed max and !max setting, that is lunacy.