From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32F6D47DD6E for ; Tue, 5 May 2026 14:59:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777993169; cv=none; b=Gj3lBbep8yXta5vvEbTi/Paocx7GWpakR99sgj7IsqjVJ0wtCG4ZqXY0J4/Gsqd/LGZt4gP8/9WnAtw4CGKfVeI0OQNSI+JgdyiMaFZXpUnOKB2jyiGAzJNNyP+nuoGHopJjuEXa+m/wtwXAjmuhn/tPCw/a+D+durxu3MtpXGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777993169; c=relaxed/simple; bh=y1VDKroafMO/pp/qczFrofdXfn3TEInXIHV5yZiNX4Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NKiTxIH2nMYjm0d9IJsF925fbXCfaUv+FBn7SuZW0J+E3G8om7wXG5w1yB75WEex3Mpz4yIsMEy2nkkPyITDjpGgABsTcfs+nc/2UJldn616yAucI+PUFEu0BRpvxuG6Lz8z2IivWKL6Da8MlwCyhLdRSiDxhg9qu2Kr6lHatCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=UoVEF7Ih; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="UoVEF7Ih" 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=ZypupAU+D95SJgcz1yxkU8mfCJ7eYReaEdqXSf3Z3ao=; b=UoVEF7IhCUKzH6Tz+lAGp9lw/d Ys4w6eTJvxGxWi+8YarrtYictvCHxW92u3wrsgPL86Nl1OW01TfX9tWR3pDlUOrfI50ZuA9JL9iRU 13NpvgtmzZPa7KGHr7ZGzg6hikNP5KFFeUTAQoyBdUZv6rqnu5V58O5U/iuhKlEYPKjkpfnniD56x QQzJsAKYqjX3+36Xuw9+ops7NB7la1+vu/Pcp5mzoKMILq/c6Sk2ah4JIMMiccxrzAG30hYW1TXRx Zck9OIzG1W1WeXicri+tcsmaOoU+OaE4qsDPnOgkwuLuKIsRrcs4UdBrJkzRgsrocQle7JwT4hH3m 73MDhdZA==; 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.98.2 #2 (Red Hat Linux)) id 1wKHF5-00000002vcq-0FIH; Tue, 05 May 2026 14:59:23 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 94E97302EC2; Tue, 05 May 2026 16:59:22 +0200 (CEST) Date: Tue, 5 May 2026 16:59:22 +0200 From: Peter Zijlstra To: Yuri Andriaccio Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , linux-kernel@vger.kernel.org, Luca Abeni , Yuri Andriaccio Subject: Re: [RFC PATCH v5 18/29] sched/core: Cgroup v2 support Message-ID: <20260505145922.GD3102624@noisy.programming.kicks-ass.net> References: <20260430213835.62217-1-yurand2000@gmail.com> <20260430213835.62217-19-yurand2000@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260430213835.62217-19-yurand2000@gmail.com> On Thu, Apr 30, 2026 at 11:38:22PM +0200, Yuri Andriaccio wrote: > From: luca abeni > > Make rt_runtime_us and rt_period_us virtual files accessible also to the > cgroup v2 controller, effectively enabling the RT_GROUP_SCHED mechanism to > cgroups v2. Can we have a blub about why only strict periodic servers; eg. why no sporadic? and such... > Signed-off-by: luca abeni > Signed-off-by: Yuri Andriaccio > --- > kernel/sched/core.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 0c7032d254ba..3ffe3ac5071d 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -10245,6 +10245,18 @@ static struct cftype cpu_files[] = { > .write = cpu_uclamp_max_write, > }, > #endif /* CONFIG_UCLAMP_TASK_GROUP */ > +#ifdef CONFIG_RT_GROUP_SCHED > + { > + .name = "rt_runtime_us", > + .read_s64 = cpu_rt_runtime_read, > + .write_s64 = cpu_rt_runtime_write, > + }, > + { > + .name = "rt_period_us", > + .read_u64 = cpu_rt_period_read_uint, > + .write_u64 = cpu_rt_period_write_uint, > + }, > +#endif /* CONFIG_RT_GROUP_SCHED */ > { } /* terminate */ > }; > > -- > 2.53.0 >