Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2440769ioo; Sat, 28 May 2022 13:47:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylfpPtrAYgOI+Fc8xjvYFxuInFMEumXXcVAXmeUnwhsVHGxjBHvzF3fmTlVyTYLdeK8/wF X-Received: by 2002:a05:6a00:1d0e:b0:519:2329:b44e with SMTP id a14-20020a056a001d0e00b005192329b44emr12553070pfx.77.1653770871711; Sat, 28 May 2022 13:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770871; cv=none; d=google.com; s=arc-20160816; b=ckNk77QKNGz/YYwy7gaYktqsemgtImCqtHaTlkC59dP77pgXIFoLHvTs0jcwqCWjVY hcpntvDfsds7z+hfMwPyvwfmVKg4u4EvT8VN2TxJIpRQFgKd+sfwg0RpEtzG0Rsdd471 Psa2ut0RFoUdXsrTluOa9ZZRKU9iqmGNLa3/cxvkjqxH0xj+3aq6j1xeQvJ14DDGzETT yNPOx78rlo6WXGECx0SYTDhgN2wXH5/4ND2Cu0M5d/v+0XPIfs4oNcbnVilr44dLn9j/ LILyGYeC1MxoD2h+BXuUFYuEJYAKmZQr2SjLx9B+3gGcMALqBaf/qiUb5L1lr4qxYyRF /IVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ilwYIs5Gou+6KWIg94cE+UezGzrKjPRd1eItzI7IQ74=; b=o5BtDXQvI73Dd77UwdTBakGnx3MYn6w/QZ3lhOH5ay2/EbfnmDHkD8B3h3KsEQnwtD 03FVN23i6mr/dc6BfJVZOGYUYMjfSfq2jNdepnMNVwQrLRKoUzHaGENDfQkXEa2PZmA+ 5gjY48UOEqvzxRMPiMzNCAL35Ap8iZfJwKerUKKrDT5quzUheUdcjizr3bAXKw/peI8m ikq6YmO2/KYxBcWJs3Yd8XMVU9meFe45QKiZWk2hVdtXFKk6fPY8gkPKbVLZ0gptj6ki 55qb7BLO6YOipu03IPkW5rKvrxhxfSHhDFOMI9C5sbm20dE0O5RWMOtZiLuZtgM+W2zc Z62g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ef+SL70p; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e12-20020a056a001a8c00b004fb142acb57si11385857pfv.160.2022.05.28.13.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:47:51 -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=@kernel.org header.s=k20201202 header.b=Ef+SL70p; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8684C43AC8; Sat, 28 May 2022 12:53:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243075AbiEZWvt (ORCPT + 99 others); Thu, 26 May 2022 18:51:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231535AbiEZWvs (ORCPT ); Thu, 26 May 2022 18:51:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A5C2DFF5E; Thu, 26 May 2022 15:51:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 215D8B80686; Thu, 26 May 2022 22:51:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E1FFC385A9; Thu, 26 May 2022 22:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653605504; bh=Tys7xlqJB6C43ppPS6C0HzRjdGQs+gMJMt+YF4tmbsE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ef+SL70pMsvyPQsPAYH+ZsTywBtkq2bZgHx5o6JYGqroTpuvsWi0ijdTRarDWRZVx lDBXcAw5Gfh6sDLhcAxHk0p7YqZW7nWUzIcYxWOmUj6yVQ9s/2sLSQg+d9qyf1qTFP icuIaNfXryBM4NgzyAsey3keror4qKYz+bySAP5r+P4t/BHu4FgrFY87NWwy90zvF2 PnnxMMhKPNbrfWfXWoyEawBDLLMeVhrTD8MPjRk2M1Loe/JjGRXrf2Qjzw8CVxsq35 KQ7/ptAXVN1ZGda4xqdienJXCdZKc1yEYn4gtA4dzTDeeYS8NEV0ZP8xOb6MmIfYWx wkLG36Mt8P1Dw== Date: Fri, 27 May 2022 00:51:41 +0200 From: Frederic Weisbecker To: Tejun Heo Cc: LKML , Peter Zijlstra , "Paul E . McKenney" , Paul Gortmaker , Johannes Weiner , Marcelo Tosatti , Phil Auld , Zefan Li , Waiman Long , Daniel Bristot de Oliveira , Nicolas Saenz Julienne , rcu@vger.kernel.org Subject: Re: [RFC PATCH 4/4] cpuset: Support RCU-NOCB toggle on v2 root partitions Message-ID: <20220526225141.GA1214445@lothringen> References: <20220525221055.1152307-1-frederic@kernel.org> <20220525221055.1152307-5-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 Thu, May 26, 2022 at 08:21:13AM -1000, Tejun Heo wrote: > On Thu, May 26, 2022 at 12:10:55AM +0200, Frederic Weisbecker wrote: > > Introduce a new "isolation.rcu_nocb" file within a cgroup2/cpuset > > directory which provides support for a set of CPUs to either enable ("1") > > or disable ("0") RCU callbacks offloading (aka. RCU NOCB). This can > > overwrite previous boot settings towards "rcu_nocbs=" kernel parameter. > > > > The file is only writeable on "root" type partitions to exclude any > > overlap. The deepest root type partition has the highest priority. > > This means that given the following setting: > > > > Top cpuset (CPUs: 0-7) > > cpuset.isolation.rcu_nocb = 0 > > | > > | > > Subdirectory A (CPUs: 5-7) > > cpuset.cpus.partition = root > > cpuset.isolation.rcu_nocb = 0 > > | > > | > > Subdirectory B (CPUs: 7) > > cpuset.cpus.partition = root > > cpuset.isolation.rcu_nocb = 1 > > > > the result is that only CPU 7 is in rcu_nocb mode. > > > > Note that "rcu_nocbs" kernel parameter must be passed on boot, even > > without a cpulist, so that nocb support is enabled. > > Does it even make sense to make this hierarchical? What's wrong with a > cpumask under sys/ or proc/? I'm usually told that cpusets is the current place where CPU attributes are supposed to go. I personally don't mind much /sys either even though cpusets looks like a more flexible way to partition CPUs with properties and tasks placement altogether...