RFC Node migration between memory tiers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest2 patches 25 repliesIn review
- v1 RFC2 patches 11 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | base/node: Add sysfs for memtier_overrideDocumentation/ drivers/ include/ +2 more | +78 | 0 replies | |
| 2/2 | memory tier: Support node migration between tiersdrivers/ include/ include/ +1 more | +47 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 0/2] Node migration between memory tiers
From: Srinivasulu Thanneeru <[email protected]>
The memory tiers feature allows nodes with similar memory types or performance characteristics to be grouped together in a memory tier. However, there is currently no provision for moving a node from one tier to another on demand.
This patch series aims to support node migration between tiers on demand by sysadmin/root user using the provided sysfs for node migration.
To migrate a node to a tier, the corresponding node’s sysfs memtier_override is written with target tier id.
Example: Move node2 to memory tier2 from its default tier(i.e 4)
1. To check current memtier of node2
$cat /sys/devices/system/node/node2/memtier_override memory_tier4
2. To migrate node2 to memory_tier2
$echo 2 > /sys/devices/system/node/node2/memtier_override $cat /sys/devices/system/node/node2/memtier_override memory_tier2
Usecases:
1. Useful to move cxl nodes to the right tiers from userspace, when the hardware fails to assign the tiers correctly based on memorytypes.
On some platforms we have observed cxl memory being assigned to the same tier as DDR memory. This is arguably a system firmware bug, but it is true that tiers represent *ranges* of performance and we believe it's important for the system operator to have the ability to override bad firmware or OS decisions about tier assignment as a fail-safe against potential bad outcomes.
2. Useful if we want interleave weights to be applied on memory tiers instead of nodes.
In a previous thread, Huang Ying <[email protected]> thought this feature might be useful to overcome limitations of systems where nodes with different bandwidth characteristics are grouped in a single tier.
https://lore.kernel.org/lkml/[email protected]/
=============
Version Notes:
V2 : Changed interface to memtier_override from adistance_offset. memtier_override was recommended by
1. John Groves <[email protected]>
2. Ravi Shankar <[email protected]>
3. Brice Goglin <[email protected]>
V1 : Introduced adistance_offset sysfs.
=============
Srinivasulu Thanneeru (2):
base/node: Add sysfs for memtier_override memory tier: Support node migration between tiers
Documentation/ABI/stable/sysfs-devices-node | 7 ++ drivers/base/node.c | 47 ++++++++++++ include/linux/memory-tiers.h | 11 +++ include/linux/node.h | 11 +++ mm/memory-tiers.c | 85 ++++++++++++--------- 5 files changed, 125 insertions(+), 36 deletions(-)
Signature · 1 line
2.25.1