Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2331765pja; Thu, 26 Mar 2020 13:24:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vse7fJCQxc8UEey35NBE/S8+LvikpsIBqhOhS55VggBEcsivwKwN5+y7msDiKilfUIi7mtt X-Received: by 2002:aca:f0d7:: with SMTP id o206mr1552550oih.41.1585254284809; Thu, 26 Mar 2020 13:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585254284; cv=none; d=google.com; s=arc-20160816; b=zFt6kviX1YHXHX5bboz+zPcKU/k5hhDwocpzUeiwOt5hQwn5LJx4JZQw8ivWmSIKif B8ceZL8SlIVmd8KjkSMEtM3XY/DoLR0i17r1xTwff6zwDjV1kdIP3wUtR8H6sznETwMf /ypZ0p2RNmCB130Ry7Kagru7ZJfFCuS/QdnnPWWMNismpGu89GQVsQW5pfORa8BY5nQd TZMLkUSitpMm3fyp2E1OAy0RnrKIgsSxn39DhRLb+714G9hujQTtLQyAcKuzEajvjR7g gTgR4QeGOenlDhTjCDiYEteghlb1DGY2QhbL/CB6/M5e1NQZBdRq1nIvwD4XLrLpmILQ hcpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hJWp5t89/iwbfn8Ca+Lrz1rZRbdYA2KCpWmXHJOj3y4=; b=wEC3dy5LTa6/Eu8juKuXVInf1KfMxuN0Yr0X1btFnDTU6USBmJWD8p6CQT4vEzuJO3 7sxO2UI8okq4SxTaLTjSgclXc4yyMcjAG/qkCA43WIs9RT4MwyJqJWuP8tTR61zEN39Y BZ9DNz5YyO7TSOWuC32gOo8HoU33/qm7mkRN7gDbjXs8rPyxS3MIOyWdtTBAhOFAGQTa UKgw/VbUlsyP1sJ+oBhKe8re9XyF4Wwzn83C/D4hBWetv87E7/jiz6Wg2d2Ljs77+iHS hCQ+5jMzr38ukeGBgg/HqCuce+FVI8nkTT3GXy5Z46VAPu+EiukvU3fsNlLgwxdtK0Fm wX3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=dY7wSC08; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p126si1508005oib.73.2020.03.26.13.24.31; Thu, 26 Mar 2020 13:24:44 -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=@joelfernandes.org header.s=google header.b=dY7wSC08; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728587AbgCZUXn (ORCPT + 99 others); Thu, 26 Mar 2020 16:23:43 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:44417 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727446AbgCZUXn (ORCPT ); Thu, 26 Mar 2020 16:23:43 -0400 Received: by mail-qk1-f196.google.com with SMTP id j4so8334246qkc.11 for ; Thu, 26 Mar 2020 13:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hJWp5t89/iwbfn8Ca+Lrz1rZRbdYA2KCpWmXHJOj3y4=; b=dY7wSC0838pzka4AzUdCK19Pqo/xSg0AU8qIfHTom1OXY5mFHlZIYMENXzpLnBMDcC NwYnyykFW1mIgRuaJe2SIZNN+JLl1bR6XMi/axhztQ+3Lol92UZB9R5juK0hc6a1xaWl o5DOw2ARWnmKhSSoBhVBErNkXtykPQzMjcX8c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hJWp5t89/iwbfn8Ca+Lrz1rZRbdYA2KCpWmXHJOj3y4=; b=nDWzljTZFPrnQHPLyHDqAbeNdENkR0qykl+fwlE6BBjKgGdK21m4312sGrUpe1WzaR f3tQm8YDFskv01KUg4Cwcum17NF5SIOq+CFx9kJH6PVcuWo6dRheIGO4sYRCokzPjX1y O15Sn+3VYl1iGnGsmbsArfjrnSi1Vt/mKHPJlTMzFN73m0yfbVT+kbnaFbWmhZHtHe4q EVctcFgta5ieG4fcI1C56xJxjrw2x5OdcQS2Pwgm1u48TKOOfdPeKYr7egkY/u/aTUjK ZT8AtCKQR/4kxaKtHAcnAlhHcJV0yMJAr4X9/POG9QLItBbAiHBOz/BqaXmpR5yq9qW9 v6Vg== X-Gm-Message-State: ANhLgQ3rbB2abfGZkMoP6K7Wag2H58DVgtt4x9lRprHijQzyVa/UdEo7 8Z8mMH0eUh0cp++u3y10MlPgpw== X-Received: by 2002:a05:620a:539:: with SMTP id h25mr10212915qkh.395.1585254222181; Thu, 26 Mar 2020 13:23:42 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id z6sm2092718qka.34.2020.03.26.13.23.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 13:23:40 -0700 (PDT) Date: Thu, 26 Mar 2020 16:23:40 -0400 From: Joel Fernandes To: Tejun Heo Cc: Sonny Rao , Waiman Long , 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 Subject: Re: [PATCH RFC] cpuset: Make cpusets get restored on hotplug Message-ID: <20200326202340.GA146657@google.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200326201649.GQ162390@mtj.duckdns.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. thanks, - Joel