Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4291976imm; Mon, 15 Oct 2018 12:12:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV63/7qm2uZcRj3Hby9A/x7dK8h6acKkT320uW16ATPBaBZEDhZ5kfN/vhkStJnmdG4mPXV43 X-Received: by 2002:a63:1302:: with SMTP id i2-v6mr17522414pgl.380.1539630760834; Mon, 15 Oct 2018 12:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539630760; cv=none; d=google.com; s=arc-20160816; b=TaFUwCCgreuIRsombXGZ5iunku6qPkYHORakqLxoC6o2ciVLUxCw+osvM5WFhdPj5R Gay2H9j88XJd7Vcw+3aVpU096N2tcrtfch50qA6cssYgeZBh92ghFhMeHGgUxHS2GfT0 4uLYi3hEhU49w8UyrNV7xeWZAtWe24G8Cc5/jBTtdaFXBrAiDsj46dBc3s8oDAGeOZfb tNevHbYEB9Wb4nc9NPOfpGxI84aFGk4fYmCI64+26/DZbwTRRvNlHXTi2t9TIDfZrcBE eIYXd96eSP3ge48oXRa1e/Jub9rcAoEShXWa8RoBZqueARZUCsn5Pl86XoJWsvRs7cNX rHkQ== 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:from:references:cc:to:subject:dkim-signature; bh=PGGtRlRfNP6a3RhwNgdkUGCVn4NE70S8u+xqtqELuhg=; b=E+mQ+blqs8Us16ten4Zv6XoLYbbMMzGNRhWLl4yd6PbCe9L3ZrEIw+EsaS5pLuSpF0 At0r7Cdlj2aKRap0Mw4rdU3s8PjHOkSC8TqaY5QvW0Vpw2ffVvVvZ8jRKJB9dlczlAK6 /YXKDbwVxvqa5t39wQNZ+0cy5bZ2kW00Vo04egGhci6lB1KglQPtCb8Z3DAOusI18d3J 2EVizU18JYOGlEBWgMIqFxiBiWYqZAQSeEdCCebLZV8ROTKMr98gHuk7H2VGzeI0syAp 4aawRsfiPvmwu0LsXCLAYXYch/0XOrfSB1SEgBrawMBM1HfWNxklAWXZbfNSKxlbUxZa 4cgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=mBqWmEXn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2-v6si11247633pgf.423.2018.10.15.12.12.24; Mon, 15 Oct 2018 12:12:40 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=mBqWmEXn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726920AbeJPC6J (ORCPT + 99 others); Mon, 15 Oct 2018 22:58:09 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:42448 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726681AbeJPC6J (ORCPT ); Mon, 15 Oct 2018 22:58:09 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9FJ9V6d103683; Mon, 15 Oct 2018 19:11:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=PGGtRlRfNP6a3RhwNgdkUGCVn4NE70S8u+xqtqELuhg=; b=mBqWmEXnZ0OtUywDH0cezZDnzj18w4J8ai9JJVYxQMoYkRiiW9Odgx24gaNkcBgdOQ6Z 16BzO3/Ea3J/95UM5sbz/CSvjfAOX403kn9jiWSd/mFkKhrvff44xmFH4c0S7lftK6Oz kl1pV8faqIBJdMnddUSw8Vx7IwB2iPt7+2LKHjQJZUBS5t5PAD+2QGaSPmzSLSm93hQX qgbW/yTyYEeN/vhl2mHgBZv+3rf4/xB+/hAmaPxvobzxOVap8ZDS7PqZON71T3aE4hbn npvSZ6xioK20aZHzHcw1cCR8HztKmx7iW63/AVtDT16ez6I0TzZ4akjswAQ8dD0uaV9e Ow== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2n38npvcnm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Oct 2018 19:10:59 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9FJAvNu021955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Oct 2018 19:10:58 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9FJAsu9021700; Mon, 15 Oct 2018 19:10:54 GMT Received: from [10.154.131.235] (/10.154.131.235) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 15 Oct 2018 12:10:54 -0700 Subject: Re: [PATCH v13 01/11] cpuset: Enable cpuset controller in default hierarchy To: Waiman Long , 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: Tom Hromatka Message-ID: Date: Mon, 15 Oct 2018 13:10:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9047 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810150165 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/2018 12:41 PM, Waiman Long wrote: > 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 > > Thanks!!!  I didn't realize cpuset_v2_mode exists.  (I see you added it last year.  Thank you!)  I'll try it out and see if it meets my customer's needs. Tom