From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27F0EC282DE for ; Mon, 10 Mar 2025 09:04:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B2573280003; Mon, 10 Mar 2025 05:04:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AD61E280001; Mon, 10 Mar 2025 05:04:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A119280003; Mon, 10 Mar 2025 05:04:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 7C0EC280001 for ; Mon, 10 Mar 2025 05:04:16 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EF15180C71 for ; Mon, 10 Mar 2025 09:04:17 +0000 (UTC) X-FDA: 83205054954.04.D39D05F Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by imf28.hostedemail.com (Postfix) with ESMTP id F1F02C000D for ; Mon, 10 Mar 2025 09:04:15 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf28.hostedemail.com: domain of rakie.kim@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=rakie.kim@sk.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1741597456; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gAdIJdxSOVc2t4E0s5UIEzVlo22zXyJOYcR1R0U4G00=; b=qzUkW5h+As1hk7lF75jmLMADkeDUBGD7Jpg6z1piLCYITp/wlQhjB4xsNjiwlhWEbNzNfP ID9yQ3+SGO7jVjQp3we73XC4PE4Ivkt9kjxxC37Q2sS6gVddzt7vihfW1J/v9uA1r3/J6N AumCGx/6xU6gVeMFrE5wo8FnATMooYM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1741597456; a=rsa-sha256; cv=none; b=7h6BFtYtNo+303vjMlxUxykIMs0LSf9Puee93h9F3XdOptEDeRIbBaZYeOL72u6ZSOZ1Br By5f/jZT1/rBt/GVMdjDXNlVrIiwWJYyv0MHYj6IduujjdDCG5j4/SEXtTIaaxoPphL4UQ CveE0CHBPGLg3Tsyu+28XmQdhdCkQLI= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf28.hostedemail.com: domain of rakie.kim@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=rakie.kim@sk.com X-AuditID: a67dfc5b-3c9ff7000001d7ae-24-67ceab0c1a25 From: Rakie Kim To: Gregory Price Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, joshua.hahnjy@gmail.com, dan.j.williams@intel.com, ying.huang@linux.alibaba.com, kernel_team@skhynix.com, honggyu.kim@sk.com, yunjeong.mun@sk.com, Rakie Kim Subject: Re: [PATCH 0/4] mm/mempolicy: Add memory hotplug support in weighted interleave Date: Mon, 10 Mar 2025 18:03:59 +0900 Message-ID: <20250310090407.631-1-rakie.kim@sk.com> X-Mailer: git-send-email 2.48.1.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRmVeSWpSXmKPExsXC9ZZnkS7P6nPpBluu8lvMWb+GzWL61AuM Fj/vHme3OL51HrvF+VmnWCwu75rDZnFvzX9Wi9VrMhw4PHb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CbWUBeonnrbOYJjDyzkKRmIUktYGRaxSiS mVeWm5iZY6pXnJ1RmZdZoZecn7uJERi6y2r/TNzB+OWy+yFGAQ5GJR7eB/POpguxJpYVV+Ye YpTgYFYS4VXbfipdiDclsbIqtSg/vqg0J7X4EKM0B4uSOK9XeGqCkEB6YklqdmpqQWoRTJaJ g1OqgfHgtZ9b1jdt3vLHfc9ivtD06UeWCPreKeqzs3myzrhA6vja2dPWOc0+8mNT9h8l67+S Ey591Y7/PG/Vm673+x61amzL5dpq8WhH714BieZA7TitJZNiNvTcD/To0s9wPdBubvfqmsCH b5Muvez7+DPoQPSb71zGc+wT+ZTfvhda473R1dlkYudsJZbijERDLeai4kQAkS/YWFkCAAA= X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Queue-Id: F1F02C000D X-Rspamd-Server: rspam08 X-Stat-Signature: odfg159ggh7kp5dtqp1a31t8yodgus4b X-HE-Tag: 1741597455-304862 X-HE-Meta: U2FsdGVkX19moiw5l2NfKvKoyA2WVLn3hKnj5kWiX5c9r8vrkYnso4ymLwG686F+NAAHd4E1WrpcfZTVZPYbjcWzeVA/DkG3bAbjcUvOsmUFVgcNj4EOwGY75qwdjvIoljoqNbEW7UB20rJtPrTsTZgtcnroHaUm4qXVjNtWIqi56hyNxHXXozPdEaHkcisZp8AXePU6PjiiUhkx18Hj+s4xgrGE1oSt3rcjlqwQGN1x1tzPi/m1FkKXb/HBb9+rXI4azmP3ikOv4kRB7EgVTMd4w8p9IVzBQLQac0waNMg6JMhmjbCLQz50S+rD07KYERNm96mviEA+hon/Hk35TTS1W40ENU8pisXcZH3WO0OKmdBzrawo53mBDVSpuQhGogqCEQsfXBc8Wkt3fHjQOX8XJjePaTVOIGxFCDv1iNmuK7RrMhpWqQWoAlzADx9nTwxTFFaIPo25ze725DGJWHPI8e6e0RsoRVch5M4GTualegZ9BiN+oNIW1MwhWLMVZsa3C3E3cAf3u0LeLUJqbubqaGwij/S320w7h+f9bzalkuk9Iu9BqXZXVdOthklUYZM0kyIxHUBKtdDUBdLF4yJQW0iF8SkBlkckf+0xMcrLFG3ifKQx4IbgxAq7grig6nAqbOKBwf1QtNSLM51UARyOxnzi9ozIphLTOlHdmJ/DP2wqrxLvIfyvqW3tbu9jTv2hCNKI3OdC2PD9OYShyHVU0vV6cvOafAlsCoR7/I1OMflEEAQKqPiFsP+vSmkKIAcFl7ibTIeZH9iQ9mD7M9Ckp94LAb48tLk8JA6fGScN9bleVWm86KPaAir72sL8naEE5WBctUdLPCK3wz6Qg9Rq8iGxmEIBlylMRyjqB3rfuhm3CvjXhpua49LQaZbAATFrgBTwTh/18qGMQkgCqgkfRy4G7iz/kWfOCA2rUkrjBzjrUFbxrMcfsumpFY62Dq2gzJlnRLTwnd2dqSQ PixUM/dV j30zVlrRSN8hAlvG1EJYKkZpDzZEtXsp4CKlC4ELdIs2v0x6i+YU7b+vpGv86V8EgWXCzVNxIruRKhtvkALyYkTIpIOrviazuuEEI X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Fri, 7 Mar 2025 16:55:40 -0500 Gregory Price wrote: > On Fri, Mar 07, 2025 at 10:56:04AM -0500, Gregory Price wrote: > > > > I think the underlying issue you're dealing with is that the system is > > creating more nodes for you than it should. > > > > Looking into this for other reasons, I think you are right that multiple > numa nodes can exist that cover the same memory - just different > regions. > I understand your concerns, and I agree that the most critical issue at the moment is that the system is generating more nodes than necessary. We need to conduct a more thorough analysis of this problem, but a detailed investigation will require a significant amount of time. In this context, these patches might offer a quick solution to address the issue. Additionally, it's important to note that not many CXL devices have been developed yet, and their operations are not entirely optimized. Therefore, we might encounter behaviors from CXL devices and servers that differ from our expectations. I hope these patches can serve as a solution for unforeseen issues. > I can see why you would want to hide the nodes that don't actively have > memory online, but i still have concerns for nodes that may come and > go and hiding this configuration from the user until memory arrives. > > An example would be a DCD device where a node could add or remove memory > at any time. If you removed the last block of memory, the node would > disappear - but the block could come back at any time. That seems > problematic, as you might want to manage that node while no memory is > present. > > ~Gregory Of course, the patches may need further refinements. Therefore, I plan to simplify the patches and remove any unnecessary modifications in the upcoming version 2 update. Once it's ready, I would be very grateful if you could take the time to review version 2 and share any further feedback you might have. Rakie