euleros inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8T1MB?from=project-issue CVE: NA
-------------------------------------------------
This patch configures the etmem scan feature.
etmem scan component periodically scans the vma segments of the target process, by walking its page table and check access bit of each page, before reporting the scan results to user space, so that we can better classify hotness of pages and further migrate hot ones to fast memory tier and cold ones to slow memory tier.
Signed-off-by: Yuchen Tang tangyuchen5@huawei.com --- mm/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/mm/Kconfig b/mm/Kconfig index 7493fe4ce8da..980eaf75d87b 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -1348,6 +1348,17 @@ config CLEAR_FREELIST_PAGE To enable this feature, kernel parameter "clear_freelist" also needs to be added.
+config ETMEM_SCAN + tristate "module: etmem page scan for etmem support" + depends on ETMEM + help + etmem scan is a critical part of the etmem feature. + A kernel module, etmem_scan.ko periodically scans the appointed vma + segments of the target process, perform page table walk accordingly, + check and clear the access bit of each page before finally report + scan results back to user space. + etmem scan also supports virtual machine + config ETMEM bool "Enable etmem feature" depends on MMU