Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp101617iog; Sun, 12 Jun 2022 20:27:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb9CxnId018+ZF4jO7stT86RG9LDv3p9XLDBUFrVywvVK05C86CXvWYE/ErlT7+J8hVhOc X-Received: by 2002:a05:6402:42d4:b0:412:c26b:789 with SMTP id i20-20020a05640242d400b00412c26b0789mr62410659edc.232.1655090846732; Sun, 12 Jun 2022 20:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655090846; cv=none; d=google.com; s=arc-20160816; b=axu48PiCojdVR4ruZ9f3DqHo3Yg1hsEWCGN5etkFZTWNrcbFM6Q40I30qC71GTT/Tk /jDsmelvYaK40rH7b2qQP64IVxBPX9gWqxWweau0sWMVz8Cg1072eYui6RSamO1xhk+R X+KhsmLtqo2h3b8ZbUjZIZ7MikvSkiRhVA8xR4t1ZsU+ZLhisRiW/DWZptyWMS1WkPLL PwaaFuv/cjWBOvAUaTuB8j4ZivSGEfwqVhQHvkP/gL7oo2LVfblBnv2JBVPReyokP1aS ExI1YWDGchT4gYg8/uJuJ86CWy7matcMNhzli/QyU4o0XHWCLkkYf2N7R4knixDs/V2X 2TTw== 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=F58ZoXbX4GWpAIzK3fVF2XxLcUUEcOzj0SgrznA2bos=; b=YSpNb+6urbKM3vJXWdhriWOqP32gxYSHe6Jl30g+jMvBPpxUlFNeWBDnB0cv8Y8lH5 gzgqX1nCuZVtVbthGXyWLFAShWPbLOmYGeuovNY2FKPmoiP3aWwAeBQS56LcWNV37Q77 V0oWU2W6e2qZko8rtI+hYyk7LKRV/fsO1FrhXL5R5FJeNOzCsIwAwJwRw4iAJ2kiq3zn Gi/pL31kPunADWkIugiVj+bPvWSbITESPkybs6L4B/9R+umpJral2dpm2e+TCpf3zRCa NR7LWU5xIsX3kntDC+OjcxNpn1MTsRlHDqbLZi/h1xzboFeQ2EsuJOA/DUCqONi7F1p9 XiFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ahCP0UcK; 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 hb7-20020a170907160700b007118b080e9asi7436954ejc.1004.2022.06.12.20.27.01; Sun, 12 Jun 2022 20:27:26 -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=ahCP0UcK; 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 S231469AbiFMDCu (ORCPT + 99 others); Sun, 12 Jun 2022 23:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbiFMDCr (ORCPT ); Sun, 12 Jun 2022 23:02:47 -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 ESMTP id ECA7CE73 for ; Sun, 12 Jun 2022 20:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655089365; 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=F58ZoXbX4GWpAIzK3fVF2XxLcUUEcOzj0SgrznA2bos=; b=ahCP0UcKpkXX5GOufmmHwnSPk8LKEkMcaBLEdyahRmAKNEtYZi1Chk4SNvw3TRNFY5QoYh jH+c46hj7SCNPxkZk93uJn3k8nhS3WHOU9d2rmUAPM3GrMhWs+1B16ZV7HNIr9bkPp0Ey9 2YAhlJFihcW3Xu9FancXqtVvVmCwM70= 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-606-AnmAdcG4NcW4gv-b48OK-w-1; Sun, 12 Jun 2022 23:02:40 -0400 X-MC-Unique: AnmAdcG4NcW4gv-b48OK-w-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 5BFED185A7A4; Mon, 13 Jun 2022 03:02:39 +0000 (UTC) Received: from [10.22.16.100] (unknown [10.22.16.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8CF9D2166B26; Mon, 13 Jun 2022 03:02:38 +0000 (UTC) Message-ID: <404171dc-0da3-21f2-5003-9718f875e967@redhat.com> Date: Sun, 12 Jun 2022 23:02:38 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v11 7/8] cgroup/cpuset: Update description of cpuset.cpus.partition in cgroup-v2.rst Content-Language: en-US To: Tejun Heo Cc: Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Andrew Morton , Roman Gushchin , Phil Auld , Peter Zijlstra , Juri Lelli , Frederic Weisbecker , Marcelo Tosatti , =?UTF-8?Q?Michal_Koutn=c3=bd?= References: <20220510153413.400020-1-longman@redhat.com> <20220510153413.400020-8-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 2.78 on 10.11.54.6 X-Spam-Status: No, score=-4.5 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,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 6/12/22 13:49, Tejun Heo wrote: > Hello, > > On Tue, May 10, 2022 at 11:34:12AM -0400, Waiman Long wrote: >> + External events like hotplug or changes to "cpuset.cpus" can >> + cause a valid partition root to become invalid and vice versa. >> + Note that a task cannot be moved to a cgroup with empty >> + "cpuset.cpus.effective". >> + >> + For a valid partition root or an invalid partition root with >> + the exclusivity rule enabled, changes made to "cpuset.cpus" >> + that violate the exclusivity rule will not be allowed. > My memory is failing but this is the same thing that we were discussing > before, right? The point was that the different behaviors re. system events > and config actions seemed unncessary and IIRC Michal was of the same opinion > (please correct me if I'm misremembering). That is the behavior enforced by setting the CPU_EXCLUSIVE bit in cgroup v1. I haven't explicitly change it to make it different in cgroup v2. The major reason is that I don't want change to one cpuset to affect a sibling partition as it may make the code more complicate to validate if a partition is valid. > >> + A valid non-root parent partition may distribute out all its CPUs >> + to its child partitions when there is no task associated with it. > I'm probably forgetting something. Was this necessary because of threaded > cgroup support because otherwise the above condition is superflous? The top cpuset cannot have empty cpus.effective whereas the non-root partition roots can. Maybe I should reword it to make it more clear. Thanks, Longman