Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB697C636D4 for ; Thu, 2 Feb 2023 14:33:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232279AbjBBOdF (ORCPT ); Thu, 2 Feb 2023 09:33:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231994AbjBBOdB (ORCPT ); Thu, 2 Feb 2023 09:33:01 -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 DD272712EA for ; Thu, 2 Feb 2023 06:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675348337; 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=rb40jJZP+p+46lzXWGfp2d9j5iJL9Oz8USeC7Urj69w=; b=Vm9cLRazNKGQMQfq1ZEAQokeeLYVmA/ICs8BoVvba1e+WF4HZLs/xSq/Pl/+GpoKSFRcdq sdNrvQf1NE6JIgt6t0ieTFJAP9CrZjA1KyKZsKvKfwRFcFHm1Dzy8wfdE6khVbCcM3HY04 eSRxjZ7eNgXZSILNcpBWwUw3gMsQSdg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-48-epyUifJSMGma_Yeffp4yeQ-1; Thu, 02 Feb 2023 09:32:15 -0500 X-MC-Unique: epyUifJSMGma_Yeffp4yeQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3BF9085CBE3; Thu, 2 Feb 2023 14:32:10 +0000 (UTC) Received: from llong.com (unknown [10.22.8.157]) by smtp.corp.redhat.com (Postfix) with ESMTP id B05FD51E5; Thu, 2 Feb 2023 14:32:09 +0000 (UTC) From: Waiman Long To: Tejun Heo , Zefan Li , Johannes Weiner , Will Deacon , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kernel-team@android.com, Waiman Long Subject: [PATCH v2 0/2] cgroup/cpuset: Make hotplug code more efficient Date: Thu, 2 Feb 2023 09:31:58 -0500 Message-Id: <20230202143200.128753-1-longman@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: - It turns out it works around the v1 cpuset missing offline cpu problem better than I originally thought. So the patch description is updated accordingly. This small patch series makes the cpuset hotplug a bit more efficient by eliminating unnecessary task iteration and cpu/node masks update when a cpu hotplug event (online/offline) happens. It can also largely work around the known problem of missing previously offlined cpus in v1 cpuset with some exceptions. Waiman Long (2): cgroup/cpuset: Skip task update if hotplug doesn't affect current cpuset cgroup/cpuset: Don't update tasks' cpumasks for cpu offline events kernel/cgroup/cpuset.c | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) -- 2.31.1