mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] cgroup, docs: Clarify interaction of RT processes with cgroup v2 cpu controller
@ 2025-03-05  4:12 Shashank Balaji via B4 Relay
  2025-03-05  4:12 ` [PATCH 1/2] cgroup, docs: Be explicit about independence of RT_GROUP_SCHED and non-cpu controllers Shashank Balaji via B4 Relay
  2025-03-05  4:12 ` [PATCH 2/2] cgroup, docs: Document interaction of RT processes with cpu controller Shashank Balaji via B4 Relay
  0 siblings, 2 replies; 13+ messages in thread
From: Shashank Balaji via B4 Relay @ 2025-03-05  4:12 UTC (permalink / raw)
  To: Tejun Heo, Johannes Weiner, Michal Koutný, Jonathan Corbet
  Cc: Waiman Long, cgroups, linux-doc, linux-kernel, Shinya Takumi,
	Shashank Balaji

Currently, CONFIG_RT_GROUP_SCHED is practically unusable. If enabled,
the cpu controller can be enabled only when all the realtime processes are in
the root cgroup. This has been clarified by Waiman Long in commit
20d4628 (cgroup, docs: Clarify limitation of RT processes with cgroup v2
cpu controller): https://lore.kernel.org/lkml/20240320142302.1790171-1-longman@redhat.com/

But this limitation does not affect any of the other controllers:
irrespective of CONFIG_RT_GROUP_SCHED, the other controllers can be used
for the resource control of realtime processes. This is made more
explicit in the first patch.

Even when CONFIG_RT_GROUP_SCHED is disabled, the runtime of realtime
processes is accounted for by cpu.pressure, and the usage_usec, user_usec,
and system_usec fields of cpu.stat, and cpu.uclamp.{min, max} affect
realtime processes as well. This is documented in the second patch.

Signed-off-by: Shashank Balaji <shashank.mahadasyam@sony.com>
---
Shashank Balaji (2):
      cgroup, docs: Be explicit about independence of RT_GROUP_SCHED and non-cpu controllers
      cgroup, docs: Document interaction of RT processes with cpu controller

 Documentation/admin-guide/cgroup-v2.rst | 41 ++++++++++++++++++++++-----------
 1 file changed, 27 insertions(+), 14 deletions(-)
---
base-commit: 9b381a28f44a49b92b03bb3982728f9cb67ee225
change-id: 20250226-rt-and-cpu-controller-doc-8a8aac572f3e

Best regards,
-- 
Shashank Balaji <shashank.mahadasyam@sony.com>



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-04-02 12:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05  4:12 [PATCH 0/2] cgroup, docs: Clarify interaction of RT processes with cgroup v2 cpu controller Shashank Balaji via B4 Relay
2025-03-05  4:12 ` [PATCH 1/2] cgroup, docs: Be explicit about independence of RT_GROUP_SCHED and non-cpu controllers Shashank Balaji via B4 Relay
2025-03-05 14:13   ` Waiman Long
2025-03-05 16:15   ` Michal Koutný
2025-03-05 18:44   ` Tejun Heo
2025-03-05  4:12 ` [PATCH 2/2] cgroup, docs: Document interaction of RT processes with cpu controller Shashank Balaji via B4 Relay
2025-03-05 14:16   ` Waiman Long
2025-03-06 10:23     ` Shashank.Mahadasyam
2025-03-05 16:19   ` Michal Koutný
2025-03-06 11:02     ` Shashank.Mahadasyam
2025-03-10 17:14       ` Michal Koutný
2025-03-28 10:45         ` Shashank.Mahadasyam
2025-04-02 12:49           ` Michal Koutný

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®