Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1970453ybb; Thu, 26 Mar 2020 18:28:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtASS5C5tbz6GGzcgq4abVa8ByRozvr7xcKRnFELoYaNB88F1ahOsQgLzN3wNiXj7bYJUJj X-Received: by 2002:a9d:6b98:: with SMTP id b24mr8348404otq.242.1585272534952; Thu, 26 Mar 2020 18:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585272534; cv=none; d=google.com; s=arc-20160816; b=QjBsH13O1Pl5pqIKVJQ3uw7rvaeJprwV2ahV2f8zrbw+2fsokMjZpXV6eOwrsT0gsM d9wvbWRCGNiVIwHYzA/88g5Q51BWMo6lCUW+IlMx50R/q/XHfQGlHZlzAjvx2Y6oae+3 Xf5ci8WcjPYHeYXnsXY14rz2wQ2oTeUdknRpaYRH02rr+2M9AW56nX6jUQSutqowOxsS zt/sHnYlHBxmCOEvrjaAA6v6vk0U6FNuCBEJ25nBI9tAnUtHYwGTCFQkPFp6/h+eEQb3 rsLPjZdCCiQnZZdHZtQCqC76Zig4GCtKKQHC/JiZlKpvcr+1HlpyvX8hS/0DisVs87mK 92iA== 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 :dkim-signature; bh=MUJ4EFBey4RnBsubrV8OieVsspJ5+/9YngaSQHIcXsM=; b=a/TccLzELOIZUwj2OPwZbmGYCUYALF4mTSs8/upAvLJyZox5Hn16BZ9wBlIjzOZ43Z ALS53pUmtbdrJIGZZmobkeGymSgTXgqXHqEwg6wiDWP1mXArd36V29r0U51ChmqL6K8+ K/TdcMpi7QTV9UjM477J3hDkeM6unLJ6R0T0gjixtYbMV9ghEhRmYJVQxwfQitxpKfMI SBWr8dkQm31GbD7TD2Jid6e2Ne5zqfiaNl3EYL7MUHEPbwtgSB4rEYDEqMheVaxbFK2I uVTlQefXlBpg0LZNH2VzGY7pufq45XejyabIm0QhvM4VGOfLH3V1fqHAlSZqWEhhQLCv qgNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G5dS7ASB; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si2443297ots.188.2020.03.26.18.28.42; Thu, 26 Mar 2020 18:28:54 -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=@redhat.com header.s=mimecast20190719 header.b=G5dS7ASB; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727801AbgC0B1C (ORCPT + 99 others); Thu, 26 Mar 2020 21:27:02 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:27858 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727122AbgC0B1B (ORCPT ); Thu, 26 Mar 2020 21:27:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585272420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MUJ4EFBey4RnBsubrV8OieVsspJ5+/9YngaSQHIcXsM=; b=G5dS7ASBmByiPynkdns0cjjiamIfAXgpytnr0VBKI7LgddUM6hQBfc+/Cyp9TuZ/jLFzSV pbI9f4aCAy+1qqB2XLiUjENxmbIkKb5NE1F0oUtqlUhQBrrn3e1zIzsxu7GUyQ+KCOjHqW 4SolYuBAT6FJzOr/A40sQgpPcSKi1wA= 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-305-4cO3SvUDMUK6LNiuW7ZcNA-1; Thu, 26 Mar 2020 21:26:58 -0400 X-MC-Unique: 4cO3SvUDMUK6LNiuW7ZcNA-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id A6AA6800D6C; Fri, 27 Mar 2020 01:26:55 +0000 (UTC) Received: from llong.remote.csb (ovpn-117-112.rdu2.redhat.com [10.10.117.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 73F9C60BF3; Fri, 27 Mar 2020 01:26:52 +0000 (UTC) Subject: Re: [PATCH RFC] cpuset: Make cpusets get restored on hotplug To: Joel Fernandes , Tejun Heo Cc: Sonny Rao , linux-kernel@vger.kernel.org, Dmitry Shmidt , Amit Pundir , kernel-team@android.com, Jesse Barnes , vpillai@digitalocean.com, Peter Zijlstra , Guenter Roeck , Greg Kerr , cgroups@vger.kernel.org, Johannes Weiner , Li Zefan References: <20200326191623.129285-1-joel@joelfernandes.org> <20200326192035.GO162390@mtj.duckdns.org> <20200326194448.GA133524@google.com> <972a5c1b-6721-ac20-cec5-617af67e617d@redhat.com> <20200326201649.GQ162390@mtj.duckdns.org> <20200326202340.GA146657@google.com> From: Waiman Long Organization: Red Hat Message-ID: <592d4120-0b42-4607-5efd-fb2d4d29f0cc@redhat.com> Date: Thu, 26 Mar 2020 21:26:51 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200326202340.GA146657@google.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/26/20 4:23 PM, Joel Fernandes wrote: > On Thu, Mar 26, 2020 at 04:18:59PM -0400, Tejun Heo wrote: >> On Thu, Mar 26, 2020 at 01:05:04PM -0700, Sonny Rao wrote: >>> I am surprised if anyone actually wants this behavior, we (Chrome >>> OS) >> >> The behavior is silly but consistent in that it doesn't allow empty >> active cpusets and it has been like that for many many years now. >> >>> found out about it accidentally, and then found that Android had >>> been carrying a patch to fix it. And if it were a desirable >>> behavior then why isn't it an option in v2? >> >> Nobody is saying it's a good behavior (hence the change in cgroup2) >> and there are situations where changing things like this is >> justifiable, but, here: >> >> * The proposed change makes the interface inconsistent and does so >> unconditionally on what is now a mostly legacy interface. >> >> * There already is a newer version of the interface which includes >> the desired behavior. >> >> * I forgot but as Waiman pointed out, you can even opt-in to the >> new behavior, which is more comprehensive without the >> inconsitencies, while staying on cgroup1. > > Thank you Tejun, Waiman and Sonny. I confirmed the cgroup_v2_mode > option fixes cgroup v1's broken behavior. > > We will use this mount option on our systems to fix it. I am glad that it works for you. I think the problem is that the v2_mode mount option is not that well documented. Maybe I should send a patch to add some some description about it in cgroup-v2.rst or cgroup-v1/cpusets.rst. Cheers, Longman