Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3989136rdg; Wed, 18 Oct 2023 11:25:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3HssiOSWzgpeeTZmkCKb0X7+Z9ZkkEgJEvEO/cZwfdPT6rRjXYFCiXwd/yJQXPuMFfU+x X-Received: by 2002:a17:902:f9c5:b0:1ca:3c63:d5d3 with SMTP id kz5-20020a170902f9c500b001ca3c63d5d3mr167861plb.2.1697653512950; Wed, 18 Oct 2023 11:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697653512; cv=none; d=google.com; s=arc-20160816; b=Etvw3XUkBM/T+PVq1E0LPgxAiGmMMcUiFlTzI/7V7KzTbsmCaz/Sfqtl9Krc3Hbffl oFwSFFajHcTliMVTwdvyHODroEQCrb4l27oRjfQTIVAesAohaqX7njLOoKTiSitXwnoW oQiDjl4cBRdezHtyxSwXLHSEg4X9Si381VLpeeYef8bhaA88BuAAzqb27xMd3HRJoh33 ltiG8338PjND+wfDRh9Kxr8X/QqDqMj9rVRwnCi1Q4jDJlGf7F98WqqYA3RF/5bRh5Mt mczVk5k6BOGVg8Ql0VkTcvu4Y//ZwCt1mDX/yT/aYT6oXgMHfYZYWPW/47YcVwZbZlVc C2lQ== 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=CIWHA5EsQxn8oXTAVVO/hzlkn7yk8ivfF/yUbUaA+e4=; fh=qHj29L2A5mwzu/PF4m4XcxAWuokRE3PlYhTqb6/cyNs=; b=RfFIkQEo/6Q17iPNG0juNWGkhRXXr+cQf4Hj1jNtCGfLoqnlTQeFObzMUyEEP4KqCK WsoDUpveFQsTCwco78ASvfgDDS8OrQQnqrf2CWYHTEBYj7cF3F6BAeXvl7YKRAtpTSns ZE0qPo1OrsbsBFZhcNkirEvJAYeaZoTfxSzCzQfHERueGxlecjIuADW4h7X4mhLkMWHQ p+dT8ULCgv2IS48ha2Qq1/KOSXW9HQ8dVdWHliVzAQ3ASju3/zJIjEu5KR6DOLQIalFr J7X4J+poU4GDj9dXqRbdyx4SEMFmDTZVgXiSMcxoOFbN4uN+eNeZVxtzdQBuUdvn9dMH rVjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cbOSUvwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id 5-20020a170902c24500b001ca335f7147si416827plg.57.2023.10.18.11.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 11:25:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cbOSUvwC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1254781489EB; Wed, 18 Oct 2023 11:25:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231992AbjJRSY4 (ORCPT + 99 others); Wed, 18 Oct 2023 14:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231715AbjJRSYz (ORCPT ); Wed, 18 Oct 2023 14:24:55 -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 6DAE3112 for ; Wed, 18 Oct 2023 11:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697653445; 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=CIWHA5EsQxn8oXTAVVO/hzlkn7yk8ivfF/yUbUaA+e4=; b=cbOSUvwCcKctKg6qphWQ2w0ghuToEPjheEjXTde7YZWVWs52XrSUq8WwlFGzmWmxST5pzW 8k0EdHYEpHr/Lew6AKbN6e1xbG+rX0/DQyS2SceqiWKqZSzG5LsYcki4iC7pWHyKUmw0C6 WevCbz5MtYB4FxKUBAoNSJiIlDbLHhU= 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-668-V6m3BlN7NjGuLYj_jCbQKg-1; Wed, 18 Oct 2023 14:24:02 -0400 X-MC-Unique: V6m3BlN7NjGuLYj_jCbQKg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 199A0857D0C; Wed, 18 Oct 2023 18:24:01 +0000 (UTC) Received: from [10.22.17.22] (unknown [10.22.17.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F7872166B26; Wed, 18 Oct 2023 18:24:00 +0000 (UTC) Message-ID: <59448803-ac86-0762-d828-c3eba431ceb4@redhat.com> Date: Wed, 18 Oct 2023 14:24:00 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH-cgroup 3/4] cgroup/cpuset: Keep track of CPUs in isolated partitions Content-Language: en-US To: Tejun Heo Cc: Zefan Li , Johannes Weiner , Jonathan Corbet , Lai Jiangshan , Shuah Khan , cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20231013181122.3518610-1-longman@redhat.com> <20231013181122.3518610-4-longman@redhat.com> <9e2772e3-f615-5e80-6922-5a2dd06a8b07@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.4.1 on 10.11.54.6 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 11:25:10 -0700 (PDT) On 10/18/23 14:08, Tejun Heo wrote: > On Wed, Oct 18, 2023 at 09:30:04AM -0400, Waiman Long wrote: >> On 10/18/23 05:26, Tejun Heo wrote: >>> On Fri, Oct 13, 2023 at 02:11:21PM -0400, Waiman Long wrote: >>> ... >>>> @@ -3875,6 +3931,13 @@ static struct cftype dfl_files[] = { >>>> .flags = CFTYPE_ONLY_ON_ROOT | CFTYPE_DEBUG, >>>> }, >>>> + { >>>> + .name = "cpus.isolated", >>>> + .seq_show = cpuset_common_seq_show, >>>> + .private = FILE_ISOLATED_CPULIST, >>>> + .flags = CFTYPE_ONLY_ON_ROOT | CFTYPE_DEBUG, >>>> + }, >>> I'd much rather show this in a wq sysfs file along with other related masks, >>> and not in a DEBUG file. >> It can certainly be exposed as a permanent addition to the cgroup control >> files instead of a debug only file. However this set of isolated CPUs may be >> used by others not just by workqueue. So I doubt if it should be a sysfs >> file in the workqueue directory. I can see if it is possible to put a >> symlink there point back to the cgroupfs. > I don't know whether it will happen but let's say there will be three > subsystems which call into workqueue for this. Wouldn't it be better to have > all of them in workqueue sysfs using a consistent naming scheme? What does > putting it in cgroupfs buy us? If you mean saving the exclusion cpumask no matter who the caller is, we can add another exclusion cpumask to save it and expose it to sysfs. This should be done in the first workqueue patch, not as part of this patch. I expose this isolated cpumask for testing purpose to be checked by the test_cpuset_prs.sh script for correctness. As said, I can expose it without cgroup_debug if you think the information is useful in general. Cheers, Longman