Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp210368rbe; Wed, 28 Feb 2024 18:15:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUpVmSJNLJDB+bo6WJWxOjMAf+lnVaI9dEH9DohKjCJ5woj0X7QhxHDg31Ir+D+w+wE9ccWgDY2v1muVK8M9xIhqA5mdqKVHnl7fvYhzw== X-Google-Smtp-Source: AGHT+IHY+2uYAqPXbXoTkOaflYiz4krA9o1uss179gLdHx4XSRMoz/6zfyUkZ5c5rbYLw3KnWiFI X-Received: by 2002:a17:907:6d0d:b0:a3f:f8a7:e1f7 with SMTP id sa13-20020a1709076d0d00b00a3ff8a7e1f7mr465582ejc.5.1709172905106; Wed, 28 Feb 2024 18:15:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709172905; cv=pass; d=google.com; s=arc-20160816; b=jCVpQiUVwMUvTcKUaQ8RZd32ahdr/qwbR2aEcClGlFjcqsrcWinrpKGzO8KmZTFmm1 4BRb2qUE5abQcfDG5BNUf97jRt6oyKd5IK9ck99KBo1I6M/K2vAwA6zuBq+butNcO6hn Nx9YfEY2jNy5DeNgZDROFF1vR+aBI6W/whGP8g1DaWgRUJLluzym6gZrp99NqrZHZXCO 8ZpNKWJ/1jlSDvAKqCYbxYxts+pDhYQCAgrmez3qXb1Le8epbduVKsdwelzoROi2v2c7 6yvIrBlaFVDYjgGTBNVU3svHxu0vuaD9GTRFi+uBiK9kYXNu+9B9lL+uI9PjKKE8ad9C G12g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=uLYPtBm4p8G3yFydUnPEm3+xNcp+Ap8SsLOv9W66tkg=; fh=Ieh26qMz7ii+wAfD3rSAC/AGrlk2wkd+lASkLp3ZwYY=; b=W6H0spWGguyH2Hlb9L3zaI4pJ7uHkd6CcG5dDZI1nJ6GPUcGaHUdo0sgMjt46qRWvU GR1jIaucPXsgwBeGUh+I/N1mpwvqIB+stu5hgaPSAuXMdO/iHwH4gtCYfSeCCKKXFzmb /7U401M5NVGqdkoBzGx4nlWO4h2FgzeCaW6BfKt74Pvuu3xBvnGxCaDYbgWpSKgEnL8n Vfl8bltrwKz46b6VN1zvRsg7ccZANITe4DlxWVZwBQFCGKfIw9JCr4t/1HnVqOLQy8Uj /lVQGz3uewoQwYgUvcDRUfSwmbODYc+7GnQpq16b+SObqNvq+80Gsw87Oy5s+vCwZNpz 03rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GYLMi600; 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-86035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j8-20020a170906050800b00a3eab698219si124868eja.415.2024.02.28.18.15.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 18:15:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GYLMi600; 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-86035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86035-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D15251F25B31 for ; Thu, 29 Feb 2024 02:15:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 642D736B16; Thu, 29 Feb 2024 02:15:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GYLMi600" 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 0DB9C364B1 for ; Thu, 29 Feb 2024 02:14:57 +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=1709172899; cv=none; b=XVZwod5ErywPln1kO9wkDJElLfHRNuSVctJ9G3jyX6nTMobjHMTYrlN+UQaO30gQHYzUZI28FwmY9z9LHIsWchoUSLyLOuyh+Z4GBNJvBdLbgWvJrf2O/joL6nqnXiKMoLqEpie6461bMn+ZvCqsjH9UYrZip46FRoSCOP8bSmw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709172899; c=relaxed/simple; bh=hingJ5EXVicls4BQfV94vjpMA1BgNof8PS1gsswv0lY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=pfBHeG54DmGzIhHtkTR/wny8x1lUu/irn3aj9Ovpk9hQZlF1aqKTNif84oeWBhxcgNuPIsxnhKGnlz3qituCr+1Pcx1x+nOWvD43wSurDvUBnDox73qQF9CTJ1VCyowG4mhU1zCvP17P/E3SO0nzQpZujpObDLDEM6MfSzz4EWM= 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=GYLMi600; 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=1709172896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uLYPtBm4p8G3yFydUnPEm3+xNcp+Ap8SsLOv9W66tkg=; b=GYLMi600cDzI+wUKmgpDND59CM4qHBkvX5W7wmMPTi4Wtb2+S2AsApysf90fnQb75/lQlW HD9YkUQltv+Wr2jHW5EYPJ9+xZrIfCs5vWN077O3osedBR+OuRFFszV9PoxCmXYeAdkacK Pr6rXHhsduuRtjlRrNSPNloNbaXid+s= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-VmLpVkUKO5irHrQOAreqhw-1; Wed, 28 Feb 2024 21:14:51 -0500 X-MC-Unique: VmLpVkUKO5irHrQOAreqhw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 AE2FA881EA3; Thu, 29 Feb 2024 02:14:50 +0000 (UTC) Received: from llong.com (unknown [10.22.9.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id D4190492BE2; Thu, 29 Feb 2024 02:14:48 +0000 (UTC) From: Waiman Long To: 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 , Frederic Weisbecker Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Cestmir Kalina , Costa Shulyupin , Waiman Long Subject: [PATCH 0/2] isolation: Exclude dynamically isolated CPUs from housekeeping masks Date: Wed, 28 Feb 2024 21:14:12 -0500 Message-Id: <20240229021414.508972-1-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 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 housekeeping processes to minimize disturbance to latency sensitive userspace applications. However, some of housekeeping CPU masks are also checked at run time to avoid using those isolated CPUs. The purpose of this patch series is to exclude dynamically isolated CPUs from some housekeeping masks so that subsystems that check the housekeeping masks at run time will not see those isolated CPUs. It does not migrate the housekeeping processes that have been running on those newly isolated CPUs since bootup to other CPUs. That will hopefully be done in the near future. This patch series only updates the HK_TYPE_TIMER and HK_TYPE_RCU housekeeping masks for the time being, though this is subject to change. Waiman Long (2): sched/isolation: Exclude dynamically isolated CPUs from housekeeping masks cgroup/cpuset: Exclude isolated CPUs from housekeeping CPU masks include/linux/sched/isolation.h | 8 +++ kernel/cgroup/cpuset.c | 30 +++++++--- kernel/sched/isolation.c | 101 +++++++++++++++++++++++++++++++- 3 files changed, 131 insertions(+), 8 deletions(-) -- 2.39.3