Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36274238rwd; Mon, 10 Jul 2023 21:37:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEU4mMVI70zvFCLsbTHr6mm5qYrzoIKZeUIOEbInvqZp5HuYsTkzYwz9kwSwsbwbyP9q3iZ X-Received: by 2002:a17:906:738f:b0:993:d0e1:f308 with SMTP id f15-20020a170906738f00b00993d0e1f308mr9748608ejl.2.1689050228532; Mon, 10 Jul 2023 21:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689050228; cv=none; d=google.com; s=arc-20160816; b=Iw9qc7kV8YIdgBYnZ5Hl5HB6hGjsQgw5nQ0CJlX6HfAEJe1S/KXsDTtSaVgzr8yo5q 4LVKdbHUuEoHVvqvh1HgrIRCAHSFBGnPIP9Oc1kQ/koBN0icsf3ZUsiBM+yLGng5Gepk 2ZdZzF47UldyFZ7E2i+tYYDMgkWJOT3Ujbrj+4LxGdVlykfzjVa/V5OozZqB8VYl95i7 KttknNNzLjZ5HVgdOrU22hJr+CCPYCI/Nx8FPf//y3MIgCRYQcVdqPz2OS5krD8x7AgG OU5FygUgS/PgX01RjPOZjq7ePyNj7BfVPf8ViLJT/EpihHKYP86yonYJ90EZP+4Iyp9n umUA== 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=bj1nFMlX6IrlygC3UiCib90ggxtKBa1bC1e3kuNGIGw=; fh=oYRzRzQ337m9sNrFDN4f6gowTZYubNby5HvuxUP/+tA=; b=Krrj63Zh+XmCzv9xWxIRonl0t71MQcbfDK12VvggJFJ6OuqWxpKm61wNKg7hBtIoDq akpPFGj6lSuIlQ5abSsVVBypnBVsvyZBEDAnDSaCFBlDmgL+Vwm7dZSNBB+QDcWJsoQI CryJSVaGGKqy0ceFj7OCyve2C5rXxoOfaCBGXBnsq8P5dxEZYod5PeZyjMzkhjK8BVn5 ZPXk2RCyB7RXqneYE1B0/EOjlcYAh4MlTDjib/1t69qubT/JvjeJeljBf70C1qYF7+nb cVoXc1LeigA2Moec6dujgOsw0tp2TsEdvsOsHLnA0PAWjs3Yreh2qN50Ui+ieFF1d6mx HBpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QpFVCwft; 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 w10-20020a170906184a00b0098291c57810si1122877eje.704.2023.07.10.21.36.44; Mon, 10 Jul 2023 21:37:08 -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=QpFVCwft; 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 S229752AbjGKDZa (ORCPT + 99 others); Mon, 10 Jul 2023 23:25:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbjGKDZ1 (ORCPT ); Mon, 10 Jul 2023 23:25:27 -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 7724AC0 for ; Mon, 10 Jul 2023 20:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689045882; 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=bj1nFMlX6IrlygC3UiCib90ggxtKBa1bC1e3kuNGIGw=; b=QpFVCwftPNRwd62VlPyw2vo0qu4SIFKHOsQVA+q63Lh0QZs099mWgwvaiFUwLIAyAgwSID 4zAJ1IJAuUGoTpflATCsZ0Fpen4P3TalUX/E5VWuW0MGrcx+V3LFdDRdkW/P+UZm1HsiBp jaTbE/Zy1m+SsCGpWyNMl4p2JI8A4wY= 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-447-ZWqJQPhYO0Gqnk1uTT0naQ-1; Mon, 10 Jul 2023 23:24:39 -0400 X-MC-Unique: ZWqJQPhYO0Gqnk1uTT0naQ-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 A17A01C07243; Tue, 11 Jul 2023 03:24:38 +0000 (UTC) Received: from [10.22.18.171] (unknown [10.22.18.171]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6DDEF40C206F; Tue, 11 Jul 2023 03:24:37 +0000 (UTC) Message-ID: <82aeb5aa-7d69-78dd-bb26-60a51dc8a839@redhat.com> Date: Mon, 10 Jul 2023 23:24:37 -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 8/9] cgroup/cpuset: Documentation update for partition 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> <20230627143508.1576882-9-longman@redhat.com> <6d5aee58-f558-868c-76e0-0b58f8332110@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_BLOCKED,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:07, Tejun Heo wrote: > Hello, > > On Mon, Jul 10, 2023 at 08:53:18PM -0400, Waiman Long wrote: >> For local partition, it doesn't make sense to have a cpust.cpus.exclusive >> that is not the same as cpuset.cpus as it artificially reduce the set of >> CPUs that can be used in a partition. In the case of a remote partition, the > Yeah, I was wondering about local partitions. "Automatic but can be > overridden" behavior becomes confusing if it's difficult for the user to > easily tell which part is automatic when. I wonder whether it'd be better to > make the condition static - e.g. for a partition cgroup, cpus.exclusive > always contains all bits in cpus no matter what value is written to it. Or, > if we separate out cpus.exclusive and cpus.exclusive.effective, no matter > what cpus.exclusive is set, a partition root's cpus.exclusive.effective > always includes all bits in cpus.effective. With no offline CPUs, cpus.effective should be the same as cpus.exclusive.effective for a valid partition root. Here cpus.exclusive.effective is a bit different from cpus.effective as it can contain offline cpus. It also mean that adding cpus.exclusive.effective can be redundant. As said before, I try to avoid adding new cpuset control file unless absolutely necessary. I now have a slight different proposal. Once manually set, I can keep cpuset.cpus.exclusive invariant. I do need to do a bit more work when enabling a partition root to find out the effective set of exclusive CPUs to be used or make the partition invalid if no exclusive CPU is available. I still want to do a initial check when setting cpuset.cpus.exclusive to make sure that the value is at least valid at the beginning. Do you think this is an acceptable compromise? Thanks, Longman