Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3070719pxb; Mon, 18 Oct 2021 07:41:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzivZb3bAH5hY6NWSFOgd4shEl0Nm8b+fw1fegNESNPFN4IwrFRHFfdv7cPEK5cYu39YZzt X-Received: by 2002:a05:6402:399:: with SMTP id o25mr13784073edv.275.1634568095495; Mon, 18 Oct 2021 07:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634568095; cv=none; d=google.com; s=arc-20160816; b=tq+uTtOOXCF8uGstu1xll8aXM9Q1ULjNzc3Ms4NO75TMzj4NBAcIeVOYqBbIfxdBAW YgiyqulCBE7wrT8lHeknyYscCkXXzuUGE5V9fpESMTEtZo6vRj1rDL/vxFrxPONyEaua wAPmgENSBoxDxy892LcCjgs0g5pqG5wbvKXGprlIA9fi+zG8wvknc8ghQBYgfFx5fEjb gAXsVmH7JytFHu5esSRsU6y7matdcBcwfHo4zYSpQbJOB7YH7jraG8N8hgaAxwVdtpaT AeJjj2UUG4lZbU90a0y/ooToni5cIWUMH65w1ehTwI0zdWo+bWmiFrQrPCXzfdwHhEEr Pm3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ng7Ch+ziTcXFMqpWwHpxE3VZVmB5z0SGbNUXf+BTCIE=; b=rcBDjrIctlJOqQSNu24ZsuvxiUSuyU5NYZ50NV5nZxS+UDm+58UOORT1/hCT00HYim dBeiRpZBFsryvjM00PmHyNn6V06YDjS0/alcltps+lDTBx757VnsdN98RPO/zpANMIqj nLsbiMcv3SKxmjNZ7eeKXtiEGTdcbvz78GRkU0LuRohp7LDF5LKb7t2PTk4nY2rKX5hR lmt15Mdl1rqEoxAdHzGZaKPC9Kv2LQYBzV50db4/6LnEhG6sNZ1ONRL5fvdW+Y5T0ZuB kclNg5jObgYb2v7zHEltQMbJ5tGjyW5ezWah4czzamT+dV0NEefjpKej1ucGyvBuM4qn OkqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iqqIXD++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si21064329ejg.260.2021.10.18.07.41.10; Mon, 18 Oct 2021 07:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iqqIXD++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229833AbhJROjW (ORCPT + 99 others); Mon, 18 Oct 2021 10:39:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39085 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231736AbhJROjV (ORCPT ); Mon, 18 Oct 2021 10:39:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634567830; 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=Ng7Ch+ziTcXFMqpWwHpxE3VZVmB5z0SGbNUXf+BTCIE=; b=iqqIXD++jHqVsOATwHyfkROZuH/p2nMbnTaYqymeG5ap38jGL310WUMReJBCDxwy/PVpSZ O4wI7M30IkJedc/OlpecYmIftEORRntOiuoKIpWKmzOXWEbyCj0cEmJ1KzmIpoxviwKkxM May0gSVDI3dbb5ynO5KrIXfXXZT3V5s= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-579-ipjXnTKoOA6L-Qk9B6HtqA-1; Mon, 18 Oct 2021 10:37:04 -0400 X-MC-Unique: ipjXnTKoOA6L-Qk9B6HtqA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 942E5801B1C; Mon, 18 Oct 2021 14:37:02 +0000 (UTC) Received: from llong.com (unknown [10.22.16.224]) by smtp.corp.redhat.com (Postfix) with ESMTP id A7A595F4EE; Mon, 18 Oct 2021 14:36:32 +0000 (UTC) From: Waiman Long To: Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Andrew Morton , Roman Gushchin , Phil Auld , Peter Zijlstra , Juri Lelli , Frederic Weisbecker , Marcelo Tosatti , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Waiman Long Subject: [PATCH v8 0/6] cgroup/cpuset: Add new cpuset partition type & empty effecitve cpus Date: Mon, 18 Oct 2021 10:36:13 -0400 Message-Id: <20211018143619.205065-1-longman@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v8: - Reorganize the patch series and rationalize the features and constraints of a partition. - Update patch descriptions and documentation accordingly. v7: - Simplify the documentation patch (patch 5) as suggested by Tejun. - Fix a typo in patch 2 and improper commit log in patch 3. v6: - Remove duplicated tmpmask from update_prstate() which should fix the frame size too large problem reported by kernel test robot. This patchset makes four enhancements to the cpuset v2 code. Patch 1: Enable partition with no task to have empty cpuset.cpus.effective. Patch 2: Refining the features and constraints of a cpuset partition clarifying what changes are allowed. Patch 3: Add a new partition state "isolated" to create a partition root without load balancing. This is for handling intermitten workloads that have a strict low latency requirement. Patch 4: Enable the "cpuset.cpus.partition" file to show the reason that causes invalid partition like "root invalid (No cpu available due to hotplug)". Patch 5 updates the cgroup-v2.rst file accordingly. Patch 6 adds a new cpuset test to test the new cpuset partition code. Waiman Long (6): cgroup/cpuset: Allow no-task partition to have empty cpuset.cpus.effective cgroup/cpuset: Refining features and constraints of a partition cgroup/cpuset: Add a new isolated cpus.partition type cgroup/cpuset: Show invalid partition reason string cgroup/cpuset: Update description of cpuset.cpus.partition in cgroup-v2.rst kselftest/cgroup: Add cpuset v2 partition root state test Documentation/admin-guide/cgroup-v2.rst | 153 ++-- kernel/cgroup/cpuset.c | 393 +++++++---- tools/testing/selftests/cgroup/Makefile | 5 +- .../selftests/cgroup/test_cpuset_prs.sh | 664 ++++++++++++++++++ tools/testing/selftests/cgroup/wait_inotify.c | 87 +++ 5 files changed, 1115 insertions(+), 187 deletions(-) create mode 100755 tools/testing/selftests/cgroup/test_cpuset_prs.sh create mode 100644 tools/testing/selftests/cgroup/wait_inotify.c -- 2.27.0