From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BA3F175A72 for ; Thu, 5 Mar 2026 04:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772684294; cv=none; b=VEFUPNh1Q8A5v3LwTrKodrPDOLN0jWaA+Ohsdzq3c2oIdJSD69vR+wTY8KdzLKbvM/8mmzHgS1oiR1ebGPnOixZ88TUU7SbLuPVNdKe/Nl5w9E8sj4S6zhozW+EtSE8/beyVz1xp6I50PGxqJgWwlRafnNHCBDSlhiOFNkCCX9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772684294; c=relaxed/simple; bh=xqEUrDrHuTsX7BOEBaGNgotXQMrlUkf2uviuVaMzWjo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=s2b/TkY/r35/0VEOcKT+vCj/jlP1/W7G7oHXvpXM63ncb0OCj4Qsw8xTrMxlzmViUcUwLDF5nFQt1EgCZvsk7Cw5wy4irV95sJYZ/XSNsUymClEJLTCMaYmwTNHa4SvR26G7E9YQHyOTvxwPtGG2Navcpf2f5fnqDXDnIzhnI5U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=I499EJBH; arc=none smtp.client-ip=209.85.216.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="I499EJBH" Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-358e3cc5e7eso3396130a91.0 for ; Wed, 04 Mar 2026 20:18:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1772684293; x=1773289093; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=ex5BiGy9sdTtbNN9/uQGHuy877qSLSxuqy2llH/Sfzc=; b=I499EJBHfCx3nVfNnlm5d9YSZNmpWFq0BUAKsuLimXNimWNAl+aWEylCQ3JyfqTmgt Eyxty/pkibTJaFwNY14PQ9mBwETzUktxo706Yo175idZimSveH19O5+s8opC1hCQOp4p 0L2SOaGy8Gd9/7hM8beXdtyr1b7wM/I5jfolBXFqV3xYv1SHR0bakJYtqF1PQKeW8V+A yxLTxL4LEyI/hVLATEjlKfRxzWbWoBLHwAtNxJMqDZmg3uMwrvVI0n5TYjyNZuDPEhIq 0Jdbi+w4+3dsoU5/i+aJuPJ8++g+RT2FYyodcdxyOOma24xpbETcbQGo2SJAg4rzoucM 1sSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772684293; x=1773289093; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ex5BiGy9sdTtbNN9/uQGHuy877qSLSxuqy2llH/Sfzc=; b=fPFssc//rYKlIAyKC7XroFgoEdbnwF+2GUt/0t+vUdg/JvUJ4T/TeLP8utbzS9uxtA N/JiTFmjwDBiO+6Iln05M1ZCWEOLumYl7FmnKS3xSuJVr4rdFWIcdWplO42SqCz30YQe r4dfxeTLoYMcLKrqfILsQc0X+4EGgm1tjUPbULFqf7VYIAkGNIM3mTi4XgQqP9HqXw5L mwTfmYeT1LTs+/h3z0Bd7vglGXLc2KakPcPlDkpSaeWcIAKYWuwlLujWZMy9owm9TC2q v7EOGUXlmHR2j3MSfuJkl6YDSNp7+IUhFsEuNiiLUCyrpZiVEd+AHFnOlWalOV4YAtyQ fL7w== X-Forwarded-Encrypted: i=1; AJvYcCXy6k9u6mbtv4Wy3uOYjKuZJklTyQ9fjo6Xm8BN+Rgv83mEEVuyue39Zvb/H0zNM9WWvz7XKbhQtPuGX5E=@vger.kernel.org X-Gm-Message-State: AOJu0YzExUCrDef7byBxFw3L86W72a6U+/vcPiSk/AZTjofnHHa05MOa LiuCSJvs+PcIVdd8TWLFFH0KNVtAOymTvEEicxR0MrW6LYp8RgkzmosoVNBIxg5fdBY= X-Gm-Gg: ATEYQzzb5OCc6Qd44STn1v+ZRhwtcR9Qi+CVFfpvUFLT7WYaQU93XrZTWajS80ezSfk tYsMnrLVu9kg6Yl/AQkspG4HFVYZw03R6zaqE6bjKKCTmRrPAnBukzlayoPO86YuKO2uVw4kjNr TV1kLpsgKq6y1YInjAmstNiWek0LwPSbn6RgayhkGvpcJaR3GDnJ/IbEMmE+LpP2fAkW93eL/rd po6wt0xAG83NpBknA19s7v3SYIgRoLudUxHIUVr9fCc6Enapb4BcBQ+OvQsHjaLxapf9RtCLzoz PseAUJ2k9dqXKjXMsALQaC+msz1etB+9xjUfLHAQW9jI4MWbpyLXQmbMM4EFsng4wOIIu/Bw6Eg 1YlkrwUYZR2Zj36H9v8oQOLSR2b7ZpSQa11uupEsl/bzjECiuTUi/8B4VZHT2A8Tt8uN84J1XgH 534UG29bz/oJ3sf8YwCD/9OqXRSr0EYF4ZamUff6kFxsKlegwqS7vdFu+50sivND4XfsD2kh/Ar kOzhJVc3InwahAcjrSdkg== X-Received: by 2002:a17:90b:1c10:b0:352:d59a:b28 with SMTP id 98e67ed59e1d1-359a6a4f86amr4022402a91.19.1772684292685; Wed, 04 Mar 2026 20:18:12 -0800 (PST) Received: from [10.54.26.107] (static-ip-148-99-134-202.rev.dyxnet.com. [202.134.99.148]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-359b2dffbf2sm459828a91.13.2026.03.04.20.18.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Mar 2026 20:18:12 -0800 (PST) Message-ID: <8ad398f6-995a-489b-8ca2-f21afdce47e4@shopee.com> Date: Thu, 5 Mar 2026 12:18:05 +0800 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: [PATCH] ACPI: add a boot parameter to disable parsing CFMWS during NUMA init To: Gregory Price Cc: rafael@kernel.org, lenb@kernel.org, dan.j.williams@intel.com, jonathan.cameron@huawei.com, dave@stgolabs.net, dave.jiang@intel.com, alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, linux-cxl@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260304080647.169434-1-haifeng.xu@shopee.com> From: Haifeng Xu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 2026/3/5 01:16, Gregory Price wrote: > On Wed, Mar 04, 2026 at 04:06:47PM +0800, Haifeng Xu wrote: >> For the machine Intel(R) Xeon(R) 6746E that supports CXL memory, >> the possible nodes are 20 (0-19). However, only two numa nodes (0-1) >> have memory and the rest nodes (2-19) detected by CEDT are memoryless. >> >> The problems is that when creating many pods, the shrinker map size >> needs to be expanded for all memory cgroups in expand_shrinker_info(). >> If the number of possible nodes is too large, the holding time of >> shrinker lock grows significantly. >> >> In this case, there is no CXL memory inserted in the machine, those >> memoryless nodes are useless for us, so there is no need to set them >> in 'numa_nodes_parsed'. After disabling parsing CFMWS, the pod creation >> time is reduced from over 10 minutes to approximately 150 seconds in >> our internal test. >> > > This seems like the wrong scope to fix the underlying problem - which is > the shrinker lock holding scope. Hi Gregory, Thanks for your comments. Every memcg records shrinker info for each possible node. If we use online node instead of possible node,then during memory hotplug, we must tarverse all memcgs and shrinkers to check whether corresponding node has allocated the shrinker_info. This way introduces more complexity. > > If you're not actually using CXL, can't you just disable CXL in the > BIOS? Then you shouldn't even emit CFMWS at all. I have asked our Intel Support Engineer, he saied that cxl can't be disabled in BIOS. If know how much nodes we actually use, can we specify the max number of pxm? Now the pxm can't exceed MAX_PXM_DOMAINS which is equal to MAX_NUMNODES. Thanks! > > ~Gregory