Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4263367imm; Mon, 15 Oct 2018 11:43:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV63pa2Q7cPu1aTj4avLruMCm7fMwyr55yciDssvmzWRetr0jaqVd47pNmBROMi8Mz1hwCZOp X-Received: by 2002:a63:2503:: with SMTP id l3-v6mr17028941pgl.69.1539628980997; Mon, 15 Oct 2018 11:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539628980; cv=none; d=google.com; s=arc-20160816; b=ZxTWaHh9AOjMGX98odaUIqC3LWqMZXsDe4nCnjYZe2k4aWMJaNUp7bgaQXiUjfVGtk e2YZI2YXEqBtYflrCn74fMxLIP8tTm6ByBENUnPT+d8xMsNviZ/AVS5q7YfCF9SBqN6y 4+18niItLaFjS6XaobCHy03MpoZkhtyboj74qUT6OVxkgixsLJO5NHBpUbu/drwdhJqR 0d/NhN0Yyqkdm8reVGhcpWd2ftCFaLx/pCHMa76fABydRUsBV7oR2dWtz0q6IuFm77sj cLmqWc8BZ/RFNKZLbRSzGd8sohbsr32L6Zhf+uN6EKI8e+AYOgls9hwupRpemmPw4HNp /73Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=PkAPozSVVjdljAEmBl6WqbwVu3srGGQFny3PLwuolpw=; b=ISpYyVaSQIQqUbrn8KzUo4k4VE2Gz9tmBgCDZGxpSWgwYdKiyHzVNfJUPzp3g/O/bG iBcLr44NBba1C6+xn/ROmlZGREDARqkzF4sl07HkUTnqx0L1szpe9dWoJhPrTNmbgM9Y hd7jbw4oXrEJVoXQ359I0RfZQDOp6+YHNeRllocJGu9F3811gFqcVb7+GplMzkzcUNVo Wddfl4QNGkYRatVCWrCAWUB24f0SuuzfiOvAGujWrizjvkaS36uz+F/zrza8yhCW5QQk 53AhSpSLlP8kK8CLOtQXUBFAoBQmJzeCC+il/C48qvGvtjPqoMHs2oc/NdrqV1ULAklt 4Rtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14-v6si11353546plq.268.2018.10.15.11.42.44; Mon, 15 Oct 2018 11:43:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726920AbeJPC2Z convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 Oct 2018 22:28:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34905 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbeJPC2Z (ORCPT ); Mon, 15 Oct 2018 22:28:25 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 483F030832D8; Mon, 15 Oct 2018 18:41:58 +0000 (UTC) Received: from llong.remote.csb (dhcp-17-8.bos.redhat.com [10.18.17.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 12CB5413C; Mon, 15 Oct 2018 18:41:55 +0000 (UTC) Subject: Re: [PATCH v13 01/11] cpuset: Enable cpuset controller in default hierarchy To: Tom Hromatka , 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, Mike Galbraith , torvalds@linux-foundation.org, Roman Gushchin , Juri Lelli , Patrick Bellasi References: <1539366951-8498-1-git-send-email-longman@redhat.com> <1539366951-8498-2-git-send-email-longman@redhat.com> From: Waiman Long Organization: Red Hat Message-ID: Date: Mon, 15 Oct 2018 14:41:55 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Mon, 15 Oct 2018 18:41:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/2018 02:31 PM, Tom Hromatka wrote: > > > On 10/12/2018 11:55 AM, Waiman Long wrote: >> Given the fact that thread mode had been merged into 4.14, it is now >> time to enable cpuset to be used in the default hierarchy (cgroup v2) >> as it is clearly threaded. >> >> The cpuset controller had experienced feature creep since its >> introduction more than a decade ago. Besides the core cpus and mems >> control files to limit cpus and memory nodes, there are a bunch of >> additional features that can be controlled from the userspace. Some of >> the features are of doubtful usefulness and may not be actively used. >> >> This patch enables cpuset controller in the default hierarchy with >> a minimal set of features, namely just the cpus and mems and their >> effective_* counterparts. We can certainly add more features to the >> default hierarchy in the future if there is a real user need for them >> later on. > > I really appreciate this simplification of the cpuset controller. > > I currently have an in-house customer that is unhappy with the > way cgroups cpuset v1 handles offlined CPUs. This patchset makes two > significant improvements over current cpuset v1 behavior. 1) It allows > for offlined CPUs to be added to a cpuset (even though the CPU is > offline) and 2) it restores CPUs back to the requested cpuset when they > come back online. This is more intuitive and secure for my customers. > Thank you! > > In part because of this patchset, I plan on proposing similar behavior > for offlined CPUs to cpuset v1. > > Thanks. > > Tom If you are just talking about the ability for cpuset to revert back to its original state when an offlined CPU becomes online again, that capability can be activated in v1 using the "cpuset_v2_mode" mount option when mounting the cpuset cgroup. However, that is not the default for v1. -Longman