From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752354AbeCUQWj (ORCPT ); Wed, 21 Mar 2018 12:22:39 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:52806 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751550AbeCUQWb (ORCPT ); Wed, 21 Mar 2018 12:22:31 -0400 From: Waiman Long To: Tejun Heo , Li Zefan , Johannes Weiner , Peter Zijlstra , Ingo Molnar Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@fb.com, pjt@google.com, luto@amacapital.net, efault@gmx.de, torvalds@linux-foundation.org, Roman Gushchin , Waiman Long Subject: [PATCH v6 0/2] cpuset: Enable cpuset controller in default hierarchy Date: Wed, 21 Mar 2018 12:21:47 -0400 Message-Id: <1521649309-26690-1-git-send-email-longman@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v6: - Hide cpuset control knobs in root cgroup. - Rename effective_cpus and effective_mems to cpus.effective and mems.effective respectively. - Remove cpuset.flags and add cpuset.sched_load_balance instead as the behavior of sched_load_balance has changed and so is not a simple flag. - Update cgroup-v2.txt accordingly. v5: - Add patch 2 to provide the cpuset.flags control knob for the sched_load_balance flag which should be the only feature that is essential as a replacement of the "isolcpus" kernel boot parameter. v4: - Further minimize the feature set by removing the flags control knob. v3: - Further trim the additional features down to just memory_migrate. - Update Documentation/cgroup-v2.txt. The purpose of this patchset is to provide a minimal set of cpuset features for cgroup v2. That minimal set includes the cpus, mems, cpus.effective and mems.effective and sched_load_balance. The last one is needed to support use cases similar to the "isolcpus" kernel parameter. This patchset does not exclude the possibility of adding more flags and features in the future after careful consideration. Patch 1 enables cpuset in cgroup v2 with cpus, mems and their effective counterparts. Patch 2 adds sched_load_balance whose behavior changes in v2 to become hierarchical and includes an implicit !cpu_exclusive. Waiman Long (2): cpuset: Enable cpuset controller in default hierarchy cpuset: Add cpuset.sched_load_balance to v2 Documentation/cgroup-v2.txt | 112 ++++++++++++++++++++++++++++++++++++++++++-- kernel/cgroup/cpuset.c | 104 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 201 insertions(+), 15 deletions(-) -- 1.8.3.1