Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1264490lfc; Wed, 1 Jun 2022 13:31:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfmslsJ/vBuVc70bKWKEAATiaupHbQwhXOqI0dF5DZcmcoGSXge1dee70u/tr00DOmbyR9 X-Received: by 2002:a17:90b:1b4c:b0:1e4:dac8:29e0 with SMTP id nv12-20020a17090b1b4c00b001e4dac829e0mr5917667pjb.36.1654115494982; Wed, 01 Jun 2022 13:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654115494; cv=none; d=google.com; s=arc-20160816; b=QMuMSeahKpXiaHsdOv6zKxRrywWowwqMeZImx+oaiwi6UC2KNiGGwFF6cAlx/jatVo JgZJ30yXpcwXccbphzVLpIKJZEaJWII/gjOZRGgF0sKyEjmX5qyZ/Y4ZJMvSwFShzZMO xHlsW13UgI3jrurgGWI31Q7hBMGgXH3u42nARO4DgdvdsRG/UvaCY+aAQla/UW86Nsd4 xOOzPSGvLGLoaOCFe9QIleh/Ap/WlnaqOueQ7hoW2t08dmRLujXZd3mfcTTqHcKsl05S qZi6Z+6LSJ9zxoLmo3DDkdHd+Vzffyz/7QI8Vu0dMl5faJp3hJmOuqpSnmcw4GJi/kFu eDlg== 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=054tb8AogR5kqRpkgYxu+jA4/lLcTMkATpeGkVLSWIc=; b=VtybgYPxDxf6NOBEz4KXI1cQvL3SVqmVAaE02z4Nax+C4Iu4aI1xYz1n5fiib7gZ5J N6am409yO1EIQglyKVvFbn6TwVNDn4I5mJnZ+EsnFCHd9E5ilSLc9BA8NxqHzI+Cvg73 iR9XjjkjAKNr/L+FRQIaF1iBhIY5Qpg5NAs+F7BXLJUjbyMzJ+ZLUUa6kdMbqsmJ7wfP f3PnFAaq3QGbIDWDB5cQVPuzvcEnCd7/VmcOq8Y+5zkzd95SREFdXtxvZd71GGZA0b0U 8i9MsqUHiLee9vt+7u99VEk1BvTk1NgqDz7zC7mc6Idv4wF87TpE25rgobuy1yJGY3a6 cyJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hl4m0BMn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c3-20020a170903234300b0016413dbbf89si3696379plh.166.2022.06.01.13.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:31:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hl4m0BMn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD406262AF8; Wed, 1 Jun 2022 12:40:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345213AbiEaOVY (ORCPT + 99 others); Tue, 31 May 2022 10:21:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242427AbiEaOVW (ORCPT ); Tue, 31 May 2022 10:21:22 -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 ESMTP id 829BA70367 for ; Tue, 31 May 2022 07:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654006878; 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=054tb8AogR5kqRpkgYxu+jA4/lLcTMkATpeGkVLSWIc=; b=Hl4m0BMnQzMusX6/hU2CKokGaBnOO97r8YUlBT0ACktb0zhErNfolKMk0hXddDLb3OLTOJ HMOxuk42dlwj9IeIxhQUqyuzUmiVVMfRZ8AUag4IlT45pr92Z3DwJIeGTKotaWcSqwMM8n asY7NJvHMXG8OG4qkQ5cfOWqRMmlDmE= 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-661-EylW6zkhOaC9wANYEmdqPg-1; Tue, 31 May 2022 10:21:12 -0400 X-MC-Unique: EylW6zkhOaC9wANYEmdqPg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CAE191C16B49; Tue, 31 May 2022 14:21:04 +0000 (UTC) Received: from [10.18.17.215] (dhcp-17-215.bos.redhat.com [10.18.17.215]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09D20492CA2; Tue, 31 May 2022 14:21:04 +0000 (UTC) Message-ID: <6936d198-7ae4-e022-20d5-e60c17f119e8@redhat.com> Date: Tue, 31 May 2022 10:21:03 -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: [RFC PATCH 4/4] cpuset: Support RCU-NOCB toggle on v2 root partitions Content-Language: en-US To: Peter Zijlstra , Frederic Weisbecker Cc: Juri Lelli , Tejun Heo , LKML , "Paul E . McKenney" , Paul Gortmaker , Johannes Weiner , Marcelo Tosatti , Phil Auld , Zefan Li , Daniel Bristot de Oliveira , Nicolas Saenz Julienne , rcu@vger.kernel.org References: <20220526225141.GA1214445@lothringen> <9e44bb00-955a-dbc6-a863-be649e0c701f@redhat.com> <20220527083018.n43nc73vuuzm5ixo@localhost.localdomain> <20220530004049.GA1251147@lothringen> <20220530105650.GA1257179@lothringen> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_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 5/30/22 09:16, Peter Zijlstra wrote: > On Mon, May 30, 2022 at 12:56:50PM +0200, Frederic Weisbecker wrote: > >>> This is ABI, you can't walk back on it. I would suggest starting with an >>> 'all feature' isolation. Only if there's real demand for something more >>> fine-grained add that on top. Simple first etc. >> That's actually my worry. If we start with an all in one ABI, how do we later >> mix that up with more finegrained features? Like what will be the behaviour of: >> >> cpuset.isolation.rcu_nocb = 0 >> cpuset.isolation.all = 1 > Well clearly that doesn't make sense. I was more thinking along the > lines of cgroup.subtree_control, where instead all features are enabled > by default. > > But only if there's a real usecase, otherwise there's no point in > providing such knobs. I am actually thinking about extending the cpuset partition interface for isolation. Right now, I have an outstanding patch [1] to add an "isolated" state to partition which disable load balancing somewhat similar to isolcpus command line option. In the future, we can add attribute to the isolation state like "isolated:full" to similar to nohz_full currently. If the needs arise, we can evenĀ  extend the attribute to allow list like "isolated:rcu_nocbs". I don't think it is good idea to keep on adding new cpuset control files extensively. I would prefer extending the existing ones. [1] https://lore.kernel.org/lkml/20220510153413.400020-1-longman@redhat.com/ Cheers, Longman