Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3000975lqp; Mon, 25 Mar 2024 16:22:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjI+ZOhBXivjhxYBJAy1pNaEJHin2Ye2VIQ7Wtg+iwSKZY/xLZ5sxmIpSry307sdX7uimR+m5V7EEBI2kqcTpNFKfYa0XBvfrs/MeTpg== X-Google-Smtp-Source: AGHT+IHXcSeivDGbxP45MB+hbBBSVLTNQXEqWZaYomoC7KedRLssjlshPeIgM4YhMsmuNBzzK0kZ X-Received: by 2002:ac8:5a89:0:b0:430:cded:997a with SMTP id c9-20020ac85a89000000b00430cded997amr1385921qtc.40.1711408933142; Mon, 25 Mar 2024 16:22:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711408933; cv=pass; d=google.com; s=arc-20160816; b=ZNbaa5GV3ixF4M6oHoxhmfJkJs0HcOCPYl6ylbAhvLO/sxumqFbJRq0G+9frPCsWdg R7P4HOfk88OMKhJzpHdu4Y+LwjLLQlEG7jDWSDzAyx62dMiclo37rk5NaBCW4P4Wbl9U h956UZbsYAyYuPO2t25OL1Vjffo+csjr6idant9n/kWygnf/SPaHUd3EBbjLz3S6pgtq xZmf3PVa5sz2oXReyBfumw3F4PzJp3CO8QvW87dxr/72st5qgUx1N50g8No7/PW9NLq6 mjHLGvfONNlFu0aphZj14XyGyDjJAbXZRnvfresPY7pSxEd7m1j6HJpitiXfY0sLd/Wp jIKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CDG7c8x7NhynfT9EFK/7vBHocCYovAnU8I2meNeG/Ks=; fh=s7HThsZWLTvVaGvl32S3bIm9ZQ8Ru9d7vVGPAO5K6dk=; b=gvFGXYO2NX5LqeqEFGnuEZ77wf0aoSTDsXb2WPhw8HFkyFo5MJHHFcqOJ23MHoy74R io8h7IX1qL6CyxLKueLqB7KMiQFv5BrLAVQNuNWxwuRrAAPUiwyG6O/qT2lyX/xF0AAt 4BY69p7ypOBcPnsRi4WJYBs9C4GTiWcVvDq/t0ry6fn6/iwjSfs6c3cXTVXlglhytZIG yoByoz3L6O2TdCW4Aa2qzxhKrDvndkCSO41xNhln3kII6cDljFuYRRCcnezYVl7Mv+P8 6I11IzzgSSsNUIsujYMJWUmvEJd8dakScRD1u1CWSG1jlnuCnZr5GxeOzFBL1e/r1FbQ klpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lq4Pi4Db; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fw10-20020a05622a4a8a00b004314986286bsi5016971qtb.603.2024.03.25.16.22.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 16:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lq4Pi4Db; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D0A911C3A0C9 for ; Mon, 25 Mar 2024 23:22:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9E3382D8B; Mon, 25 Mar 2024 23:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Lq4Pi4Db" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CC26382D76; Mon, 25 Mar 2024 23:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711408904; cv=none; b=sGl5N2ynjyzZrGQBYeuSJS4mPxnQVCcInxUOWHJkfWKKqvW1oXF+Lrm91hw5p0qs9SaX1tAJSr11gZT8ly76ViGRy8gu1Gr2wm3wfBWvBiAxWsGOmX1iPAgr7I8uHcPmxMh5pSIw21njnZ5uesfxKPZYcG9GgVZoDs9ZmSWEO8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711408904; c=relaxed/simple; bh=uE45ocbqlizhPUeGtrVHccbnWtXfuAaF9hu2gthCdsY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UuzEKvrZcEZ2Nw5fjULAXPlDnKd2L24g4ZtGhd4br/8pAbCqb/15fZsChkS1z8jWtdRFDcZ8MsLzBhSeVq7Q6UF/Lsqz0gkbru7OaBqIWCZQbSGIbh/aPR8BRla6kRVpSnZAJ4Vz0t4mVdffWYzSYNLoSAmOyqxcvbeXeIpMgVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Lq4Pi4Db; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AA0BC433C7; Mon, 25 Mar 2024 23:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711408904; bh=uE45ocbqlizhPUeGtrVHccbnWtXfuAaF9hu2gthCdsY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lq4Pi4DbOyj9mlv3h4O7boEvYbtJbDwqK/DwTKyH5yzuSceQpIsoHK1X3UlrlIbbv M9SNouCM+9LUwuqM0oyQec34FtJ9Plt3FMQGiaqGv2JJZlR0KTwx8orq5EMt4d2zpm Z0kVjFU9BJRKQvRm0WXGflp52AL7P32e/Oyyk2A/lHSt8Y9Ch/xbMLMu1tN+o0dpi4 r3Gsd3poBdWJ19bNGY9yjT7VclRDrS6O0PAneZIK7DtfTpOvHbSvF2Y1f8ALrGMxS7 EvOzSg/ThHGNEBwaJ4itBaUuZXrG2wtxHE52ks/MMthazWqXjUlKDaa2fANohUiFbx aieAPfQHPiSLQ== Date: Tue, 26 Mar 2024 00:21:41 +0100 From: Frederic Weisbecker To: Waiman Long Cc: Zefan Li , Tejun Heo , Johannes Weiner , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Cestmir Kalina , Costa Shulyupin Subject: Re: [PATCH 1/2] sched/isolation: Exclude dynamically isolated CPUs from housekeeping masks Message-ID: References: <20240229021414.508972-1-longman@redhat.com> <20240229021414.508972-2-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240229021414.508972-2-longman@redhat.com> Le Wed, Feb 28, 2024 at 09:14:13PM -0500, Waiman Long a ?crit : > The housekeeping CPU masks, set up by the "isolcpus" and "nohz_full" > boot command line options, are used at boot time to exclude selected CPUs > from running some kernel background processes to minimize disturbance > to latency sensitive userspace applications. Some of housekeeping CPU > masks are also checked at run time to avoid using those isolated CPUs. > > The cpuset subsystem is now able to dynamically create a set of isolated > CPUs to be used in isolated cpuset partitions. The long term goal is > to make the degree of isolation as close as possible to what can be > done statically using those boot command line options. > > This patch is a step in that direction by making the housekeeping CPU > mask APIs exclude the dynamically isolated CPUs when they are called > at run time. The housekeeping CPU masks will fall back to the bootup > default when all the dynamically isolated CPUs are released. > > A new housekeeping_exlude_isolcpus() function is added which is to be > called by the cpuset subsystem to provide a list of isolated CPUs to > be excluded. Can we instead overwrite housekeeping_boot.cpumasks from cpusets entirely and forget about the original boot value forever? Thanks.