Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36158655rwd; Mon, 10 Jul 2023 19:17:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFMxsF5xvEEBKT5zQ9b8XT3s2HHz/xaPzs88a7girH0MTrZEUm2jgE6EZwl2R0KZvSEVUK/ X-Received: by 2002:a17:90a:b397:b0:263:1213:df3b with SMTP id e23-20020a17090ab39700b002631213df3bmr386963pjr.11.1689041830701; Mon, 10 Jul 2023 19:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689041830; cv=none; d=google.com; s=arc-20160816; b=qkdlNT4UVIU1E9i2YSfdwTx+xxQw3zkbogU30C2wgec0uknKNc6XyEkU05Om2eFcTh dapY4qjPQnzXrOuprybnK5QiyiIgqs73M3OwOH6rijEknwmHkcLWWFq2xNVBGpZ3OuTK uU24OJjfz7B8RkSnluDUpnbkgeskf3NR0SbzyQmFLVvEiO1m8A3oZk3xpd/TuvC1tkx1 xWGW2KOA6jE1XJIw4oBlJL6UfNDWLWhD2kEqrArldT+RikLfR1modPD9VEVzTzL+GduZ pglNYCXerU+9Frfv6Llh3scre3CFnMtBSjDy8akYaAXUDkhBnjrKsuLfIGfMylBFQ8CJ hNbg== 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=CgrK8riab39mc/l4RMQ9kP4UiPJ/E6e+0z17cQMh7m8=; fh=oYRzRzQ337m9sNrFDN4f6gowTZYubNby5HvuxUP/+tA=; b=QfbrmmRLj5j8p7j8P8se4hbAtmZUyKBB7iSSnyCXjD+QogCEtrbe6KTpdXSHOWsJ23 8Q0TcCJTRE2dmEWub3aZJ9I2tS+MHjqh6kq7c9E1uExlcZUorIWS190F9sGCK8xqSOFc rPzL3YCMuFr0F4SXPOLOP8huaCqdKvhO9nDO6HLrObSiDiqYE68bmPtP6etqyadRN8wT kC9Knob+I56poRPzeh5xAyn/LarxyYs2ywKhf9e5I5u88z5RwkkuA5kxvDhzTxHH8tIH 8Z4PemMM/hsmj7HVJRp6vjE/9Du5ushjW5FF9CO1S6YxicJtQuqjVVNFbnfpzhvDkKBW uW8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QSe+hgNx; 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 w7-20020a17090a5e0700b002639c4f81d5si8205761pjf.147.2023.07.10.19.16.58; Mon, 10 Jul 2023 19:17:10 -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=QSe+hgNx; 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 S230063AbjGKBjH (ORCPT + 99 others); Mon, 10 Jul 2023 21:39:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbjGKBjG (ORCPT ); Mon, 10 Jul 2023 21:39:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D34B7E3 for ; Mon, 10 Jul 2023 18:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689039496; 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=CgrK8riab39mc/l4RMQ9kP4UiPJ/E6e+0z17cQMh7m8=; b=QSe+hgNxTna8/qL03cE8y2Ll7gLkmUe3I68ldn5OsAhtKdWcHk1baq3xFae4aKYMv/XwRh uml05n5DnPGjZ5gjdWRncf9HW2Nra1Sc/iet/weOKvttQAuJauSQUtPYXYHfsGyxtEG+ep mumHHESKGnVCX4e6QALTgVksRb7aPPs= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-632-Nc2M2H8GO4WdFDGoVYDBIg-1; Mon, 10 Jul 2023 21:38:14 -0400 X-MC-Unique: Nc2M2H8GO4WdFDGoVYDBIg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4390680269A; Tue, 11 Jul 2023 01:38:14 +0000 (UTC) Received: from [10.22.18.171] (unknown [10.22.18.171]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1DAF92166B26; Tue, 11 Jul 2023 01:38:13 +0000 (UTC) Message-ID: Date: Mon, 10 Jul 2023 21:38:12 -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> <305038a0-1db8-3d0d-3447-48be1f03d41c@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.6 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=ham 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 21:00, Tejun Heo wrote: > Hello, > > On Mon, Jul 10, 2023 at 08:33:11PM -0400, Waiman Long wrote: >> 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. > Right, that'd be confusing. > >> 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. > This is kinda confusing too, I think. Changing cpuset.cpus in an ancestor > doesn't affect the contents of the descendants' cpuset.cpus files but would > directly modify the contents of their cpuset.cpus.exclusive files. > > There's some inherent friction because cpuset.cpus separates configuration > (cpuset.cpus) and the current state (cpuset.cpus.effective) while > cpuset.cpus.exclusive is trying to do both in the same interface file. When > the two behavior modes collide, it becomes rather confusing. Do you think > it'd make sense to make cpus.exclusive follow the same pattern as > cpuset.cpus? I don't want to add another cpuset.cpus.exclusive.effective control file. One possibility is to keep another effective masks in the struct cpuset and list both exclusive cpus set by the user and the effective ones side by side, like " ()" if they differ or some other format. What do you think? Regards, Longman