forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm/demotion: expose memory tier details via sysfs
Add /sys/devices/virtual/memory_tiering/ where all memory tier related details can be found. All allocated memory tiers will be listed there as /sys/devices/virtual/memory_tiering/memory_tierN/ The nodes which are part of a specific memory tier can be listed via /sys/devices/virtual/memory_tiering/memory_tierN/nodes A directory hierarchy looks like :/sys/devices/virtual/memory_tiering$ tree memory_tier4/ memory_tier4/ ├── nodes ├── subsystem -> ../../../../bus/memory_tiering └── uevent :/sys/devices/virtual/memory_tiering$ cat memory_tier4/nodes 0,2 [[email protected]: drop toptier_nodes from sysfs] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Aneesh Kumar K.V <[email protected]> Cc: Alistair Popple <[email protected]> Cc: Bharata B Rao <[email protected]> Cc: Dan Williams <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Hesham Almatary <[email protected]> Cc: "Huang, Ying" <[email protected]> Cc: Jagdish Gediya <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Tim Chen <[email protected]> Cc: Wei Xu <[email protected]> Cc: Yang Shi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information
Showing
2 changed files
with
112 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
What: /sys/devices/virtual/memory_tiering/ | ||
Date: August 2022 | ||
Contact: Linux memory management mailing list <[email protected]> | ||
Description: A collection of all the memory tiers allocated. | ||
|
||
Individual memory tier details are contained in subdirectories | ||
named by the abstract distance of the memory tier. | ||
|
||
/sys/devices/virtual/memory_tiering/memory_tierN/ | ||
|
||
|
||
What: /sys/devices/virtual/memory_tiering/memory_tierN/ | ||
/sys/devices/virtual/memory_tiering/memory_tierN/nodes | ||
Date: August 2022 | ||
Contact: Linux memory management mailing list <[email protected]> | ||
Description: Directory with details of a specific memory tier | ||
|
||
This is the directory containing information about a particular | ||
memory tier, memtierN, where N is derived based on abstract distance. | ||
|
||
A smaller value of N implies a higher (faster) memory tier in the | ||
hierarchy. | ||
|
||
nodes: NUMA nodes that are part of this memory tier. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters