Skip to content

Add a new scheme to support demotion on tiered memory system

Baolin Wang linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 15 repliesIn review
  2. v12 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Reuse the demote_page_list().
- Fix some comments style issues.
- Move the DAMOS_DEMOTE definition to the correct place.
- Rename some function name.
- Change to return void type for damos_isolate_page().
- Remove unnecessary PAGE_ALIGN() in damos_demote().
- Fix the return value for damos_demote().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: Export the demote_page_list() functionmm/internal.h mm/vmscan.c+4 -20 replies
2/2mm/damon: Add a new scheme to support demotion on tiered memory systeminclude/linux/damon.h mm/damon/dbgfs.c mm/damon/vaddr.c+151 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Add a new scheme to support demotion on tiered memory system

Hi,

Now on tiered memory system with different memory types, the reclaim path in shrink_page_list() already support demoting pages to slow memory node instead of discarding the pages. However, at that time the fast memory node memory wartermark is already tense, which will increase the memory allocation latency during page demotion. So a new method from user space demoting cold pages proactively will be more helpful.

We can rely on the DAMON in user space to help to monitor the cold memory on fast memory node, and demote the cold pages to slow memory node proactively to keep the fast memory node in a healthy state.

This patch set introduces a new scheme named DAMOS_DEMOTE to support this feature, and works well from my testing. Any comments are welcome. Thanks.

Changes from v1:
- Reuse the demote_page_list().
- Fix some comments style issues.
- Move the DAMOS_DEMOTE definition to the correct place.
- Rename some function name.
- Change to return void type for damos_isolate_page().
- Remove unnecessary PAGE_ALIGN() in damos_demote().
- Fix the return value for damos_demote().

Baolin Wang (2):
mm: Export the demote_page_list() function
mm/damon: Add a new scheme to support demotion on tiered memory system

 include/linux/damon.h |   3 ++
 mm/damon/dbgfs.c      |   1 +
 mm/damon/vaddr.c      | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++
 mm/internal.h         |   2 +
 mm/vmscan.c           |   4 +-
 5 files changed, 155 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.3.1