Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36082413rwd; Mon, 10 Jul 2023 17:50:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlE5NYHr3HGsYWlg+TPi+d8kdaqyJKZqIQwLTb6Nv5K35LzyGCpC+T4MCiQFw5NCwrvqerky X-Received: by 2002:a05:6808:1718:b0:3a3:95f9:c99b with SMTP id bc24-20020a056808171800b003a395f9c99bmr14589285oib.35.1689036616384; Mon, 10 Jul 2023 17:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689036616; cv=none; d=google.com; s=arc-20160816; b=LUNhWfykH/Dmab8hJzLAQV1tbd1lvT367ZFL6wMMJKGTMJHz/TQKvn72n/nOUAKhJP +bx0H11WTEk2q3pqN8TIEH/b4cl9dVx4/VW4276o5rNomb10IOcdNT96vidGjoeaQeRe iEbKdbgc7GaitzLNWTp0ZAX5UWiK6HvfPnD3fGbh2bCQGC4Ht2YFrUmcVNcVT5RbE90e bZjBaVOjd/gGgbzxYlWBE2siek8gQDUVoG+4RSCrOwR4Pnf3Rmb0eXBZqKPd0QqY8c3F EpxWPq4IVctucvinT02r3H9h4NoYBzX3D1cMEaE/XTatpjN/B3mZb0QfmJzbTpDTNsnh Lw3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2jCZmfZzjejGxfBXjkcFRYAyVQ6S1vH30csYuUaEOJU=; fh=oYRzRzQ337m9sNrFDN4f6gowTZYubNby5HvuxUP/+tA=; b=rjxDrzk43hPeaJ4WoAguKNi/K0z0bytJn0ycLl1bEdI/T8zepGn/eIpkbo1zZpmgMH pC3w3ESS2yR+mTxmRk5vUDfmofd70HiefSbhtNRiVu/UyttaKOZsD4Re1w/Kh2iUQ5yX jUiHN9qBHoar0sH+UZ5QerX9/udxGmtV1ukI8m/cwixsXYGJnJUkLtW5B2JW16673URR kq/BxtdIH+LK/hKGz8bRawoMpNj+2aQ6EhySoy1hpQB9U83LtRb8PD3i984kr1z7eQMU SGdhPBZMyBxSw6hoAJ1E2pTGPQOIZ3z3Xg34GbvDHqJU+eNHvRxXTviSKGSgQI8AasPS M0og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T5paEt5e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a63600c000000b0055b635d97adsi465382pgb.619.2023.07.10.17.50.02; Mon, 10 Jul 2023 17:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T5paEt5e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230107AbjGKAeG (ORCPT + 99 others); Mon, 10 Jul 2023 20:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjGKAeF (ORCPT ); Mon, 10 Jul 2023 20:34:05 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B410F1B2 for ; Mon, 10 Jul 2023 17:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689035599; 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=2jCZmfZzjejGxfBXjkcFRYAyVQ6S1vH30csYuUaEOJU=; b=T5paEt5eQxkiNfsronyV5iN1a3R9WsZlavsPdJ+wqfx8JVa88cageYS8MEAzrOx25Q/1vp HAvx7IyYhQe0BZ1f2Rymx3lIZ3Qi5KPyAk5KrSdspjIsgr9alVLh7cXbd3EuNQZkBLcX9A k7vIRaI21iBfnEc5/ux5VHuRM1uLWWc= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-433-Xg-6SuwfOz-NT9k5sHsGaQ-1; Mon, 10 Jul 2023 20:33:13 -0400 X-MC-Unique: Xg-6SuwfOz-NT9k5sHsGaQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 25E7E1C06904; Tue, 11 Jul 2023 00:33:13 +0000 (UTC) Received: from [10.22.18.171] (unknown [10.22.18.171]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3DF5F40C206F; Tue, 11 Jul 2023 00:33:12 +0000 (UTC) Message-ID: <305038a0-1db8-3d0d-3447-48be1f03d41c@redhat.com> Date: Mon, 10 Jul 2023 20:33:11 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v4 0/9] cgroup/cpuset: Support remote partitions Content-Language: en-US To: Tejun Heo Cc: Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Juri Lelli , Valentin Schneider , Frederic Weisbecker , Mrunal Patel , Ryan Phillips , Brent Rowsell , Peter Hunt , Phil Auld References: <20230627143508.1576882-1-longman@redhat.com> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/10/23 17:08, Tejun Heo wrote: > Hello, Waiman. > > I applied the prep patches. They look good on their own. > > On Tue, Jun 27, 2023 at 10:34:59AM -0400, Waiman Long wrote: > ... >> cpuset. Unlike "cpuset.cpus", invalid input to "cpuset.cpus.exclusive" >> will be rejected with an error. This new control file has no effect on > We cannot maintain this as an invariant tho, right? For example, what > happens when a parent cgroup later wants to withdraw a CPU from its > cpuset.cpus which should always be allowed regardless of what its > descendants are doing? Even with cpus.exclusive itself, I think it'd be > important to always allow ancestors to be able to withdraw from the > commitment as with other resources. I suppose one can argue that giving > exclusive access to CPUs is a special case which doesn't follow this rule > but cpus.exclusive having to be nested inside cpus which is subject to that > rule makes that combination too contorted. > > Would it be difficult to follow how isolation modes behave when the target > configuration can't be achieved? I would like to clarify that withdrawal of CPUs from cpuset.cpus.exclusive is always allowed. It is the addition of CPUs not presents in cpuset.cpus that will be rejected. The invariant is that cpuset.cpus.exclusive must always be a subset of cpuset.cpus. Any change that violates this rule is not allowed. Alternately I can silently dropped the offending CPUs without returning an error, but that may surprise users. BTW, withdrawal of CPUs from cpuset.cpus will also withdraw them from cpuset.cpus.exclusive, if present. This allows the partition code to use cpuset.cpus.exclusive directly to determine the allowable exclusive CPUs without doing an intersection with cpuset.cpus each time it is used. Please let me know if you want a different behavior. Cheers, Longman