Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4895992rdb; Tue, 12 Dec 2023 12:19:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHn7rITLiaOXpKTCmGO8tpI0tZfqM6sxp6TaUDsx9uJemKte/jFpA1a3ZJZKU2+PvCyqPwp X-Received: by 2002:a17:902:d48e:b0:1d0:9f40:7a82 with SMTP id c14-20020a170902d48e00b001d09f407a82mr4020977plg.97.1702412345079; Tue, 12 Dec 2023 12:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702412345; cv=none; d=google.com; s=arc-20160816; b=yYpnSQmsdQQ3VNr5Vjv0RaL24DLkdzh+xEyvO4afVePJbmenaEl8SyGMSbV9+5eM4M 09jIYq2/9uJ5vLC2aOnQuGNtnWseHZaxuPEYdCv39CmxjkdTvDT5KTvBCpzyR0nchdIJ RvbHG86o2SrqeZxtELqUpKbrLhWPdx4fyIX7TnoqKM/Da0zQ6UQJCQro+Uj4MwEl/ytB FeG5si5F8xU1zQlEgrxewstNptVSZpw0JovWq1M2T8VIudBzaqQVZlbF413FgvIZa+IB 0GZ710xjiFmbUXS3A5EKG1JsB40DFqc+0Q5Ih8Lh3E5nEbIXmKPGAziY6wN4RxzRfjf9 WPpg== 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=dD7n4FEhzaAZ3ePERhfLjk9v1ddSq1XthivNhDJYrVY=; fh=6XPccZ+h0BFYqlImKQXlC6RNH5Vj+sg4cvhZ+Ob5vcY=; b=vEmVOOAtO21D9aTfWNQ9tBKARK8XIA+SBCobsoTCVpoisPsMb5oceZtr9dE4iEoFBd uGk9PJxUK9zZFQ4ahVyv7J8/RxN2sMQXkkqeQfVeTiwMs8Z4c9nFThYIeOMfeRtltMqh 0APoOM3YzW3YAncnkQ0kypAIlp0KdyN60aiNnY0HiL7/vfPhX9zmrpsLGpDfdBvFcOOh 8UMd81M9kkRkJaB4eWSnM1itgNXnMyqme14aiKFh2/T5w631JBTFrYBz84lBPidUDlYh fqXpArcuZEU7vAU/QBq+khZAZM603EgRJH2zzsYsnnZXUvTDOoLmE3xjISDZ+46rzf5i mwIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="IR/lIuIy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id iz9-20020a170902ef8900b001d2f6d7f089si6822839plb.254.2023.12.12.12.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 12:19:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="IR/lIuIy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id B624680A80CE; Tue, 12 Dec 2023 12:19:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377263AbjLLUSo (ORCPT + 99 others); Tue, 12 Dec 2023 15:18:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbjLLUSn (ORCPT ); Tue, 12 Dec 2023 15:18:43 -0500 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 580E998 for ; Tue, 12 Dec 2023 12:18:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702412328; 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=dD7n4FEhzaAZ3ePERhfLjk9v1ddSq1XthivNhDJYrVY=; b=IR/lIuIyLoucviVm7tZGFK51DIm2NvwIwHkDUe4vhQzuI9CkYgLa+VpSyl70Nbevre7+v2 yc+NrAN4uz5uNv83xslqraXf8qoTdVPh8yG3tPOmSndqwux+gyOY8E44jBuy1i6M/9RPrM e6salYjcemXmH6v2T1gaU4B1yxwc6wE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-314-XU9fbFpjPayyDVyzQr9e8Q-1; Tue, 12 Dec 2023 15:18:45 -0500 X-MC-Unique: XU9fbFpjPayyDVyzQr9e8Q-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ACD8D1C0BB42; Tue, 12 Dec 2023 20:18:44 +0000 (UTC) Received: from [10.22.10.183] (unknown [10.22.10.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id BD1EE1121306; Tue, 12 Dec 2023 20:18:43 +0000 (UTC) Message-ID: <7e3bf653-d3ea-48b0-b808-d92a3c5f2c5b@redhat.com> Date: Tue, 12 Dec 2023 15:18:43 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Modifying isolcpus, nohz_full, and rcu_nocb kernel parameters at runtime Content-Language: en-US To: Frederic Weisbecker , Gianfranco Dutka Cc: Tejun Heo , Vincent Guittot , linux-kernel@vger.kernel.org, vincent.guittot@linaro.com, Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , "Pandruvada, Srinivas" , Phil Auld , Cestmir Kalina References: <76587DD3-2A77-41A3-9807-6AEE4398EBA6@arista.com> <25E6E1E4-DC16-490E-B907-A3236FB9317A@arista.com> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 12:19:02 -0800 (PST) On 12/12/23 08:27, Frederic Weisbecker wrote: > On Fri, Dec 08, 2023 at 09:18:53AM -0500, Gianfranco Dutka wrote: >>> The isolcpus, nohz_full and rcu_nocbs are boot-time kernel parameters. I am in the process of improving dynamic CPU isolation at runtime. Right now, we are able to do isolcpus=domain with the isolated cpuset partition functionality. Other aspects of CPU isolation are being looked at with the goal of reducing the gap of what one can do at boot time versus what can be done at run time. It will certain take time to reach that goal. >>> >>> Cheers, >>> Longman >>> >> Thank you Waiman for the response. It would seem that getting similar >> functionality through cgroups/cpusets is the only option at the moment. Is it >> completely out of the question to possibly patch the kernel to modify these >> parameters at runtime? Or would that entail a significant change that might >> not be so trivial to accomplish? For instance, the solution wouldn’t be as >> simple as patching the kernel to make these writeable and then calling the >> same functions which run at boot-time when these parameters are originally >> written? > As for nohz_full (which implies rcu_nocb), it's certainly possible to make it > tunable at runtime via cpusets. If people really want it, I'm willing to help. As said by Phil, your help in in enabling dynamic rcu_nocb will be greatly appreciated. My current thought is to have a root level cpuset.cpus.isolation_control file to enable additional CPU isolation like rcu_nocb to be applied to CPUs in isolated partitions. Cheers, Longman