linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Subject: [PATCH RFC 0/4] Demotion Profiling Improvements
@ 2023-11-02  2:56 Li Zhijian
  2023-11-02  2:56 ` [PATCH RFC 1/4] drivers/base/node: Add demotion_nodes sys infterface Li Zhijian
                   ` (3 more replies)
  0 siblings, 4 replies; 32+ messages in thread
From: Li Zhijian @ 2023-11-02  2:56 UTC (permalink / raw)
  To: Andrew Morton, Greg Kroah-Hartman, rafael, linux-mm
  Cc: ying.huang, y-goto, linux-kernel, Li Zhijian

With the deployment of high-capacity CXL Type 3 memory, HBM and Nvdimm,
the kernel now supports memory tiering. Building on this foundation
and aiming to further enhance memory efficiency, the kernel has
introduced demotion and promotion features.

To provide users with a more intuitive way to observe information
related to demotion, we have made several improvements to demotion
profiling, primarily in two aspects:

Patch 1 introduces a new interface: /sys/devices/system/node/node0/demotion_nodes
This interface is used to display the target nodes to which a node can demote.

Patch 2, Patch 3, and Patch 4 are improvements to demotion statistics.
Patch 2 changes the granularity of demotion statistics from global to per-node.
Patch 3 and Patch 4 further differentiate demotion statistics into demotion
source and demotion destination.

The names of the statistics are open to discussion; they could be named something
like pgdemote_from/to_* etc.
One issue with this patch set is that SUM(pgdemote_src_*) always equals SUM(pgdemote_dst_*)
in the global statistics (/proc/vmstat). Should we hide one of them?

Any feedback is welcome.

TO: Andrew Morton <akpm@linux-foundation.org> 
TO: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 
TO: "Rafael J. Wysocki" <rafael@kernel.org> 
CC: "Huang, Ying" <ying.huang@intel.com>
CC: y-goto@fujitsu.com
CC: linux-kernel@vger.kernel.org 
TO: linux-mm@kvack.org 

Li Zhijian (4):
  drivers/base/node: Add demotion_nodes sys infterface
  mm/vmstat: Move pgdemote_* to per-node stats
  mm/vmstat: rename pgdemote_* to pgdemote_dst_* and add pgdemote_src_*
  drivers/base/node: add demote_src and demote_dst to numastat

 drivers/base/node.c           | 29 +++++++++++++++++++++++++++--
 include/linux/memory-tiers.h  |  6 ++++++
 include/linux/mmzone.h        |  7 +++++++
 include/linux/vm_event_item.h |  3 ---
 mm/memory-tiers.c             |  8 ++++++++
 mm/vmscan.c                   | 14 +++++++++++---
 mm/vmstat.c                   |  9 ++++++---
 7 files changed, 65 insertions(+), 11 deletions(-)

-- 
2.29.2



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

end of thread, other threads:[~2024-02-05  7:31 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-02  2:56 Subject: [PATCH RFC 0/4] Demotion Profiling Improvements Li Zhijian
2023-11-02  2:56 ` [PATCH RFC 1/4] drivers/base/node: Add demotion_nodes sys infterface Li Zhijian
2023-11-02  3:17   ` Huang, Ying
2023-11-02  3:39     ` Zhijian Li (Fujitsu)
2023-11-02  5:18       ` Huang, Ying
2023-11-02  5:54         ` Zhijian Li (Fujitsu)
2023-11-02  5:58           ` Huang, Ying
2023-11-03  3:05             ` Zhijian Li (Fujitsu)
2024-01-30  8:53     ` Li Zhijian
2024-01-31  1:13       ` Huang, Ying
2024-01-31  3:18         ` Zhijian Li (Fujitsu)
2024-02-02  7:43           ` Zhijian Li (Fujitsu)
2024-02-02  8:19             ` Huang, Ying
2024-02-05  7:31               ` Zhijian Li (Fujitsu)
2024-01-31  6:23         ` Yasunori Gotou (Fujitsu)
2024-01-31  6:52           ` Huang, Ying
2023-11-02  2:56 ` [PATCH RFC 2/4] mm/vmstat: Move pgdemote_* to per-node stats Li Zhijian
2023-11-02  4:56   ` Huang, Ying
2023-11-02  5:43   ` Huang, Ying
2023-11-02  5:57     ` Zhijian Li (Fujitsu)
2023-11-02  2:56 ` [PATCH RFC 3/4] mm/vmstat: rename pgdemote_* to pgdemote_dst_* and add pgdemote_src_* Li Zhijian
2023-11-02  5:45   ` Huang, Ying
2023-11-02  6:34     ` Zhijian Li (Fujitsu)
2023-11-02  6:56       ` Huang, Ying
2023-11-02  7:38       ` Yasunori Gotou (Fujitsu)
2023-11-02  7:46         ` Huang, Ying
2023-11-02  9:45           ` Yasunori Gotou (Fujitsu)
2023-11-03  6:14             ` Huang, Ying
2023-11-06  5:02               ` Yasunori Gotou (Fujitsu)
2023-11-02  2:56 ` [PATCH RFC 4/4] drivers/base/node: add demote_src and demote_dst to numastat Li Zhijian
2023-11-02  5:40   ` Greg Kroah-Hartman
2023-11-02  8:15     ` Zhijian Li (Fujitsu)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox