Commit 737fb31
Rafael Aquini
memory tiering: count PGPROMOTE_SUCCESS when mem tiering is enabled.
JIRA: https://issues.redhat.com/browse/RHEL-84184
Conflicts:
* context differences from upstream due to RHEL-9 missing commit
7262f20 ("mm/migrate: split source folio if it is on
deferred split list") and its follow-up fix commit 6e49019
("mm/migrate: putback split folios when numa hint migration fails"),
with none of them being relevant to this backport
This patch is a backport of the following upstream commit:
commit ac59a1f
Author: Zi Yan <ziy@nvidia.com>
Date: Wed Jul 24 09:01:15 2024 -0400
memory tiering: count PGPROMOTE_SUCCESS when mem tiering is enabled.
memory tiering can be enabled/disabled at runtime and
sysctl_numa_balancing_mode & NUMA_BALANCING_MEMORY_TIERING is used to
check it. In migrate_misplaced_folio(), the check is missing when
PGPROMOTE_SUCCESS is incremented. Add the missing check.
Link: https://lkml.kernel.org/r/20240724130115.793641-4-ziy@nvidia.com
Fixes: 3302453 ("memory tiering: hot page selection with hint page fault latency")
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Closes: https://lore.kernel.org/linux-mm/f4ae2c9c-fe40-4807-bdb2-64cf2d716c1a@huawei.com/
Signed-off-by: Zi Yan <ziy@nvidia.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rafael Aquini <raquini@redhat.com>1 parent 2118172 commit 737fb31
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2600 | 2600 | | |
2601 | 2601 | | |
2602 | 2602 | | |
2603 | | - | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
2604 | 2606 | | |
2605 | 2607 | | |
2606 | 2608 | | |
| |||
0 commit comments