Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp511263rdb; Wed, 17 Jan 2024 08:38:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtYX5NRSC5TM78XecEQTbRv5FOHvxxC72oetaii/fFEW9kY95akSoXvKvdarC4AF8+7Rbf X-Received: by 2002:a17:907:2991:b0:a28:e146:70e0 with SMTP id eu17-20020a170907299100b00a28e14670e0mr3788494ejc.68.1705509480788; Wed, 17 Jan 2024 08:38:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705509480; cv=pass; d=google.com; s=arc-20160816; b=TcaD6XvIz0EdnKUX62nTY9PMX+Eyz/ciqQaa78aaCOduCe6GfreVfSfOuKMyFC1rIk S0HUIQdBw1QqyHYnBvaX0MHUYbf5WCa3jdFYofLHDvdnHjMbUkCI1ifV9eXW46kLWbXw 5aJMQcBLXg0dDTa3xQv4/pnBcOlHDfVx6fqqyVFF4osMVDFq4fVVrfCTHJPla59v1cTR lvLoRRt/fo40Li/vAUey3UU6N/PtjuXiUeg9MP/FpTfV1keu5Mp5md5ywh/1Nj9DSxae s9B2UV5knxpafAVl9GoTSw+cqhUpX5Y6SG7wXtrDWwZa3e0tmhwxKt2ttOBEXHGQHu2S x0iw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KotaQECG6rJbRoU9m6xm3uHY0VUggl9xjizYviPB8yA=; fh=0cYptx2rNTiuaWnhcL0TTYEVszmCn744IFt48f2CUlM=; b=qR0/C7QSoAhCXUOmysRNKbbYLlAQcUaBiETBQUOJwJmuXRCwT+WPWePx77hZhND7Jf wpkOWCTv4X/LH7ZdyT+KyEx/PqISJcv6piAWsIsaC2QcIOc2lPEG3ddNh871Mgb9rM+y XzmfcyT4W7tQI/iNFpbT4BYYi+Wo7REsyiuFlexi2rODV3xytkpvdgBH1Z4/hkMd+QOb vJvgFlhF69OXv4Sj1N1lsrnMvbi04DYn/VJ1tKWscLI7iH/GxwtSQabxJr8omD06oESe nFzvq0AGVy8AzWOuP+NsAW0aKSufOs+Qs/sLSeJLR+iyBltxGIschYDBO3u9gzasTp2o s06w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RpEFYwjn; 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-29229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29229-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jx13-20020a170906ca4d00b00a2c3ede0fa8si5809547ejb.535.2024.01.17.08.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 08:38:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RpEFYwjn; 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-29229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29229-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8B6471F2BD9B for ; Wed, 17 Jan 2024 16:38:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6F072374A; Wed, 17 Jan 2024 16:36:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="RpEFYwjn" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 18FCB2375A for ; Wed, 17 Jan 2024 16:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705509383; cv=none; b=ReFMOaPLnoMOej1LcwX6rp5lLSr/pgsdSk3mpxyH2yw9ih7/5RkVc1bkCb1f6jKufGAdJrocvMyaN4AdRFLcO+otg8Kp0sMQTGai2l1cS1AuiT7bHfefTpTm9GMe4cMwevLmWEpjaiO1UN2o0F9PtFSxvKB3yEOJocBfhcD3heY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705509383; c=relaxed/simple; bh=i0Ofa11RRO77lr53R6C5icaSmSfpdwG1dq7E5sm7z1M=; h=DKIM-Signature:Received:X-MC-Unique:Received:Received:From:To:Cc: Subject:Date:Message-Id:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Scanned-By; b=YwkDFLH40gRonH5avFztsi7C8P9xNIu5C7bTnVlfUilo1NcB7d0BSNaM7fqPEQPoP4D+/Ju39BHqY51sghRj8dzOihrf5+eBnpGs8GYXHOspsN5Xqt8kMX0DhXcY6b5p3oGGcjVDz5cH2lL/FwrgctCExdbGWNlue+leQMK/SSs= 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=RpEFYwjn; arc=none smtp.client-ip=170.10.133.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=1705509381; 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: in-reply-to:in-reply-to:references:references; bh=KotaQECG6rJbRoU9m6xm3uHY0VUggl9xjizYviPB8yA=; b=RpEFYwjntHyPknbmLTLp8ZS0AFhAaDTmNElOsLQQzr+hE7AQMM9Fh1YcpSJHBfVrHEzy91 0GlE35nz/vti2HRixr4UcQYoM0bgZUPRy9UQP9AXXSsfTFSdthOJtyBDqH6Dh/OBOAKcsE PGPvCRNe6rwf3YBqRAl5PECheu1Am7s= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-450-P98TlzovNymX4FjnA35Hcg-1; Wed, 17 Jan 2024 11:36:18 -0500 X-MC-Unique: P98TlzovNymX4FjnA35Hcg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 7FDC4185A7A8; Wed, 17 Jan 2024 16:36:16 +0000 (UTC) Received: from llong.com (unknown [10.22.16.147]) by smtp.corp.redhat.com (Postfix) with ESMTP id D1B9F1121306; Wed, 17 Jan 2024 16:36:14 +0000 (UTC) From: Waiman Long To: Tejun Heo , Zefan Li , Johannes Weiner , Frederic Weisbecker , Jonathan Corbet , "Paul E. McKenney" , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Davidlohr Bueso , Shuah Khan Cc: cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org, linux-kselftest@vger.kernel.org, Mrunal Patel , Ryan Phillips , Brent Rowsell , Peter Hunt , Cestmir Kalina , Nicolas Saenz Julienne , Alex Gladkov , Marcelo Tosatti , Phil Auld , Paul Gortmaker , Daniel Bristot de Oliveira , Juri Lelli , Peter Zijlstra , Costa Shulyupin , Waiman Long Subject: [RFC PATCH 7/8] cgroup/cpuset: Document the new cpuset.cpus.isolation_full control file Date: Wed, 17 Jan 2024 11:35:10 -0500 Message-Id: <20240117163511.88173-8-longman@redhat.com> In-Reply-To: <20240117163511.88173-1-longman@redhat.com> References: <20240117163511.88173-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.3 Document the new cpuset.cpus.isolation_full control file. Currently only the rcu_nocbs flag is supported, but more will be added in the future. Signed-off-by: Waiman Long --- Documentation/admin-guide/cgroup-v2.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index 17e6e9565156..bbd066838f93 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -2352,6 +2352,30 @@ Cpuset Interface Files isolated partitions. It will be empty if no isolated partition is created. + cpuset.cpus.isolation_full + A read multiple values and write single value file which exists + on root cgroup only. + + This file shows the state of full CPU isolation mode for isolated + CPUs in isolated partitions. It shows either "0' if full CPU + isolation mode is disabled, or "1" followed by a comma-separated + list of additional CPU isolation flags that are enabled. + The currently supported CPU isolation flag is: + + rcu_nocbs + RCU no-callback CPU mode, which prevents such CPUs' + callbacks from being invoked in softirq context. + Invocation of such CPUs' RCU callbacks will instead be + offloaded to "rcuox/N" kthreads created for that purpose. + It is similar in functionality to the "rcu_nocbs" + boot command line option, but for dynamically created + isolated CPUs in isolated partitions. This flag can + only be enabled if such a "rcu_nocbs" option is present + in the boot command line of the running kernel. + + Full CPU isolation mode is enabled by writing a non-zero value + to this file and disabled by writing a zero value to it. + cpuset.cpus.partition A read-write single value file which exists on non-root cpuset-enabled cgroups. This flag is owned by the parent cgroup -- 2.39.3