linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/1] Improved Memory Tier Creation for CPUless NUMA Nodes
@ 2024-03-01  8:22 Ho-Ren (Jack) Chuang
  2024-03-01  8:22 ` [PATCH v1 1/1] memory tier: acpi/hmat: create CPUless memory tiers after obtaining HMAT info Ho-Ren (Jack) Chuang
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Ho-Ren (Jack) Chuang @ 2024-03-01  8:22 UTC (permalink / raw)
  To: Hao Xiang, Gregory Price, aneesh.kumar, mhocko, tj, john,
	Eishan Mirakhur, Vinicius Tavares Petrucci, Ravis OpenSrc,
	Alistair Popple, Rafael J. Wysocki, Len Brown, Andrew Morton,
	Dave Jiang, Dan Williams, Jonathan Cameron, Huang Ying,
	Ho-Ren (Jack) Chuang, linux-acpi, linux-kernel, linux-mm
  Cc: Ho-Ren (Jack) Chuang, Ho-Ren (Jack) Chuang, linux-cxl, qemu-devel

The memory tiering component in the kernel is functionally useless for
CPUless memory/non-DRAM devices like CXL1.1 type3 memory because the nodes
are lumped together in the DRAM tier.
https://lore.kernel.org/linux-mm/PH0PR08MB7955E9F08CCB64F23963B5C3A860A@PH0PR08MB7955.namprd08.prod.outlook.com/T/

This patchset automatically resolves the issues. It delays the initialization
of memory tiers for CPUless NUMA nodes until they obtain HMAT information
at boot time, eliminating the need for user intervention.
If no HMAT specified, it falls back to using `default_dram_type`.

Example usecase:
We have CXL memory on the host, and we create VMs with a new system memory
device backed by host CXL memory. We inject CXL memory performance attributes
through QEMU, and the guest now sees memory nodes with performance attributes
in HMAT. With this change, we enable the guest kernel to construct
the correct memory tiering for the memory nodes.

Ho-Ren (Jack) Chuang (1):
  memory tier: acpi/hmat: create CPUless memory tiers after obtaining
    HMAT info

 drivers/acpi/numa/hmat.c     |  3 ++
 include/linux/memory-tiers.h |  6 +++
 mm/memory-tiers.c            | 76 ++++++++++++++++++++++++++++++++----
 3 files changed, 77 insertions(+), 8 deletions(-)

-- 
Hao Xiang and Ho-Ren (Jack) Chuang


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-03-06  3:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-01  8:22 [PATCH v1 0/1] Improved Memory Tier Creation for CPUless NUMA Nodes Ho-Ren (Jack) Chuang
2024-03-01  8:22 ` [PATCH v1 1/1] memory tier: acpi/hmat: create CPUless memory tiers after obtaining HMAT info Ho-Ren (Jack) Chuang
2024-03-04  2:40   ` Huang, Ying
2024-03-05  9:28     ` [External] " Ho-Ren (Jack) Chuang
2024-03-06  2:25       ` Huang, Ying
2024-03-06  3:55         ` Ho-Ren (Jack) Chuang
2024-03-04  2:45 ` [PATCH v1 0/1] Improved Memory Tier Creation for CPUless NUMA Nodes Huang, Ying
2024-03-05  6:22   ` [External] " Ho-Ren (Jack) Chuang
2024-03-05  6:34     ` Huang, Ying
2024-03-05  7:10       ` Ho-Ren (Jack) Chuang
2024-03-05  7:37         ` Huang, Ying
2024-03-04  3:07 ` fan
2024-03-04  8:40   ` [EXT] " Srinivasulu Opensrc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).