Skip to content

memory tiering: calculate abstract distance based on ACPI HMAT

Huang Ying linux-acpi linux-cxl linux-mm lkml nvdimm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/24 patches 36 repliesIn review
  2. v1 posting 1/24 patches 0 repliesSuperseded

Changes in v1 from the cover letter

- Added some comments per Aneesh's comments, Thanks!

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4memory tiering: add abstract distance calculation algorithms managementinclude/linux/memory-tiers.h mm/memory-tiers.c+78 -017 replies
2/4acpi, hmat: refactor hmat_register_target_initiators()drivers/acpi/numa/hmat.c+30 -513 replies
3/4acpi, hmat: calculate abstract distance with HMATdrivers/acpi/numa/hmat.c include/linux/memory-tiers.h mm/memory-tiers.c+140 -24 replies
4/4dax, kmem: calculate abstract distance with general interfacedrivers/dax/kmem.c include/linux/memory-tiers.h mm/memory-tiers.c+44 -147 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAlistair Popple
1/4
2/4R-b T-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RESEND 0/4] memory tiering: calculate abstract distance based on ACPI HMAT

We have the explicit memory tiers framework to manage systems with multiple types of memory, e.g., DRAM in DIMM slots and CXL memory devices. Where, same kind of memory devices will be grouped into memory types, then put into memory tiers. To describe the performance of a memory type, abstract distance is defined. Which is in direct proportion to the memory latency and inversely proportional to the memory bandwidth. To keep the code as simple as possible, fixed abstract distance is used in dax/kmem to describe slow memory such as Optane DCPMM.

To support more memory types, in this series, we added the abstract distance calculation algorithm management mechanism, provided a algorithm implementation based on ACPI HMAT, and used the general abstract distance calculation interface in dax/kmem driver. So, dax/kmem can support HBM (high bandwidth memory) in addition to the original Optane DCPMM.

Changelog:

V1 (from RFC):

- Added some comments per Aneesh's comments, Thanks!

Best Regards,
Huang, Ying