Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1551594lqt; Wed, 20 Mar 2024 07:23:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKdieNhhAnKR1qL3SPjPLJir/aYtTae6rvHrL5lAiJVxN409JWplLFRhP0ZYFREaCyz2FvaePkqeLTinxQCnWxa0sXgcul4HH+Yt+fCQ== X-Google-Smtp-Source: AGHT+IHuLx/B/yo3gldgu5vNvbeIy9mZcrNJJd/o5WAi4SctfN3skWg4ES1oCVppkD19hhHY62qh X-Received: by 2002:a05:620a:56cb:b0:78a:1e09:aeb6 with SMTP id wh11-20020a05620a56cb00b0078a1e09aeb6mr4015481qkn.11.1710944621943; Wed, 20 Mar 2024 07:23:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710944621; cv=pass; d=google.com; s=arc-20160816; b=f9tP65qoBsho7v7l2OODOn4UvOHg+cvCXUM7pVa+G7ARG1euWxqBsAAT+m7kklFIx8 4pn34vmxDj/vQYPpJCxNpI5iRZmyoiAAItx9GtSsF0JAgAMkuUwRkQ80t2CEfpHQ8dlY zlylSRUxGUC2E6hpXldxfCP1HBjuPYjogWx5yFb+n9rAy4BtG3Owl0t2rrOi2ue3UPRr oZL8we5ZJ6eHQzC1xsHml3AE1pJxJLJ+LsxAMu3IpJmeAUNGhcnQk88XB0UtEIpt/GCt R0qvfapg5pieCmweUDo8Vg+8lwfJZzbBGCFf33SoNAE2A4/xj4wk/dsu5xFxuDKGVjK+ nD4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=TgS8M5/jjzZGHXR40Y7YfxozTZJu95vPkXaKMt+h0Yo=; fh=OrINlMO/AI6KwJf9tq73BJPA6V7zSD7UZiaW2xWloPg=; b=GYrvAu90aAXp0eAX4IWJXA1ZQy85ok9WHFUnJXT5l0uNkFz5eKV4YvuSRdBBjCHTFK JzxeUylFPEirYApKcsNGAmgii/EY5YxudSj2/MX0/ueWELJ21DEadNAsN+sgLJNibI5x oKtfYraNzps0DiLmMvrvXZwDCJC6OKRR8yQL3a+s/EvtJC+nsO9t6UlEXeFKj7OAzI6T 4kvnegkeI+Maw5ezM2iqatwVtC+8WirL2nahiwLp2HPboOuwGikeKlWUfMymaLsESgOI xDGRWh8dklQ/lMXROd4xyblpIsIis3hTMWdD58KL1S90p5xv+VI//pn76P0sH+nRWjpw 0ecg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T56qo7hs; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-109005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wk23-20020a05620a579700b0078a29dab24fsi367235qkn.208.2024.03.20.07.23.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:23:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T56qo7hs; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-109005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 984881C2266D for ; Wed, 20 Mar 2024 14:23:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D983745943; Wed, 20 Mar 2024 14:23:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="T56qo7hs" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 F13F540845 for ; Wed, 20 Mar 2024 14:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710944613; cv=none; b=KZ93v5jAQz6pxkvhZBSfKbLsmfqktpJgZZ48i5qYdPCrxjUPXQSTi8IM85bCPM5XodqDl/JN9PnnxMuPaCI9n0FYfF3bS8giZSkb8tDFZ3MkGs4z6B6u1O7As2BhotcAm4tXN8Kscu1wIoDIqVq4Ve3fjmjEtmGguv5Ctnntrd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710944613; c=relaxed/simple; bh=fg8ARSlJ0lNbHtRXX06SbQBiDi1kldIxH5u8ezmpLfc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XDO40Dqu3FGfnLZvlQv8FI18Q14y55nJKq8+CEv+hnoH2B/mno5YWONtXkvPf4l66j4Ts4dVPoYmJJfU+Lo6/vkTW08mEGR+rbPfO0sKEkH4xZh/WklT9qeJYivAX+vy+UhGsSAMTpNKQoey7qLryvSdQpzSismb9qdsfNpNsTA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=T56qo7hs; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710944610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=TgS8M5/jjzZGHXR40Y7YfxozTZJu95vPkXaKMt+h0Yo=; b=T56qo7hsBvh9rmjtb7bobcpfHdmqQHvUj73ejzyttzEEh/sCFB0uN3aK/NUd52qSqSCAQK 8fP5jAyZm1U5Mm2WSJSB9yS+raSuAps5bRStFmsMe+RYvgMEI7QP+mWJQHbq/zulpyJSTt IRv+wOpXwmRFMdw8E8+RGfWAQ5JBtVc= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-663-waoB-yvQOqCuDV_B5L1APQ-1; Wed, 20 Mar 2024 10:23:26 -0400 X-MC-Unique: waoB-yvQOqCuDV_B5L1APQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4AC37380213A; Wed, 20 Mar 2024 14:23:26 +0000 (UTC) Received: from llong.com (unknown [10.22.33.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5BED8200B672; Wed, 20 Mar 2024 14:23:25 +0000 (UTC) From: Waiman Long To: Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet Cc: cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Brent Rowsell , Mrunal Patel , Peter Hunt , Waiman Long Subject: [PATCH] cgroup, docs: Clarify limitation of RT processes with cgroup v2 cpu controller Date: Wed, 20 Mar 2024 10:23:02 -0400 Message-Id: <20240320142302.1790171-1-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 The limitation that all RT processes have to be in the root cgroup before enabling cpu controller only applies if the CONFIG_RT_GROUP_SCHED option is enabled in the running kernel. If a kernel does not have CONFIG_RT_GROUP_SCHED enabled, RT processes can exist in a non-root cgroup even when cpu controller is enabled. CPU sharing of RT processes will not be under cgroup control, but other resources like memory can be. Clarify this limitation to avoid confusion to users that are using cgroup v2. Signed-off-by: Waiman Long --- Documentation/admin-guide/cgroup-v2.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index 17e6e9565156..23c600f0db32 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -1058,12 +1058,15 @@ cpufreq governor about the minimum desired frequency which should always be provided by a CPU, as well as the maximum desired frequency, which should not be exceeded by a CPU. -WARNING: cgroup2 doesn't yet support control of realtime processes and -the cpu controller can only be enabled when all RT processes are in -the root cgroup. Be aware that system management software may already -have placed RT processes into nonroot cgroups during the system boot -process, and these processes may need to be moved to the root cgroup -before the cpu controller can be enabled. +WARNING: cgroup2 doesn't yet support control of realtime processes. For +a kernel built with the CONFIG_RT_GROUP_SCHED option enabled for group +scheduling of realtime processes, the cpu controller can only be enabled +when all RT processes are in the root cgroup. This limitation does +not apply if CONFIG_RT_GROUP_SCHED is disabled. Be aware that system +management software may already have placed RT processes into nonroot +cgroups during the system boot process, and these processes may need +to be moved to the root cgroup before the cpu controller can be enabled +with a CONFIG_RT_GROUP_SCHED enabled kernel. CPU Interface Files -- 2.39.3