From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 799AEC43331 for ; Thu, 26 Mar 2020 19:20:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4AA1D2070A for ; Thu, 26 Mar 2020 19:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585250442; bh=lJs005HVe3co0zjtx6aIR9DvenF9LtHMYQsTt8U2Elw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=dUmygZGYiGLSdRtZp1rJEz9adipQPQoieLO1bDR1Iy8g5jdElfKf8Cd9f3dRYQ0t8 pK2W5CDeYA/G/3rKKVgUNfSchsYse4Ccx/wJnqrAQfWQM7kizEOXvJ0Fd7kWaw6+cu cTVpFkDu8tazP0vah7xCse5b1TPamNAxoUTqFOoY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728472AbgCZTUl (ORCPT ); Thu, 26 Mar 2020 15:20:41 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:47082 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgCZTUk (ORCPT ); Thu, 26 Mar 2020 15:20:40 -0400 Received: by mail-qk1-f194.google.com with SMTP id u4so8049721qkj.13; Thu, 26 Mar 2020 12:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BshxP40VVzwMKYJQVOlxQ7cvaL9xzYOkqdrLAsauMpo=; b=c20H/cNu1p8GBlF+mPsYbUh0rXL1H1AWe/ycm2VlcgEK65RBZQUQlnCR/ZCQQsD1K1 +Eew8NDPAtsfuRrpiipXtIJx7olzpXEAHnH8S2hPh8lobGAMro4Qdjqd/LMLw/Ote73l SwhEfIIRGs6JQOEYNVnK3CsC7lNZ2gM/RM9o3qDLuATA7GcnGnxS5L5kopZxYXw1HJt6 8gC5IhTabVdSWE6IGVSn9jzjguGE1t62zXlN3zPGs1TY2gMDyiLuiWT9/GYedbHZGDqB TZCSr3w0/jJpxXKukQ9LUz5TucI9EYGjvlrwGWAvs5teC779vvVK8kCKIoj4u2JHd9tY sUAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=BshxP40VVzwMKYJQVOlxQ7cvaL9xzYOkqdrLAsauMpo=; b=JslQ4PTCwHe8Yw9wYpRUW5H/31Aa9poSt0SPjbof6nRld8GgK1KLTpqNcuDpioUPq0 Hk7RFzXJ8QkNi5Abgm5sgfiZSSnZmdhrgVNEJNB4cgFKhpFez0PX/d5gwDMOHxRjoAqn G3eEC9ql6wsVizpK1VcgJKGmA+FlQmGmytSYuo4NJMlSRbM/8jjIr9LBLqYVfhh9vTWJ WOfSRk6FGpf8p1nzOks64QmdRaJkA1IO8xqaY7419WeAohoeYmMoSlH8wk/gpsoZKGsA g52DWqb/I2yZ1nxgC+R2bHxYAnv0/1SUxptzkJ9NHl/jQT3lV2wAzAC5eQrpwSMsutUT bFeQ== X-Gm-Message-State: ANhLgQ2Q+cgGN3CbPU1euneaCco+s/jITAxGQSlCDyfqlh1mnX2VaATA PNoKw1pFM6co1wWWUqljlyA= X-Google-Smtp-Source: ADFU+vtedxdPndItEm/+/U0dOWfZkCzogEf0Rosyqrgj3YaDSDXRWTyCODUB+KtNSPMKhttNMenckg== X-Received: by 2002:a37:a50d:: with SMTP id o13mr9754025qke.37.1585250438033; Thu, 26 Mar 2020 12:20:38 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::d3b8]) by smtp.gmail.com with ESMTPSA id i4sm1234609qkh.27.2020.03.26.12.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 12:20:37 -0700 (PDT) Date: Thu, 26 Mar 2020 15:20:35 -0400 From: Tejun Heo To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org, Dmitry Shmidt , Amit Pundir , kernel-team@android.com, jsbarnes@google.com, sonnyrao@google.com, vpillai@digitalocean.com, peterz@infradead.org, Guenter Roeck , Waiman Long , Greg Kerr , cgroups@vger.kernel.org, Johannes Weiner , Li Zefan Subject: Re: [PATCH RFC] cpuset: Make cpusets get restored on hotplug Message-ID: <20200326192035.GO162390@mtj.duckdns.org> References: <20200326191623.129285-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200326191623.129285-1-joel@joelfernandes.org> 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 03:16:23PM -0400, Joel Fernandes (Google) wrote: > This deliberately changes the behavior of the per-cpuset > cpus file to not be effected by hotplug. When a cpu is offlined, > it will be removed from the cpuset/cpus file. When a cpu is onlined, > if the cpuset originally requested that that cpu was part of the cpuset, > that cpu will be restored to the cpuset. The cpus files still > have to be hierachical, but the ranges no longer have to be out of > the currently online cpus, just the physically present cpus. This is already the behavior on cgroup2 and I don't think we want to introduce this big a behavior change to cgroup1 cpuset at this point. Thanks. -- tejun