Message ID | 20240229021414.508972-1-longman@redhat.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-86035-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp129791dyb; Wed, 28 Feb 2024 18:15:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU0Gu6lZCp8mcNnRMLfAWHlMBIepBN8hCgsO2VlhB7dKvPpg4qDz1xLDnLnSHPCw3zUGYc3oc48Fi436gKab3zgoEW7hA== X-Google-Smtp-Source: AGHT+IGvyrLm4LVjfEGI6HshBdQnbC0Cz8M8R6maMoXQ4VaxOtEHUdaaqJSlwnVWY5IVMfd60tcD X-Received: by 2002:a05:6402:2267:b0:566:6c9b:1c8a with SMTP id du7-20020a056402226700b005666c9b1c8amr333035edb.10.1709172925127; Wed, 28 Feb 2024 18:15:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709172925; cv=pass; d=google.com; s=arc-20160816; b=R7W1d/HivnxiZWUKfzF+JI0zDVN26lhTKM/iNE8LQcWydRTdquqnXWD14nJgEvkwwn 6ofUM1Tketc1ZqLIgUs4U8Tlkb83inF+/FlOCp1YPe6P5RBM5ViwCltzxMtfOkJrsUS/ HcjO7Q/GpNrOy+fSxWgJz6DyyqnBOvt83G3/HNzzt387EwHzU9l7vkKmWQvtlZ63khQB 0OGb2SZ5x9q3rD0ChwD9XpzRFfGcrZRMxJTQU0hPsVeeiNbde15J6iDrm/rrh11gMZ1s hEcrT0HzpYuO/LtRSbSSk73Uc+GtU1thb9dKHxDMemMY8QBrjOddKfhKNLbVTZKJliZv qu1w== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86035-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x63-20020a50bac5000000b005665ba112d3si133379ede.476.2024.02.28.18.15.24 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 18:15:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86035-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86035-ouuuleilei=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 B37FD1F25FEB for <ouuuleilei@gmail.com>; Thu, 29 Feb 2024 02:15:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52793376EB; Thu, 29 Feb 2024 02:15:02 +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 <linux-kernel@vger.kernel.org>; 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 <longman@redhat.com> To: Zefan Li <lizefan.x@bytedance.com>, Tejun Heo <tj@kernel.org>, Johannes Weiner <hannes@cmpxchg.org>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>, Daniel Bristot de Oliveira <bristot@redhat.com>, Valentin Schneider <vschneid@redhat.com>, Frederic Weisbecker <frederic@kernel.org> Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Cestmir Kalina <ckalina@redhat.com>, Costa Shulyupin <cshulyup@redhat.com>, Waiman Long <longman@redhat.com> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792197709407304858 X-GMAIL-MSGID: 1792197709407304858 |
Series |
isolation: Exclude dynamically isolated CPUs from housekeeping masks
|
|
Message
Waiman Long
Feb. 29, 2024, 2:14 a.m. UTC
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(-)