Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1771280rdb; Sat, 10 Feb 2024 17:47:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVBCuATCHAubZDRCw43y62Plvx3L7RldfgFDMebfxGYhmD8CclB2hqQOKeXlOFVEMFtFfnKpUWJs5mUuKdkieQxqkHnXx+wXZCYrBhgjg== X-Google-Smtp-Source: AGHT+IFwmUSSTtcGJYBA+BBWhNOg4vu0Mu6f3wcmYnGQCMk1L5jeGZ404T5gh93zaClTGDroXiRS X-Received: by 2002:a05:6808:f89:b0:3c0:32e3:7283 with SMTP id o9-20020a0568080f8900b003c032e37283mr1394818oiw.6.1707616038853; Sat, 10 Feb 2024 17:47:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707616038; cv=pass; d=google.com; s=arc-20160816; b=mQqCPCJ0wZNDadkujoNd9R0k3AHToHcwZ5BC0Q99q/T9onhnyrQ//zGQfOFBedbIYH IzhVOtDkoh9FC78u203q84YLfd8SOju8BbON2QYpqG9b3DooQXx01AwmrmpVrwyVNGh2 UYAnfQ+oXjGoUTs5/Rv5ljyiDhm0fnwDB0oNP0jUxGWJ2G+fyMKuLiOZ9qEk/TZXM1sD JcriFo1X3lgSB6RUEcu66HW6eMnimCDQid2ILT2mO1FUCYO9E7ZCQe0WAzImkALrsM1V bcIObMjqtOPE3y30M4plz+D/KJWFQSeC7Ycx16bUq9MC133o7kZY+8SaMpAhTMoShu7J BahQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=fGLK4dJX5e1tF4UUiUtCFTTT+Sp7JjuwMt77i6yrPM0=; fh=Dq2eFMa6d6TbbZuXPXCz4WjT610wAG17OM+nZe1Tjog=; b=L6l58StcV0khEKKm+7jLx425r6wCXRHkwATbEjTIgosZCKHYp2UuC1LU24OiRW4r7h BurcyLN/E9b2tiHbOnOOpr3xiB9xPNKYlQFkl2Q8TUgyRH4fL4EBAeznUClVlpGZGwpZ 1dCBM/fAXZYPbr3hnrwb8GSJe/F4hWrYEVJJy2lp58wIlT/UTiY/e6duzMoRqs0e3Bpl zSFJB/3ZblLJA6UvUGlS78Rk5owVBO5r2j91CpXHFvN2ZTtewWzM/8t/z0yLedPd9YDf BUQDZD7CtE0nZuLQBHTqzJVl/IQy8VeS8eT79IRJ3tO/IqLbYYmrVY7/r4FFF0KAXt4G X3Sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ciFknbf2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-60625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60625-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCUm6wRG0VeLFBsbUmVARYl+lJ0nwz9iwyKPrqsce7YtsBmBOFBYDOPluXmsPCbBmoGIdE8pdZ2mulxR5YVoyAu0ARDkcym0Ejap+E473w== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y9-20020aa79e09000000b006e086ac9d5esi2769359pfq.278.2024.02.10.17.47.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 17:47:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ciFknbf2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-60625-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60625-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 14673B2412B for ; Sun, 11 Feb 2024 01:47:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 424AF1FBE; Sun, 11 Feb 2024 01:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ciFknbf2" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECA9317F3 for ; Sun, 11 Feb 2024 01:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707616011; cv=none; b=tUKSJm3P81MFi7Fl3LaUnuNDv89VwQhm8eZWopFfKHcD3RXjPcnJriGyIPGoGcoMO5kx1Dg5Qs/vlmvlG1S8GEGBcCMSV6Rjuw+PLuEzv97IBRwmmWNNBLuv6omVn8TxzuXVZFt2al5YG3eOE8E1Y7pgL54w+rogqm9pyL7WH+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707616011; c=relaxed/simple; bh=BQmjpW0I5tJ8/1nqzqWJxFSuGQt107l1mhgaSnsMkJI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=omIGNmfg7N1BhgleounH5GztULKmytQVa+9qvczEFyqBdc85CCfMzh2kKYCv+PZhCIDvNimHLgtbgq6mOVXaBElngSqks9VzEUVOjO9b0mISnT+YNN9VsPkN9/1GEaEw7pjJ00voCAgpen1OZQA85Z7ECQ1GUanKuAaN2XZo67Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ciFknbf2; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707616008; 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=fGLK4dJX5e1tF4UUiUtCFTTT+Sp7JjuwMt77i6yrPM0=; b=ciFknbf2BfnlbQwUj2lLBUE2XdKWf5byzI6IoV1/NyG9QAAswjN07FrvDaJT6lxO83XJKr GmlXviues/3AGc8C6EK3eAchE8YnOoND0J44vupKy4fTpdR+2IxROXLnl2kWengN2r8KN9 07pskrdgQgmBcbn7mOAQbFQPHKE9SJc= 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-571-yiTLxjd_N9GMU2JQXIMtGQ-1; Sat, 10 Feb 2024 20:46:41 -0500 X-MC-Unique: yiTLxjd_N9GMU2JQXIMtGQ-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 B7C7E38212CD; Sun, 11 Feb 2024 01:46:40 +0000 (UTC) Received: from [10.22.16.18] (unknown [10.22.16.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 99E84111CD4C; Sun, 11 Feb 2024 01:46:34 +0000 (UTC) Message-ID: <099a0310-6805-4ad5-aa99-2589e768acd6@redhat.com> Date: Sat, 10 Feb 2024 20:46:34 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 0/8] cgroup/cpuset: Support RCU_NOCB on isolated partitions Content-Language: en-US To: paulmck@kernel.org Cc: Tejun Heo , Zefan Li , Johannes Weiner , Frederic Weisbecker , Jonathan Corbet , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Davidlohr Bueso , Shuah Khan , cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org, linux-kselftest@vger.kernel.org, Mrunal Patel , Ryan Phillips , Brent Rowsell , Peter Hunt , Cestmir Kalina , Nicolas Saenz Julienne , Alex Gladkov , Marcelo Tosatti , Phil Auld , Paul Gortmaker , Daniel Bristot de Oliveira , Juri Lelli , Peter Zijlstra , Costa Shulyupin References: <20240117163511.88173-1-longman@redhat.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 On 1/19/24 05:24, Paul E. McKenney wrote: > On Wed, Jan 17, 2024 at 11:35:03AM -0500, Waiman Long wrote: >> This patch series is based on the RFC patch from Frederic [1]. Instead >> of offering RCU_NOCB as a separate option, it is now lumped into a >> root-only cpuset.cpus.isolation_full flag that will enable all the >> additional CPU isolation capabilities available for isolated partitions >> if set. RCU_NOCB is just the first one to this party. Additional dynamic >> CPU isolation capabilities will be added in the future. >> >> The first 2 patches are adopted from Federic with minor twists to fix >> merge conflicts and compilation issue. The rests are for implementing >> the new cpuset.cpus.isolation_full interface which is essentially a flag >> to globally enable or disable full CPU isolation on isolated partitions. >> On read, it also shows the CPU isolation capabilities that are currently >> enabled. RCU_NOCB requires that the rcu_nocbs option be present in >> the kernel boot command line. Without that, the rcu_nocb functionality >> cannot be enabled even if the isolation_full flag is set. So we allow >> users to check the isolation_full file to verify that if the desired >> CPU isolation capability is enabled or not. >> >> Only sanity checking has been done so far. More testing, especially on >> the RCU side, will be needed. > There has been some discussion of simplifying the (de-)offloading code > to handle only offline CPUs. Along with some discussion of eliminating > the (de-)offloading capability altogehter. > > We clearly should converge on the capability to be provided before > exposing this to userspace. ;-) Would you mind giving me a pointer to the discussion of simplifying the de-offloading code to  handle only offline CPUs? Thanks, Longman