在 2/16/2022 2:33 PM, zhongjiang-ali 写道:
Mysql benchmark will produce too mnay promotion due to
DRAM node is not
enough, but promotion frequently will result in performance decrease.
hence, we perfer to remote access rather than demote/promote traffic
frequently.
Please add the 'cherry-pick' information for each patch, otherwise LGTM.
Reviewed-by: Baolin Wang <baolin.wang(a)linux.alibaba.com>
Huang Ying (3):
mm, migrate: use flags parameter for remove_migration_ptes()
memory tiering: measure whether demoted pages are hot
memory tiering: adjust promotion threshold based on hot pages demoted
include/linux/mmzone.h | 3 ++
include/linux/page-flags.h | 9 ++++++
include/linux/page_ext.h | 3 ++
include/linux/rmap.h | 8 ++++-
include/linux/sched/numa_balancing.h | 62 ++++++++++++++++++++++++++++++++++++
include/linux/sched/sysctl.h | 3 ++
include/trace/events/mmflags.h | 8 ++++-
kernel/sched/fair.c | 27 +++++++++++++---
kernel/sysctl.c | 16 ++++++++++
mm/huge_memory.c | 6 ++--
mm/mempolicy.c | 2 ++
mm/migrate.c | 60 ++++++++++++++++++++++++++++------
mm/vmstat.c | 1 +
13 files changed, 189 insertions(+), 19 deletions(-)