linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -V3 0/4] memory tiering: calculate abstract distance based on ACPI HMAT
@ 2023-09-12  8:20 Huang Ying
  2023-09-12  8:20 ` [PATCH -V3 1/4] memory tiering: add abstract distance calculation algorithms management Huang Ying
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Huang Ying @ 2023-09-12  8:20 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-mm, linux-kernel, Huang Ying, Aneesh Kumar K . V, Wei Xu,
	Alistair Popple, Dan Williams, Dave Hansen, Davidlohr Bueso,
	Johannes Weiner, Jonathan Cameron, Michal Hocko, Yang Shi,
	Dave Jiang, Rafael J Wysocki

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:

v3:

- Move algorithm to calculate abstract distance from read/write
  latency/bandwidth from hmat.c to memory-ters.c per Alistair's
  comments.

- Fix memory types putting in kmem.c for error path.

V2:

- Fix a typo in 4/4.

- Collected reviewed-by and tested-by.

V1 (from RFC):

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

Best Regards,
Huang, Ying


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

end of thread, other threads:[~2023-09-19  6:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-12  8:20 [PATCH -V3 0/4] memory tiering: calculate abstract distance based on ACPI HMAT Huang Ying
2023-09-12  8:20 ` [PATCH -V3 1/4] memory tiering: add abstract distance calculation algorithms management Huang Ying
2023-09-14 17:29   ` Dave Jiang
2023-09-19  5:13   ` Alistair Popple
2023-09-12  8:20 ` [PATCH -V3 2/4] acpi, hmat: refactor hmat_register_target_initiators() Huang Ying
2023-09-14 17:30   ` Dave Jiang
2023-09-12  8:21 ` [PATCH -V3 3/4] acpi, hmat: calculate abstract distance with HMAT Huang Ying
2023-09-14 17:31   ` Dave Jiang
2023-09-19  5:14   ` Alistair Popple
2023-09-19  6:11     ` Huang, Ying
2023-09-12  8:21 ` [PATCH -V3 4/4] dax, kmem: calculate abstract distance with general interface Huang Ying
2023-09-14 17:31   ` Dave Jiang
2023-09-19  5:31   ` Alistair Popple
2023-09-19  5:56     ` Huang, Ying

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).